RE: [JBoss-user] [Beginners Corner] - Calling JBoss 3.2.3 from st andalone Tomcat

2004-05-20 Thread Finn, Michael
Title: RE: [JBoss-user] [Beginners Corner] - Calling JBoss 3.2.3 from standalone Tomcat





Try including jbossall-client.jar in your classpath.


> -Original Message-
> From: damonrand [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 18, 2004 12:29 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] [Beginners Corner] - Calling JBoss 3.2.3 from
> standalone Tomcat
> 
> 
> Hi guys,
> 
> I have made some progress on connecting to an EJB from Tomcat 
> 4.1.29 running on a standalone server. Unfortunately the 
> system seems to be demanding JBoss server-side libraries for 
> some reason.. Here is what I have done so far.
> 
> 1. I have this in web.xml
> 
>   
> Test EJB connection.
> ejb/HelloWorld
> Session    
> org.service.helloworld.server.facade.interfaces.HelloWorldRemoteHome
> org.service.helloworld.server.facade.interfaces.HelloWorldRemote
> 
> jnp://server:1099/remote/org.service.helloworld.serv
> er.facade.ejb.HelloWorld
>   
>   
> 2. And in /WEB-INF/classes/jndi.properties
> 
>   java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
> 
> 3. And copy all the jars from JBoss 3.2.3 client folder into 
> %JRE_HOME%/lib/ext
> 
> 4. Copied my helloworld-service.jar (containing the EJB 
> interfaces) into web-inf/lib
> 
> Now I am now running into this error..
>   class java.lang.NoClassDefFoundError: javax.ejb.EJBObject
> 
> And if I solve that one but making j2ee.jar available to 
> Tomcat I get too..
>   class java.lang.NoClassDefFoundError: 
> org/jboss/tm/TransactionPropagationContextFactory
> 
> So looks like I am going to run into a sequence of 
> NoClassDefFoundError that lead me to put the whole of JBoss 
> into my Tomcat webapp -- not a preferable option. ;-)
> 
> Am I doing anything obviously wrong or will this config just not work?
> 
> Regards,
> Damon.
> 
> View the original post : 
> http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38353
96#3835396


Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835396



---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] [Clustering/JBoss] - Re: javax.naming.Communicat ionException when calling a clust

2004-02-25 Thread Finn, Michael
Title: RE: [JBoss-user] [Clustering/JBoss] - Re: javax.naming.CommunicationException when calling a clust





True - I was (wrongly, I guess) assuming client and server not on same subnet. Here, servers are on dedicated subnets (GigaEthernet) and rarely, if ever reachable via multicast from our clients.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 20, 2004 12:13 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] [Clustering/JBoss] - Re:
javax.naming.CommunicationException when calling a clust



Actually you can leave it blank (or not defined)


The client will try to contact HAJNDI using a multicast.
i.e. it will look for any jboss server on the network.


The timeout messages says it couldn't find such a server
within the configured timeout (default 5 seconds).


Regards,
Adrian


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3822257#3822257


Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3822257



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] JBoss On Linux

2003-12-15 Thread Finn, Michael
Title: RE: [JBoss-user] JBoss On Linux





Generally, you'll see a message when you try to log in indicating the no more descriptors condition. I would think something gets written to /var/log/messages. 

I would recommend starting at the system level and determine the PIDs associated with the heaviest FDs (or the highest rate of growth), and as Bill indicated, the nature of the FD. lsof is fairly useful, as it indicates the type of FD (IPv4=socket, REG=file, etc). If the heavy hitters are IPv4, you'll probably notice one port with the majority of the sockets - so you can troubleshoot from there. 

Mike




-Original Message-
From: Peter Luttrell [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 12, 2003 3:50 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBoss On Linux



Is there a way to tell if i've run out of file descriptors?


thanks.
.peter


David Ward wrote:


> Peter,
>
> I've read others' responses to your problems, and they all seem to be 
> addressing the wrong thing: performance.  What you describe does not 
> sound like a performance problem (neither of speed nor memory 
> management).  You never said the app was slow, so why do you care 
> about "SPECjAppServer2002 benchmarks" and the like?
>
> It sounds more like a resource leak to me, my first guess being of 
> file descriptors.  On Linux/UNIX based systems, socket connections 
> (like to your mailserver and database) - not just files - use file 
> descriptors. If that's the case, something - or a growing number of 
> "things" - are holding onto sockets or files (same thing to UNIX) and 
> not letting go.
>
> If I were you I would do 2 things:
>
> 1) In the short term, increase your system setting for max # of file 
> descriptors (in my experience, OS defaults are stunningly low for 
> production systems).  This will require a system reboot to take effect.
>
> 2) Find out where your resource leak is.  It may be there's one in 
> your application (that runs in jboss), and then the cron runs that 
> might require a lot of descriptors too.  Together, they could use up 
> to your limit.  To diagnose this you might have to employ more than 
> just one tool.  netstat (comes with Linux/UNIX), filemon 
> (http://www.sysinternals.com/linux/utilities/filemon.shtml) , 
> Optimizeit (http://www.borland.com/optimizeit/optimizeit_profiler/), etc.
>
> Last, maybe there really isn't a leak, but the nature of your 
> application, plus the crons that run at specific times, just simply 
> require more file descriptors than what your system has configured. 
> Upping that value might prove to be all you need to do.  If it never 
> grows past that max, you're set - no leak.  Unfortunately, without 
> doing some surfing, I can't tell you where to set it for your system, 
> or what the best value should be.  I'll leave that as an exercise for 
> you.  ;)
>
> Anyway, hope this helps.  And sorry in advance if it ends up leading 
> you down the wrong path.  I just wanted to share what your problem 
> "smelled like" to me.
>
> David
>
>
> Peter Luttrell escribió:
>
>> We're using JBoss3.2.1 with Jetty on RedHat 9 with Suns 1.4.2_01 vm. 
>> We have a pretty heavy load.
>>
>> After roughly a week many of the boxes start to experience weird 
>> problems where JBoss is unable to get what looks to be socket 
>> connections. In some cases, we cannot contact our mailserver, in 
>> other cases we cannot contact our database; in the latest case we're 
>> unable to get a connection to the local jndi server (localhost:1099). 
>> Sometimes a simple restart of jboss will sometimes solves the 
>> problems, othertimes we have to restart linux. The times of the 
>> crashes are roughly 4am and sometimes 6am, so it's likely caused by a 
>> cron job running at those times, which we're currently looking into. 
>> Has anyone experienced similar problems?
>> .peter
>>
>>
>
>
>
> ---
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id78&alloc_id371&opÌk
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user






--
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole use of the intended recipient(s), even if addressed incorrectly, and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy or delete all copies of the original message and all attachments, including deletion from the trash or equivalent folder.  Thank you.




RE: [JBoss-user] Some J2EE Design Questions

2003-06-09 Thread Finn, Michael
Title: RE: [JBoss-user] Some J2EE Design Questions





Sorry, "connectionless" was admittedly a poor choice of words. Typically, that applies to UDP protocols (SNMP, TFTP, and the like). 

In most applications of RMI, a client-server RMI connection is not a long-lasting one. By long-lasting, I mean a connection that survives across multiple method invocations. The client opens the connection, makes a call, gets the result, and closes the connection. Unlike a typical database connection, where the connection lives across requests. Therefore, there is really no simple way to trap 'disconnects' from the server.

mike


-Original Message-
From: Richard Stack [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 06, 2003 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Some J2EE Design Questions



Hello Mike,


Could you explain what you mean when you say "RMI is a connectionless 
protocol (not a persistent connection)"


Richard


Finn, Michael wrote:
> 1. If EJB Timer (2.1) does not fit the bill for you, an MBean is a 
> typically a good solution for this problem. Depends on what you mean by 
> service.
> 2. Since RMI is a connectionless protocol (not a persistent connection), 
> there is really no 'disconnect' event. Your best bet is probably to use 
> shutdown hooks in your client, and make last ditch effort to do the 
> logout there.
>  
>  
> mike
> 
> -Original Message-
> From: Sasidharan, Manoj [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 06, 2003 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Some J2EE Design Questions
> 
> Hello All,
>  
> 1. How can a daemon process/service implemented in J2EE world? Any
> design pattern?
> 2. Is there any way to trap J2EE client disconnect events - we want
> to timeout user sessions if they fail to logout properly from our
> J2EE app and disconnect from App Server
>  
> Thanks in advance for your time in helping me with these design issues.
> MS
> 





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] bind to specific IP

2003-06-06 Thread Finn, Michael
Title: RE: [JBoss-user] bind to specific IP





You can specify IP interface on most modules in the config files. Check out the docs on servicebinding module to do this using a single XML file. servicebinding mgr is in 3.0.7+ and I think it's going to be in 3.2.2. In the past, HSQL was the one service that didn't support specifying IP to bind to. Not sure if that's been fixed or not.

Mike


-Original Message-
From: Nathan Hoover [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 06, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] bind to specific IP



We run JBoss on our HP NonStop mainframe system... Needless to say, it's 
not financially reasonable to purchase several of these systems for testing 
purposes - integration, QA, UA, and so we want to run several copies of 
JBoss, bound to different network adapters, on the same system.


Is this possible? If so, how?


Thanks
Nathan




---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Problems with JBoss on JNDI Data Source Connection

2003-06-06 Thread Finn, Michael



Two problems:
1) Anything in JNDI starting with java:/ is only 
accessible from in-VM, meaning the lookup must be from within the same VM as 
JNDI.
2) You cannot access 
DataSources from out-of-VM anyway.
 
Solution:
1) Try this from in-VM, like in a JSP 
page.
2) Make sure you are addressing the correct context. 
Use JNDIView from jmx-console to confirm.
 
Mike

  -Original Message-From: Paulo Francesco Pacheco 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, June 05, 2003 
  8:54 PMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Problems with JBoss on JNDI Data Source 
  ConnectionImportance: High
  Hi...
   
  I have taken some exceptions with my 
  JBoss...jboss-3.0.6_tomcat-4.1.18
  ...the client classpath is ok...
  my jdk version is jdk1.3.1 and it´s 
  ok...
   
  I wrote a simple test code...
   
  package 
  com.ccibm.wiredsys.xclient;
   
  import java.beans.Beans;import 
  java.io.IOException;import java.io.Serializable;import 
  java.sql.Connection;import java.util.Properties;import 
  javax.naming.InitialContext;import javax.naming.NamingException;import 
  javax.sql.DataSource;
   
  public class SQLJndiConnectionTest extends 
  Beans implements Serializable {
   
   public SQLJndiConnectionTest() 
  { }
   
   public static void main(String[] 
  args)  throws IOException, NamingException {
   
    try {    
     Properties props = new 
  Properties();  props.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");   props.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");   props.put("java.naming.provider.url","jnp://localhost:1099");InitialContext 
  jndiContext = new InitialContext(props);   DataSource ds = 
  (DataSource) 
  jndiContext.lookup("java:/jdbc/dbnrhdes");   Connection 
  conn = ds.getConnection();
   
     if (conn != null || 
  conn.isClosed() == false) 
  {System.out.println( "Connection 
  --> " + (int) 
  conn.toString().hashCode());conn.close();ds 
  = null;jndiContext = null;   } 
  else {System.out.println("No active connections 
  !!!");   }  } catch (Exception e) 
  {   System.out.println("No active connections 
  !!!");   e.printStackTrace();   throw 
  new 
  NamingException(e.getMessage());  } }}
   
  and the exit message is the same all time...
   
  No active connections 
  !!!javax.naming.NameNotFoundException: jdbc not bound at 
  sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at 
  sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at 
  sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at 
  org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at 
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:484) at 
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:463) at 
  javax.naming.InitialContext.lookup(InitialContext.java:350) at 
  com.ccibm.wiredsys.xclient.SQLJndiConnectionTest.main(SQLJndiConnectionTest.java:29)javax.naming.NamingException: 
  jdbc not bound at 
  com.ccibm.wiredsys.xclient.SQLJndiConnectionTest.main(SQLJndiConnectionTest.java:44)Exception 
  in thread "main"
   
  someone can help me please !!!
   


RE: [JBoss-user] Some J2EE Design Questions

2003-06-06 Thread Finn, Michael
Title: RE: [JBoss-user] Some J2EE Design Questions





Pretty sure it's all in cvs head at this point, which means 4.0 (should be in DR1). I don't think there are plans to backport to 3.2 branch, but to be sure, check jboss-dev.

mike


-Original Message-
From: Dan Avram [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 06, 2003 11:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Some J2EE Design Questions



> 1. If EJB Timer (2.1) does not fit the bill for you, an MBean is a
typically
> a good solution for this problem. Depends on what you mean by service.


What is the status of JBoss implementing EJB 2.1 specs ? The only source of
information I have on this subject is theserverside's matrix, which says
that JBoss is EJB 2.0 compliant at the moment.


Dan AVRAM





---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Some J2EE Design Questions

2003-06-06 Thread Finn, Michael
Title: JBoss XA transaction with WebSphere MQ



1. If EJB Timer (2.1) does not fit the bill for you, an 
MBean is a typically a good solution for this problem. Depends on what you mean 
by service.
2. Since RMI is a connectionless 
protocol (not a persistent connection), there is really no 'disconnect' event. 
Your best bet is probably to use shutdown hooks in your client, and make last 
ditch effort to do the logout there.
 
 
mike

  -Original Message-From: Sasidharan, Manoj 
  [mailto:[EMAIL PROTECTED]Sent: Friday, June 06, 2003 3:33 
  AMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Some J2EE Design Questions
  Hello All,
   
  1. 
  How can a daemon process/service implemented in J2EE world? Any design 
  pattern?
  2. 
  Is there any way to trap J2EE client disconnect events - we want to timeout 
  user sessions if they fail to logout properly from our J2EE app and disconnect 
  from App Server
   
  Thanks in advance for your time in helping me with these design 
  issues.
  MS


RE: [JBoss-user] Had the Pay-For Documentation Been updated for 3.2?

2003-06-06 Thread Finn, Michael
Title: RE: [JBoss-user] Had the Pay-For Documentation Been updated for 3.2?





3.2.1 docs are available. I sent ComponentSource sales an email asking about it and in reply, got the link to 3.2.1 docs.

-Original Message-
From: Bruce Scharlau [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 05, 2003 5:37 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Had the Pay-For Documentation Been updated for
3.2?



At 15:44 04/06/2003 -0400, you wrote:
>http://www.componentsource.com/Search.asp?SC=EJBOS&Browse=Y&GroupType=5&gc=JBOSSG&GroupDesc=JBoss+Group
>
>-Daniel
>
>Finn, Michael wrote:
>
>>I don't see the 3.2 stuff either - just 3.0.7 (we have a subscription and 
>>I can't find it). In fact, like Bob, I can't even find JBoss on 
>>componentsource at all. Search for JBoss, and browse by product name turn 
>>up nothing - only the JBoss deployer plugin for ControlCenter. Can some 
>>pass on the link?
>>
>>Mike


Folks,


when I asked about this last week I was told that it would be out next month.
Also, when I looked through componentsource, it took me a little while to 
realise that you won't find JBoss stuff there directly as
it deals with software NOT books, etc. The books seem only findable via the 
jboss.org site.



cheers,


Bruce


Dr. Bruce Scharlau
Dept. of Computing Science
University of Aberdeen
Aberdeen AB24 3UE
01224 272193
http://www.csd.abdn.ac.uk/~bscharla
mailto:[EMAIL PROTECTED] 




---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Had the Pay-For Documentation Been updated for 3.2?

2003-06-05 Thread Finn, Michael
Title: RE: [JBoss-user] Had the Pay-For Documentation Been updated for 3.2?





I don't see the 3.2 stuff either - just 3.0.7 (we have a subscription and I can't find it). In fact, like Bob, I can't even find JBoss on componentsource at all. Search for JBoss, and browse by product name turn up nothing - only the JBoss deployer plugin for ControlCenter. Can some pass on the link?

Mike


-Original Message-
From: Rupp,Heiko [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 04, 2003 11:19 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Had the Pay-For Documentation Been updated for
3.2?



Hi,


> I'm wondering if the pay-for docs have been updated for 3.2?


Yes, they have been in may 03. 
Send a mail to support @ componentsource . com and they will
send you a download link.


 Heiko



---
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] HTTP clustering and container security?

2003-04-01 Thread Finn, Michael



Guys,
 
I am 
testing HTTP distributed sessions w/ Branch 3.2 (updated today), with an 
application using container/declarative security. When j_security is invoked, I 
am getting the exception below. I have other applications (not using JAAS) which 
are working fine in the http session clustered environment. If it matters, 
I am using mod_jk2 in front as a load balancer.
 
Anyway, I did some digging and a session attribute is being set of type 
JBossUserPrincipal (inner class to JBossUserRealm), which is in fact not 
serializable.  Before I start making things serializable and testing, I 
want to make sure I am on the right track.
 
Is 
this supported, broken, or am I doing something wrong?
 
TIA,
mike
 
14:18:29,541 WARN  [jbossweb] WARNING: Exception for 
/opm/j_security_checkjava.lang.IllegalArgumentException: distributed 
attribute value must be Serializable,EJBObject,EJBHome,UserTransaction or 
Context: mjf860    at 
org.mortbay.j2ee.session.TypeCheckingInterceptor.setAttribute(TypeCheckingInterceptor.java:76)    
at 
org.mortbay.j2ee.session.StateInterceptor.setAttribute(StateInterceptor.java:78)    
at 
org.mortbay.j2ee.session.AroundInterceptor.setAttribute(AroundInterceptor.java:198)    
at 
org.mortbay.j2ee.session.StateAdaptor.setAttribute(StateAdaptor.java:249)    
at 
org.mortbay.jetty.servlet.FormAuthenticator.authenticated(FormAuthenticator.java:118)    
at 
org.mortbay.http.SecurityConstraint.check(SecurityConstraint.java:401)    
at 
org.mortbay.http.HttpContext.checkSecurityConstraints(HttpContext.java:1456)    
at 
org.mortbay.jetty.servlet.ServletHttpContext.checkSecurityConstraints(ServletHttpContext.java:137)    
at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:235)    
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)    
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1714)    
at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507)    
at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1664)    
at 
org.mortbay.http.HttpServer.service(HttpServer.java:863)    
at 
org.jboss.jetty.Jetty.service(Jetty.java:460)    
at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)    
at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939)    
at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)    
at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)    
at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)    
at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
--- Mike 
Finn   
Frontier 
Communications  Rochester, 
NY    
V: 585-777-8202 E: mailto:[EMAIL PROTECTED] 

 


RE: [JBoss-user] mod_jk2 and Jetty

2003-03-25 Thread Finn, Michael
Title: RE: [JBoss-user] mod_jk2 and Jetty





Lothar,
Thanks. Works now. As expected, turned out I had a few basic config issues due to lack of understanding on my part. The doc for workers2.properties seems to be seriously lacking -esp for the load balancing stuff. Not much luck googling for it. Do you have any good links or docs? OW, time to dig into source.

Thanks much,
Mike




-Original Message-
From: Egger Lothar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 25, 2003 9:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] mod_jk2 and Jetty



hi mike


here is my workers2.properties [ apache 2.0.43 jetty/JBOSS3.2.0RC3/4/5]
maybe it helps ;)


cheers
lothar


##**
[logger]
level=INFO


[config:]
file=/usr/local/apache2/conf/workers2.properties
debug=0
debugEnv=0


[uriMap:]
info=Maps the requests. Options: debug
debug=0


# Alternate file logger
[logger.file:0]
level=INFO
file=/usr/local/apache2/logs/jk2.log


[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=/var/run/jk2.shm
size=100
debug=0
disabled=0


[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 ) 
# can be overriden to a file logger, useful 
# when tracing win32 related issues
#logger=logger.file:0



[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009


#[channel.socket:localhost:8019]
#info=A second tomcat instance. 
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0


#[channel.un:/var/run/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0



[status:]
info=Status worker, displays runtime informations




#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
#alias=myVirtualHost:8003


#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
#context=/ex
#group=lb_1



[uri:/admin/servlet/*]
debug=0


#[uri:/something_private*]
#debug=0
###





-Original Message-----
From: Finn, Michael [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 25, 2003 2:56 PM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] mod_jk2 and Jetty



Sorry, I left the subject off.
-Original Message-
From: Finn, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 25, 2003 8:07 AM
To: Jboss-User (E-mail) (E-mail)
Subject: [JBoss-user] (no subject)



I seem to be unable to get mod_jk2 talking to Jetty. I built mod_jk2 from
source (jakarta-tomcat-connectors-4.1.18), and have it config'd on Apache
2.0.44 (RH 7.2). JBoss 3.2.0 built from JBoss 3.2 branch running on W2K. I
have workers2.properties config'd. In the docs, I saw reference to
jk.properties on the Tomcat side, but see no analog to it in Jetty. One of
the errors I get is what looks to be missing shared mem file (even though I
am not using UNIX domain sockets, so I am not sure how that applies), which
is config'd in jk2.properties - makes me wonder if I'm missing something.


When I access a mapped application, I get below in error_log (startup log
stuff is included as well). Browser gets a 500. workers2.properties is below
as well.
No mod_jk log. Jetty AJP is listening on 8009.


TIA,
Mike


error_log
[Mon Mar 24 09:12:08 2003] [notice] Apache/2.0.44 (Unix) DAV/2
mod_jk2/2.0.3-dev configured -- resuming normal operations
[Mon Mar 24 09:12:08 2003] [error] shm.init(): No file
[Mon Mar 24 09:12:14 2003] [error] workerEnv.init() create slot epStat.0
failed
[Mon Mar 24 09:12:14 2003] [error] mod_jk.handler() Error connecting to
tomcat 12


workers2.properties:


[channel.socket:mjf860-1:8009]
port=8009
host=10.160.73.98


[ajp13:mjf860-1:8009]
channel=channel.socket:mjf860-1:8009


[uri:/apps/*]
worker=ajp13:mjf860-1:8009





--- 
Mike Finn   
Frontier Communications  
Rochester, NY    
V: 585-777-8202 
E: mailto:[EMAIL PROTECTED] 



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] mod_jk2 and Jetty

2003-03-25 Thread Finn, Michael



Sorry, I left the subject off.

  -Original Message-From: Finn, Michael 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, March 25, 2003 
  8:07 AMTo: Jboss-User (E-mail) (E-mail)Subject: 
  [JBoss-user] (no subject)
  I seem to be unable to get mod_jk2 talking to 
  Jetty. I built mod_jk2 from source (jakarta-tomcat-connectors-4.1.18), and 
  have it config'd on Apache 2.0.44 (RH 7.2). JBoss 3.2.0 built from JBoss 3.2 
  branch running on W2K. I have workers2.properties config'd. In the docs, I saw 
  reference to jk.properties on the Tomcat side, but see no analog to it in 
  Jetty. One of the errors I get is what looks to be missing shared mem 
  file (even though I am not using UNIX domain 
  sockets, so I am not sure how that applies), which is config'd in 
  jk2.properties - makes me wonder if I'm 
  missing something.When I access a mapped application, I get below in 
  error_log (startup log stuff is included as well). Browser gets a 500. 
  workers2.properties is below as well.No mod_jk log. Jetty AJP is listening 
  on 8009.TIA,Mikeerror_log[Mon Mar 24 09:12:08 2003] 
  [notice] Apache/2.0.44 (Unix) DAV/2 mod_jk2/2.0.3-dev configured -- resuming 
  normal operations[Mon Mar 24 09:12:08 2003] [error] shm.init(): No 
  file[Mon Mar 24 09:12:14 2003] [error] workerEnv.init() create slot 
  epStat.0 failed[Mon Mar 24 09:12:14 2003] [error] mod_jk.handler() Error 
  connecting to tomcat 
  12workers2.properties:[channel.socket:mjf860-1:8009]port=8009host=10.160.73.98[ajp13:mjf860-1:8009]channel=channel.socket:mjf860-1:8009[uri:/apps/*]worker=ajp13:mjf860-1:8009
   
  --- Mike 
  Finn   
  Frontier 
  Communications  Rochester, 
  NY    
  V: 585-777-8202 E: mailto:[EMAIL PROTECTED] 
  
   


[JBoss-user] (no subject)

2003-03-25 Thread Finn, Michael



I seem to be unable to get mod_jk2 talking to 
Jetty. I built mod_jk2 from source (jakarta-tomcat-connectors-4.1.18), and have 
it config'd on Apache 2.0.44 (RH 7.2). JBoss 3.2.0 built from JBoss 3.2 branch 
running on W2K. I have workers2.properties config'd. In the docs, I saw 
reference to jk.properties on the Tomcat side, but see no analog to it in Jetty. 
One of the errors I get is what looks to be missing shared mem file (even though I am not using UNIX domain sockets, so I 
am not sure how that applies), which is config'd in jk2.properties - makes me wonder if I'm missing 
something.When I access a mapped application, I get below in error_log 
(startup log stuff is included as well). Browser gets a 500. workers2.properties 
is below as well.No mod_jk log. Jetty AJP is listening on 
8009.TIA,Mikeerror_log[Mon Mar 24 09:12:08 2003] 
[notice] Apache/2.0.44 (Unix) DAV/2 mod_jk2/2.0.3-dev configured -- resuming 
normal operations[Mon Mar 24 09:12:08 2003] [error] shm.init(): No 
file[Mon Mar 24 09:12:14 2003] [error] workerEnv.init() create slot epStat.0 
failed[Mon Mar 24 09:12:14 2003] [error] mod_jk.handler() Error connecting 
to tomcat 
12workers2.properties:[channel.socket:mjf860-1:8009]port=8009host=10.160.73.98[ajp13:mjf860-1:8009]channel=channel.socket:mjf860-1:8009[uri:/apps/*]worker=ajp13:mjf860-1:8009
 
--- Mike 
Finn   
Frontier 
Communications  Rochester, 
NY    
V: 585-777-8202 E: mailto:[EMAIL PROTECTED] 

 


RE: [JBoss-user] Virtual machine problems

2003-02-28 Thread Finn, Michael
Title: RE: [JBoss-user] Virtual machine problems





Sun's 1.4.1_01 on Linux is notorious for this error (Google for it and you'll see). If possible, try 1.4.0xx for a while, and see if it doesnt go away (worked for me). Or try IBM's JVM. 

Mike



-Original Message-
From: Jordi Valldaura [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 27, 2003 6:16 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Virtual machine problems



Hello


Sometimes while running jboss I get the following virtual machine error:


#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002E6
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.1_01-b01 mixed mode)
#
# An error report file has been saved as hs_err_pid616.log.
# Please refer to the file for further information.


I work with a linux slackware(2.4.18) and with windows 2000, it only happens
in linux, anyone has the same problem. Is my linux version?? is a jboss
fault or a virtual machine fault


Thanks in advance

Jordi Valldaura i Riqué
CSI - Centre de Serveis Informàtics
Enginyeria i Arquitectura La Salle
Universitat Ramón Llull





---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] ManagedConnections Available!

2003-02-27 Thread Finn, Michael
Title: RE: [JBoss-user] ManagedConnections Available!



Yeah- I have done it (3.0.2 to 3.2RC2 and also to HEAD/4.0) 
in a dev environment (pretty simple). That's the easy part. Then comes 
formalized regression and load testing, and the act-of-congress tasks of making 
changes to production (we have 4 apps running on our JBoss prod instance - will 
be 9 by year's end). 
 
Mike
-Original Message-From: Corbin, James 
[mailto:[EMAIL PROTECTED]Sent: Wednesday, February 26, 
2003 2:42 PMTo: [EMAIL PROTECTED]Subject: 
RE: [JBoss-user] ManagedConnections Available!

  
  Michael,
   
  I migrated a 2.4.4 
  installation to 3.2.0RC2 in half a day.  It is really worth the time to 
  upgrade.
   
  J.D.
   
  -Original 
  Message-From: Finn, 
  Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:04 
  PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] 
  ManagedConnections Available!
   
  David, 
  Yeah - we are going to go to 3.2 ASAP. We need it for 
  jboss.net stuff, but it's a question of people resources for us at this point. 
  Maybe we should go to 3.0.6/7 in the interim. 
  BTW - is there an MBean method I can invoke to give me 
  connection counts in a given pool? It's probably staring me in the face, but I 
  don't see it.
   
  Mike 
  -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, February 26, 
  2003 12:03 PM To: 
  [EMAIL PROTECTED] Subject: RE: [JBoss-user] ManagedConnections 
  Available! 
   
  3.0.2 is pretty old and I wouldn't promise anything 
  about it:-) 
  With recent versions at least it seems that this 
  problem is really, despite users  initial complaints, always caused by not 
  closing connections.  You could try running 3.0.7 (cvs) or porting to 3.2RC2 or 
  cvs as an experiment since these versions will complain fairly loudly when 
  they detect that you didn't close a connection. 
  These versions also have much better error handling 
  when connections break, such as when the db server shuts down.  You can 
  also arrange to execute a test sql string to check the connection  right 
  before it is handed out from the pool. 
  david jencks 
  On 2003.02.26 11:30 "Finn, Michael" 
  wrote: > This 
  just happened here last night, in production as luck would have it. 
  > 
  > JBoss 
  3.0.2 > Oracle 
  8i server (9.x driver) > > I am getting the same exception: 
  > Caught SQLException while 
  getting user profile: > org.jboss.util.NestedSQLException: No 
  ManagedConnections Available!; - > nested throwable: 
  (javax.resource.ResourceException: No > ManagedConnections > Available!) > > I am (painfully) aware of all the leaks in 
  Oracle's driver, and am very > diligent about closing connections, resultsets, 
  statements, etc. > > How would a loss of connections (ie DB server 
  reboot) manifest itself? > Same > error? > > Strangely, netstat shows no connections to the DB 
  box. Ideas? > 
  > 
  Mike > 
  > 
  > 
  > 
  -Original Message- > From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] 
  > Sent: Friday, February 21, 
  2003 2:12 AM > 
  To: nfs_ nfs > 
  Subject: Re: [JBoss-user] ManagedConnections Available! 
  > > > This means there are no more available 
  connections in the pool. > Make sure you properly handle them, i.e. closing 
  them correctly. Also > more info about what you are doing would give 
  more response. > > alex > > Friday, February 21, 2003, 7:17:40 AM, nfs_ nfs 
  wrote: > 
  nn> Hi all, > nn> Anyone knows why this error "HTTP ERROR: 
  500 SQL Exception while > getting > DB > nn> connection : 
  org.jboss.util.NestedSQLException: No ManagedConnections 
  > > nn> Available!; - nested 
  throwable: (javax.resource.ResourceException: No > > nn> ManagedConnections 
  Available!)" > 
  > nn> 
  showing up ?,if this error is for database connection than do i 
  have > to 
  > nn> 
  specify the limit of database connection in JBoss ?. > > > nn> Thanks in advance. > > > > > 
  --- 
  > This SF.net email is 
  sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible 
  code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many 
  more. FREE 30-Day Trial. > www.slickedit.com/sourceforge 
  > 
  ___ > JBoss-user mailing 
  list > 
  [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user 
  > >  >  >  >  >  > RE: [JBoss-user] 
  ManagedConnections Available! >  
  >  
  > > This 
  just happened here last night, in production as luck > would have it. 
   >  > > JBoss 
  3.0.2 &

RE: [JBoss-user] ManagedConnections Available!

2003-02-26 Thread Finn, Michael
Title: RE: [JBoss-user] ManagedConnections Available!





David,


Yeah - we are going to go to 3.2 ASAP. We need it for jboss.net stuff, but it's a question of people resources for us at this point. Maybe we should go to 3.0.6/7 in the interim. 

BTW - is there an MBean method I can invoke to give me connection counts in a given pool? It's probably staring me in the face, but I don't see it.


Mike


-Original Message-
From: David Jencks [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 26, 2003 12:03 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] ManagedConnections Available!



3.0.2 is pretty old and I wouldn't promise anything about it:-)


With recent versions at least it seems that this problem is really, despite
users  initial complaints, always caused by not closing connections.  You
could try running 3.0.7 (cvs) or porting to 3.2RC2 or cvs as an experiment
since these versions will complain fairly loudly when they detect that you
didn't close a connection.


These versions also have much better error handling when connections break,
such as when the db server shuts down.  You can also arrange to execute a
test sql string to check the connection  right before it is handed out from
the pool.


david jencks


On 2003.02.26 11:30 "Finn, Michael" wrote:
> This just happened here last night, in production as luck would have it. 
> 
> JBoss 3.0.2
> Oracle 8i server (9.x driver)
> 
> I am getting the same exception:
> Caught SQLException while getting user profile:
> org.jboss.util.NestedSQLException: No ManagedConnections Available!; -
> nested throwable: (javax.resource.ResourceException: No
> ManagedConnections
> Available!)
> 
> I am (painfully) aware of all the leaks in Oracle's driver, and am very
> diligent about closing connections, resultsets, statements, etc.
> 
> How would a loss of connections (ie DB server reboot) manifest itself?
> Same
> error? 
> 
> Strangely, netstat shows no connections to the DB box. Ideas?
> 
> Mike
> 
> 
> 
> -Original Message-
> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 2:12 AM
> To: nfs_ nfs
> Subject: Re: [JBoss-user] ManagedConnections Available!
> 
> 
> This means there are no more available connections in the pool.
> Make sure you properly handle them, i.e. closing them correctly. Also
> more info about what you are doing would give more response.
> 
> alex
> 
> Friday, February 21, 2003, 7:17:40 AM, nfs_ nfs wrote:
> nn> Hi all,
> nn> Anyone knows why this error "HTTP ERROR: 500 SQL Exception while
> getting
> DB 
> nn> connection : org.jboss.util.NestedSQLException: No ManagedConnections
> 
> nn> Available!; - nested throwable: (javax.resource.ResourceException: No
> 
> nn> ManagedConnections Available!)"
> 
> nn> showing up ?,if this error is for database connection than do i have
> to 
> nn> specify the limit of database connection in JBoss ?.
> 
> 
> nn> Thanks in advance.
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> 
> 
> RE: [JBoss-user] ManagedConnections Available!
> 
> 
> 
> This just happened here last night, in production as luck
> would have it. 
> 
> 
> JBoss 3.0.2
> Oracle 8i server (9.x driver)
> 
> 
> I am getting the same exception:
> Caught SQLException while getting user profile:
> org.jboss.util.NestedSQLException: No ManagedConnections Available!; -
> nested throwable: (javax.resource.ResourceException: No
> ManagedConnections Available!)
> 
> I am (painfully) aware of all the leaks in Oracle's
> driver, and am very diligent about closing connections, resultsets,
> statements, etc.
> 
> How would a loss of connections (ie DB server reboot)
> manifest itself? Same error? 
> 
> 
> Strangely, netstat shows no connections to the DB box.
> Ideas?
> 
> 
> Mike
> 
> 
> 
> 
> -Original Message-
> From: Alex Loubyansky [
> HREF="" href="mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]">mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 21, 2003 2:12 AM
> To: nfs_ nfs
> Subject: Re: [JBoss-user] ManagedConnections
> Available!
> 
> 
> 
> This means there are no mor

RE: [JBoss-user] ManagedConnections Available!

2003-02-26 Thread Finn, Michael
Title: RE: [JBoss-user] ManagedConnections Available!





This just happened here last night, in production as luck would have it. 


JBoss 3.0.2
Oracle 8i server (9.x driver)


I am getting the same exception:
Caught SQLException while getting user profile: org.jboss.util.NestedSQLException: No ManagedConnections Available!; - nested throwable: (javax.resource.ResourceException: No ManagedConnections Available!)

I am (painfully) aware of all the leaks in Oracle's driver, and am very diligent about closing connections, resultsets, statements, etc.

How would a loss of connections (ie DB server reboot) manifest itself? Same error? 


Strangely, netstat shows no connections to the DB box. Ideas?


Mike




-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 21, 2003 2:12 AM
To: nfs_ nfs
Subject: Re: [JBoss-user] ManagedConnections Available!



This means there are no more available connections in the pool.
Make sure you properly handle them, i.e. closing them correctly. Also
more info about what you are doing would give more response.


alex


Friday, February 21, 2003, 7:17:40 AM, nfs_ nfs wrote:
nn> Hi all,
nn> Anyone knows why this error "HTTP ERROR: 500 SQL Exception while getting DB 
nn> connection : org.jboss.util.NestedSQLException: No ManagedConnections 
nn> Available!; - nested throwable: (javax.resource.ResourceException: No 
nn> ManagedConnections Available!)"


nn> showing up ?,if this error is for database connection than do i have to 
nn> specify the limit of database connection in JBoss ?.



nn> Thanks in advance.





---
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] j_secuity_check

2003-02-14 Thread Finn, Michael
Title: RE: [JBoss-user] j_secuity_check





David, Gabriel:


Check out the *session* attribute "org.mortbay.jetty.URI". It gets set by FormAuthenticator, just before control is passed to configured login page. Not sure where/if it's unset.

mike




-Original Message-
From: David Ward [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 14, 2003 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] j_secuity_check



Gabriel,


Sorry; I didn't know what you initially meant.


Well, I just edited my login page to spit out some debug.  I enumerated 
over and logged all request headers, request attributes and request 
parameters, and  the only stuff that was visible in the implicit 
request object on the login page were headers.  Of the headers, the only 
one that might be remotely useful is the "referer" header, which says 
where you came *from*.  I didn't see anything about where you were 
trying to go *to*.


If you figure this one out, please share.


Thanks,
David


--


Gabriel Pinto escribió::
> That's ok !
> 
> But what I need is to know where it will take me when I am at the login 
> page, so that I can make differen login pages to differente protected 
> contexts.
> 
> Does anyone knows how to do it?
> 
> Thaks
> 
> Gabriel
> 
> 
> 
> On Thu, 13 Feb 2003, David Ward wrote:
> 
> 
>>The user will go wherever he/she was trying to go to before web-tier 
>>security intercepted the request and presented the login page.  If the 
>>user fails to authenticate, you can configure the error page in web.xml.
>>
>>--
>>
>>Gabriel Pinto escribió::
>>
>>>How can I know where j_security_check will foward me after login 
>>>authentication?
>>>
>>>Thanks
>>>
>>>Gabriel
>>>
>>>




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Re: [JBoss-dev] EJB Timer Service Update

2002-12-20 Thread Finn, Michael
Title: RE: [JBoss-user] Re: [JBoss-dev] EJB Timer Service Update





Make that 2 votes!


-Original Message-
From: Tom Coleman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Re: [JBoss-dev] EJB Timer Service Update




I could really use the Timer service in 3.2.


> 
> (when) does it make sense to backport this to the 3.2 branch?
> 
> how much effort is it?
> 



---
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M    http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Start JBoss 3 upon Linux Reboot

2002-12-19 Thread Finn, Michael



Mike,
 
We created a wrapper around the start/stop scripts, which 
is called from our init.d script. In the wrapper, we set instance-local stuff 
like JAVA_HOME, JBOSS_HOME, JAVA_OPTS (memory, tmp dir, etc) and other stuff. 
That way there is no specific stuff in init.d or customizations made to the 
JBoss distro files.
 
Mike

  -Original Message-From: Mike Lecza 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, December 19, 2002 7:01 
  AMTo: [EMAIL PROTECTED]Subject: RE: 
  [JBoss-user] Start JBoss 3 upon Linux Reboot
  
  Thanx for the reply – 
  but since it seems that rc.local executes the starting of Jboss before bashrc 
  this does not help.  I guess we’ll have to run bashrc from the startup 
  script…
   
   
  -Original 
  Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of John FawcettSent: Thursday, December 
  19, 2002 12:03 
  AMTo: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] Start JBoss 3 
  upon Linux Reboot
   
   
   
  If you 
  use the factory .bashrc from redhat, it makes a callout to /etc/bashrc. 
  environment variables set in /etc/bashrc thus are available to all users. init 
  should pick up variables set in this file. This is fine if you only have one 
  jdk for all users on the machine. 
   
  I am 
  looking at the script in jboss-head and it runs the startup script optionally 
  under another username, which is highly recommended. If you create a 
  JbossUser, and configure that user’s .bashrc, the start up script should pick 
  up those variables.
   
  regards,
  fawce
   
   
  
   
  -
  John 
  Fawcett
  CTO, Tamale 
  Software, LLC
  26 Fox 
  Road
  Waltham, MA 
  02451
  (781)290-5877
   
  -Original 
  Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]] On Behalf Of Mike LeczaSent: Wednesday, December 18, 2002 7:33 
  AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] Start JBoss 3 upon 
  Linux Reboot
   
  JBoss 3 + RH Linux 
  7.x
   
  We currently start Jboss upon 
  reboot by running the start script in rc.local. The problem is that the 
  JAVA_HOME which is set in .bashrc is not set before rc.local is executed 
  during the Linux startup. Asside from setting JAVA_HOME in the jboss start 
  script or setting it in rc.local, what would be the recommended method of 
  starting Jboss upon reboot?
   
  Regards  
  


RE: [JBoss-user] Oracle+CMP+Fixed length columns

2002-12-16 Thread Finn, Michael
Title: Oracle+CMP+Fixed length columns



Thanks. This is really stupid behavior on Oracle's 
part, IMHO. Unfortunately, neither is a good option for us. VARCHARs incur 
unnecessary overhead, and BMP is a step backwards for us. I'll go back to plain 
DAOs first
 
It's kind of a kludge, but what I have done for now is 
to use a rightPad on the value before calling the finder method 
(StringUtils.rightPad() from Jakarta-Commons for those 
interested).
 
Dain/other CMP-dudes: comments?
 
Mike
 
 

  -Original Message-From: Sasidharan, Manoj 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 16, 2002 
  4:42 PMTo: [EMAIL PROTECTED]Subject: RE: 
  [JBoss-user] Oracle+CMP+Fixed length columns
  Hello All,
   
  We 
  had seen this behaviour... 
   
  The 
  following are the possible workarounds:
  1. Use Oracle specific syntax and BMP. CMP 
  cannot handle this
  2. Change the database schema to 
  use VARCHAR instead of CHAR (we have adopted this as a short-term 
  solution)
   
  If 
  somebody else have a better idea, please let me know.
   
  HTH
  regards
  MS
  
-Original Message-----From: Finn, Michael 
[mailto:[EMAIL PROTECTED]]Sent: Monday, December 16, 
2002 1:22 PMTo: Jboss-User (E-mail) (E-mail)Subject: 
[JBoss-user] Oracle+CMP+Fixed length columns
Folks, 
In Oracle, there is a PITA 
problem with prepared statements that forces you to right pad the value in a 
where clause arg  for fixed length fields. Example:
create table SOMETABLE (   SOMECOLUMN char(10) ) // Assume this 
data insert into 
SOMETABLE("FOO"); 
// And this code PreparedStatement ps = 
conn.prepareStatement("select count(*) from SOMETABLE where SOMECOLUMN = 
?"); ps.setString(1,"FOO");  
    
    ResultSet rs = 
ps.executeQuery();   << Will get 
count = 0 
ps.setString(1,"FOO   
");       << Value 
rightpadded to size of DB col ResultSet rs = ps.executeQuery();   
<< Will get count = 1 
// But this Statement st = conn.createStatement("select 
count(*) from SOMETABLE where SOMECOLUMN = 'FOO'"); ResultSet rs = 
st.executeQuery();   << Will get 
count = 1 
Is there a provision for this 
(like a switch somewhere) in CMP, that allows one to pass a value 
(unmolested) to a finder method?
TIA 
--- Mike 
Finn   
Frontier 
Communications  Rochester, 
NY    
V: 585-777-8202 E: mailto:[EMAIL PROTECTED] 



[JBoss-user] Oracle+CMP+Fixed length columns

2002-12-16 Thread Finn, Michael
Title: Oracle+CMP+Fixed length columns





Folks,


In Oracle, there is a PITA problem with prepared statements that forces you to right pad the value in a where clause arg  for fixed length fields. Example:

create table SOMETABLE 
(
  SOMECOLUMN char(10)
)
// Assume this data
insert into SOMETABLE("FOO");


// And this code
PreparedStatement ps = conn.prepareStatement("select count(*) from SOMETABLE where SOMECOLUMN = ?");
ps.setString(1,"FOO");          
ResultSet rs = ps.executeQuery();   << Will get count = 0


ps.setString(1,"FOO   ");       << Value rightpadded to size of DB col
ResultSet rs = ps.executeQuery();   << Will get count = 1



// But this
Statement st = conn.createStatement("select count(*) from SOMETABLE where SOMECOLUMN = 'FOO'");
ResultSet rs = st.executeQuery();   << Will get count = 1



Is there a provision for this (like a switch somewhere) in CMP, that allows one to pass a value (unmolested) to a finder method?

TIA



---
Mike Finn   
Frontier Communications  
Rochester, NY    
V: 585-777-8202
E: mailto:[EMAIL PROTECTED]






RE: [JBoss-user] Multiple instances

2002-11-08 Thread Finn, Michael



Actually that's as of 3.0.1.

  -Original Message-From: Finn, Michael 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, November 08, 
  2002 7:21 AMTo: 
  '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] 
  Multiple instances
  Sure. 
  There are two ways to do this:
  1) Run two instance on the same 'net interface/IP 
  address. You'll need to change the 
  ports for all listener services (http, jndi/jnp, rmi, hsql, web, and html-jmx 
  adaptor if 2.4).
  2) Run multiple net interfaces (either virtual or 
  physical), and configure the services to bind to the respective 
  interface.
   
  IMO #1 is easier (you don't have to convince your SA 
  to add virtual interfaces - if you don't have SA control over your box), and 
  there is at least one pre-3.0.2 service (html-jmx adaptor) that does not 
  support explicit interface binding. In 3.0.2 and after, the html-jmx adapter 
  has been replaced with a web application, deployed as a WAR file (actually 
  directory) and mounted to /jmx-console.
   
  #mike
   -Original Message-From: 
  Javier Cano [mailto:[EMAIL PROTECTED]]Sent: Friday, November 
  08, 2002 4:13 AMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] Multiple 
  instances
  
How can I have running multiple instances of 
JBoss  in the same machine?
 
 
Thank 
you


RE: [JBoss-user] Multiple instances

2002-11-08 Thread Finn, Michael



Sure. 
There are two ways to do this:
1) Run two instance on the same 'net interface/IP address. 
You'll need to change the ports for all listener services 
(http, jndi/jnp, rmi, hsql, web, and html-jmx adaptor if 
2.4).
2) Run multiple net interfaces (either virtual or 
physical), and configure the services to bind to the respective 
interface.
 
IMO #1 is easier (you don't have to convince your SA 
to add virtual interfaces - if you don't have SA control over your box), and 
there is at least one pre-3.0.2 service (html-jmx adaptor) that does not support 
explicit interface binding. In 3.0.2 and after, the html-jmx adapter has been 
replaced with a web application, deployed as a WAR file (actually directory) and 
mounted to /jmx-console.
 
#mike
 -Original Message-From: 
Javier Cano [mailto:[EMAIL PROTECTED]]Sent: Friday, November 
08, 2002 4:13 AMTo: 
[EMAIL PROTECTED]Subject: [JBoss-user] Multiple 
instances

  How can I have running multiple instances of 
  JBoss  in the same machine?
   
   
  Thank you


RE: [JBoss-user] mulitple installations

2002-11-07 Thread Finn, Michael
Title: RE: [JBoss-user] mulitple installations





Susan,


Changing jboss.jcml (the Naming service MBean) should change the listen port for naming. I have never seen this not work. Are you sure it's the Naming service complaining about JVM bind? What version/platform are you on? I just successfully tested this w/ 2.4.9 (2 servers side by side on same box with all ports changed on the 'second' server). Both instances come up.

Mike


-Original Message-
From: Susan Deaves [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 06, 2002 5:19 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] mulitple installations








> Can any one help me with the cinfiguration of jboss default port. In order
> to run 2 installations on one server I wish to change the default port(s)
> from 1099 to 1066.I have edited the jboss.jcml for the naming service but
> the second installtaion still tries to run on 1099 produving a jvm bind
> error. I think I need to change the 8082 and 8083 ports and catalina port
> too. Is there anything else I need to change?
> 
> Susie Deaves 
> 01935 443000 ext 5055
> Aerosystems International
> 



This Internet E-mail is intended solely for the person to whom it is addressed. It may contain confidential or privileged information. If you have received it in error please notify us immediately by telephone and destroy the transmission. You must not copy, distribute or take any action in reliance on it.

Aerosystems International   Phone: +44 (0)1935 443000
    Fax  : +44 (0)1935 443111
    Web  : www.aeroint.com




---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Problems binding Jboss to multiple interfaces

2002-10-31 Thread Finn, Michael
Title: RE: [JBoss-user] Problems binding Jboss to multiple interfaces





FWIW - I don't think the JMX-HTML adapter (or the MBean) can support an explicit bind interface. If you are on 3.0.2+, it's no issue (jmx-console is there), but with 2.4.x, you may have to live without it - or get jmx-console from 3.x (I imagine it would work).

mike


-Original Message-
From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 31, 2002 9:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Problems binding Jboss to multiple interfaces



in conf/jboss-service.xml, for the JNDI service MBean (you need to add a new
attribute). But then, you will need to do the same for all MBean that bind
to a port.


Cheers,


            Sacha


> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Seth Ladd
> Envoye : jeudi, 31 octobre 2002 15:44
> A : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Problems binding Jboss to multiple interfaces
>
>
> Sacha Labourey wrote:
> > yes, you can: simply set a BindAddress attribute for both app
> servers and
> > bind them to different IP address: they will both use 1099 but will be
> > attached to a different IP. If you don't specify a binding address, the
> > wildcard address (0.0.0.0) is used.
>
> Where do we set the BindAddress attribute?  We'd love to be able to run
> two instances of JBoss on the same machine.
>
> Thanks very much!
> Seth
>
>
>
> ---
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Problems binding Jboss to multiple interfaces

2002-10-31 Thread Finn, Michael
Title: RE: [JBoss-user] Problems binding Jboss to multiple interfaces





Sorry - you are right. I was thinking of the multi-user/different port implementation - how we do it here. We have multiple instances, but each uses its own set of ports.

-Original Message-
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 31, 2002 3:47 AM
To: [EMAIL PROTECTED]
Subject: AW: [JBoss-user] Problems binding Jboss to multiple interfaces



Mike,


I allready looked at the mail archive but wasn't able to find something
like that (what makes me wondering).


Why does the JNDI server has to be bind to port != 1099? I thought to be
able to use the same ports on both IP addresses. Otherwise I don't see
any advantages in using different IPs.


Alex



--
Alexander Sparkowsky, Berlin, Germany
 
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Im Auftrag von Finn,
Michael
Gesendet: Mittwoch, 30. Oktober 2002 18:56
An: '[EMAIL PROTECTED]'
Betreff: RE: [JBoss-user] Problems binding Jboss to multiple interfaces



Alex, 
I doubt it would make a difference, if I understand the problem. You
have two JBoss installs; and each is configured to run on a separate IP?
The first server comes up OK, but the 2nd one croaks when it tries to
bind for JNDI/JNP? Assuming so,
Make sure: 
1) Your virtual address is in your hosts table (/etc/hosts or whatever) 
2) In jboss.jcml, you added an attribute called BindAddress in the MBean
config for JNDI: 
  
name="DefaultDomain:service=Naming"> 
    not1099 
    your.virtual.host.name 
   
It looks like JNP binds by hostname (does a getHostByName() off the
BindAddress attribute value), so try host name rather than IP.
Go to mail-archive.com and search jboss-user for this issue. I am pretty
sure it has come up in the past. 
Mike 



-Original Message- 
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 30, 2002 11:51 AM 
To: [EMAIL PROTECTED] 
Subject: AW: [JBoss-user] Problems binding Jboss to multiple interfaces 



Mike, 
I'm getting the first exception when jboss tries to bind the JNDI 
listener (port 1099). 
Would it be better to use Jboss 3.x for multi-ip-server? Or will I run 
into the same problems? 
Alex 



-- 
Alexander Sparkowsky, Berlin, Germany 
  
-Ursprüngliche Nachricht- 
Von: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] Im Auftrag von Finn, 
Michael 
Gesendet: Mittwoch, 30. Oktober 2002 16:17 
An: '[EMAIL PROTECTED]' 
Betreff: RE: [JBoss-user] Problems binding Jboss to multiple interfaces 



Alex, 
I assume you are using 2.4? Make sure you change the bind IP for *all* 
services. Sounds like you missed some (I don't think everything is in 
jboss.jcml). Also, if memory serves, you cannot make the HTML JMX 
adaptor (default port 8082) explicitly listen to an IP (no such 
attribute exists for the MBean, and no such config parm exists for the 
implementation -which is Sun's). That may be the one giving you 
problems. 
http(8080),rmi(),webserver(8083),jmx/html(8082),jndi(1099),hsql(1476


) - if you use it 
Mike 



-Original Message- 
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 30, 2002 9:07 AM 
To: [EMAIL PROTECTED] 
Subject: [JBoss-user] Problems binding Jboss to multiple interfaces 



Hi, 
I'm trying to start two jboss instances on one server. If established a 
virtual interface for a second ip address. 
I added this address in jboss.properties and jboss.jcml for JNDI and 
Classloading using  
When I start my second Jboss I tells me that the address is allready in 
use. 
Then I entered a random ip-address to see if I used the right tags and 
got the message that this address is unknown. So I think that I found 
the right places to set the Address. 
Any advice? 
Thanks, 
Alex 
-- 
Alexander Sparkowsky, Berlin, Germany 





--- 
This sf.net email is sponsored by:ThinkGeek 
Welcome to geek heaven. 
http://thinkgeek.com/sf 
___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user 




--- 
This sf.net email is sponsored by:ThinkGeek 
Welcome to geek heaven. 
http://thinkgeek.com/sf 
___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user 




---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Problems binding Jboss to multiple interfaces

2002-10-30 Thread Finn, Michael
Title: RE: [JBoss-user] Problems binding Jboss to multiple interfaces





Alex,
I doubt it would make a difference, if I understand the problem. You have two JBoss installs; and each is configured to run on a separate IP? The first server comes up OK, but the 2nd one croaks when it tries to bind for JNDI/JNP? Assuming so,

Make sure:
1) Your virtual address is in your hosts table (/etc/hosts or whatever)
2) In jboss.jcml, you added an attribute called BindAddress in the MBean config for JNDI:
  
    not1099
    your.virtual.host.name
  


It looks like JNP binds by hostname (does a getHostByName() off the BindAddress attribute value), so try host name rather than IP.

Go to mail-archive.com and search jboss-user for this issue. I am pretty sure it has come up in the past.


Mike



-Original Message-
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 30, 2002 11:51 AM
To: [EMAIL PROTECTED]
Subject: AW: [JBoss-user] Problems binding Jboss to multiple interfaces



Mike,


I'm getting the first exception when jboss tries to bind the JNDI
listener (port 1099).


Would it be better to use Jboss 3.x for multi-ip-server? Or will I run
into the same problems?


Alex



--
Alexander Sparkowsky, Berlin, Germany
 
-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Im Auftrag von Finn,
Michael
Gesendet: Mittwoch, 30. Oktober 2002 16:17
An: '[EMAIL PROTECTED]'
Betreff: RE: [JBoss-user] Problems binding Jboss to multiple interfaces



Alex, 
I assume you are using 2.4? Make sure you change the bind IP for *all*
services. Sounds like you missed some (I don't think everything is in
jboss.jcml). Also, if memory serves, you cannot make the HTML JMX
adaptor (default port 8082) explicitly listen to an IP (no such
attribute exists for the MBean, and no such config parm exists for the
implementation -which is Sun's). That may be the one giving you
problems.
http(8080),rmi(),webserver(8083),jmx/html(8082),jndi(1099),hsql(1476
) - if you use it 
Mike 



-Original Message- 
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 30, 2002 9:07 AM 
To: [EMAIL PROTECTED] 
Subject: [JBoss-user] Problems binding Jboss to multiple interfaces 



Hi, 
I'm trying to start two jboss instances on one server. If established a 
virtual interface for a second ip address. 
I added this address in jboss.properties and jboss.jcml for JNDI and 
Classloading using  
When I start my second Jboss I tells me that the address is allready in 
use. 
Then I entered a random ip-address to see if I used the right tags and 
got the message that this address is unknown. So I think that I found 
the right places to set the Address. 
Any advice? 
Thanks, 
Alex 
-- 
Alexander Sparkowsky, Berlin, Germany 





--- 
This sf.net email is sponsored by:ThinkGeek 
Welcome to geek heaven. 
http://thinkgeek.com/sf 
___ 
JBoss-user mailing list 
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/jboss-user 




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Problems binding Jboss to multiple interfaces

2002-10-30 Thread Finn, Michael
Title: RE: [JBoss-user] Problems binding Jboss to multiple interfaces





Alex,


I assume you are using 2.4? Make sure you change the bind IP for *all* services. Sounds like you missed some (I don't think everything is in jboss.jcml). Also, if memory serves, you cannot make the HTML JMX adaptor (default port 8082) explicitly listen to an IP (no such attribute exists for the MBean, and no such config parm exists for the implementation -which is Sun's). That may be the one giving you problems.

http(8080),rmi(),webserver(8083),jmx/html(8082),jndi(1099),hsql(1476) - if you use it


Mike



-Original Message-
From: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 30, 2002 9:07 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Problems binding Jboss to multiple interfaces



Hi,


I'm trying to start two jboss instances on one server. If established a
virtual interface for a second ip address.


I added this address in jboss.properties and jboss.jcml for JNDI and
Classloading using 


When I start my second Jboss I tells me that the address is allready in
use.


Then I entered a random ip-address to see if I used the right tags and
got the message that this address is unknown. So I think that I found
the right places to set the Address.


Any advice?


Thanks,
Alex


--
Alexander Sparkowsky, Berlin, Germany





---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] JBoss 3.0.1 and Oracle-XA

2002-09-23 Thread Finn, Michael
Title: RE: [JBoss-user] JBoss 3.0.1 and Oracle-XA





Jon,


What driver are you trying to use? oci or thin? Your URL is a mix of both:
jdbc:oracle:oci8:@ --> OCI driver
banklab3:1521:ora8 --> Thin driver


If you are going to use the OCI driver (a type 2 driver):
1) You will need an install of the Oracle client software
2) You will need Oracle libs (not jars) in your lib path (not classpath)
3) Your URL points at a tnsnames entry, not a host:port pair.


If you are going to use thin driver (type 4):
You need classes12.zip in your classpath (like $JBOSS/server/{yourconfig}/lib).


If you want to use the thin driver, your URL will be something like:
jdbc:oracle:thin:@banklab3:1521:ora8


(change "oci8" to thin)


HTH,
Mike



-Original Message-
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 10:07 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss 3.0.1 and Oracle-XA




I am trying to get Oracle-XA to work with JBoss 3.0.1, by doing the
following:


 1. I copy the docs/examples/jca/oracle-xa-service.xml
 2. I change the line with URL=jdbc:oracle:oci8:@tc
    to URL=jdbc:oracle:oci8:@banklab3:1521:ora8
 3. I insert username and password
 4. I include an true into
    jboss-service.xml



It looks like the mbean is registrated, but I get error message that
complain with "no ocijdbc8 in java.library.path"


 I assume no 2 above is not correct.  But how should the URL be then?


-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, 




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





RE: [JBoss-user] Re : Jboss3.0 on Linux

2002-09-19 Thread Finn, Michael
Title: RE: [JBoss-user] Re : Jboss3.0 on Linux





Looks like something is already listening on your http port. 
- Make sure there isn't a JBoss process already running
- Use netstat -a to see what ports on being listened on
- To see what's got the port, use the lsof util (freely available, but probably not in your distro)


Mike


-Original Message-
From: Arijit Ghosh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 5:58 AM
To: JBoss User
Subject: [JBoss-user] Re : Jboss3.0 on Linux



I don't want to install Jboss as a Linux service, as mentioned in the
quick start guide.


Now I am also getting the following error and server shuts down
automatically.


2002-09-19 14:33:12,905 ERROR [org.jboss.web.WebService] Starting failed


java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
 at java.net.ServerSocket.(ServerSocket.java:170)
 at org.jboss.web.WebServer.start(WebServer.java:160)
 at org.jboss.web.WebService.startService(WebService.java:104)
 at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)


 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)


 at $Proxy0.start(Unknown Source)
 at org.jboss.system.ServiceController.start(ServiceController.java:340)


 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
 at $Proxy3.start(Unknown Source)
 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
 at org.jboss.Main.boot(Main.java:142)
 at org.jboss.Main$1.run(Main.java:375)
 at java.lang.Thread.run(Thread.java:484)
2002-09-19 14:33:12,927 ERROR [org.jboss.deployment.SARDeployer] start
operation failed on package
file:/home/jboss/server/jboss-3.0.0_tomcat-4.0.3/server/default/conf/jboss-service.xml


java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
 at java.net.ServerSocket.(ServerSocket.java:170)
 at org.jboss.web.WebServer.start(WebServer.java:160)
 at org.jboss.web.WebService.startService(WebService.java:104)
 at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)


 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)


 at $Proxy0.start(Unknown Source)
 at org.jboss.system.ServiceController.start(ServiceController.java:340)


 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
 at $Proxy3.start(Unknown Source)
 at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)
 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)


 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)


 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
 at org.jboss.Main.boot(Main.java:142)
 at org.jboss.Main$1.run(Main.java:375)
 at java.lang.Thread.run(Thread.java:484)




Any pointers ???



Regards,
  Arijit




See the QuickStart guide at
http://sourceforge.net/project/s