[JBoss-user] Error running example JMS
Hi! I am having lots of problems running the examples of JMS of SUN. The error is: JNDI lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial And the code is: /* * Create a JNDI InitialContext object if none exists yet. */ try { jndiContext = new InitialContext(); } catch (NamingException e) { System.out.println("Could not create JNDI " + "context: " + e.toString()); System.exit(1); } /* * Look up connection factory and queue. If either does * not exist, exit. */ try { queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("QueueConnectionFactory"); queue = (Queue) jndiContext.lookup(queueName); } catch (NamingException e) { System.out.println("JNDI lookup failed: " + e.toString()); System.exit(1); } In the command line: "java SimpleQueueSender MyQueue 3" And the configuration is: Classpath=.;j2ee.jar JBoss 2.2.1 Jdk1.3 Does anybody know what is going on? Thanks...
[JBoss-user] TimedOut connection
Hi, I have a connection time out problem. I am using jBoss 2.0 final, with a connection to an oracle DB. Whenever i run an sql statement which takes a few minutes, i can see in the log that the connection times out. No exception is thrown and nothing fails. Is seems as if the operation succeeded successfully but no results are shown in the DB as if the all transaction was not committed. I have tried changing a few of the entries in the jBoss.jcml, like setting the blocking to [true/false], the idle time out, the gc enabled but nothing affects this behavior. Thanks in advance for your help. Eitan Weisbeker Research & Development, Java InfraStructure Manager ProActivityInc e-mail : [EMAIL PROTECTED] comapny home page : www.proactivityinc.com 09-8859930/214 055-700886 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB Remote Interface for Tomcat
Hi! Is it a must to place the classes of remote interface of EJB to classpath of Tomcat so that she can lookup? Why I can't make use of WEB-INF/classes? Thanks Arion ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error in Linking Jboss 2.2.1 with Tomcat 3.2.1 in Redhat linux 7.0
Hi all, I have installed Apache 1.3.19 and Tomcat 3.2.1 in Redhat Linux 7.0The combination is working successfully. Now I'm trying to install JBoss 2.2in Redhat Linux and link it with Tomcat so that combination Apache+Tomcat+JBosswould work successfully. I get errors while running jboss after configuring with tomcat. Pl find attachement for errors.I am unable to configure Jboss properly. Also I do not want to uninstall Apache and Tomcat and Install Apache and Jboss+Tomcatcombination as there would be mod_jk.so problem for linking Apache and Tomcat. The format of jboss installation is .zipIsn't there any .rpm format for linux? Kindly help me in overcoming my problem.Also pl suggest steps to configure Tomcat and JBoss I followed the steps in URL http://www.jboss.org/documentation/HTML/ch11.html But not successful Thanks in AdvanceVinay Ram JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar jboss.home = /usr/local/jboss/dist Using configuration "default" [root] Started Log4jService, config=file:/usr/local/jboss/dist/conf/default/log4j.properties [Info] Java version: 1.3.0_02,Sun Microsystems Inc. [Info] Java VM: Java HotSpot(TM) Server VM 1.3.0_02,Sun Microsystems Inc. [Info] System: Linux 2.2.16-22,i386 [Classpath extension] Classpath extension file:/usr/local/jboss/dist/lib/ext/TOMCAT_HOME/lib/ is invalid. [Default] java.lang.NullPointerException [Default] at org.jboss.util.ClassPathExtension.postRegister(ClassPathExtension.java:86) [Default] at com.sun.management.jmx.MBeanServerImpl.postRegisterInvoker(MBeanServerImpl.java:2274) [Default] at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:784) [Default] at javax.management.loading.MLet.getMBeansFromURL(MLet.java:540) [Default] at javax.management.loading.MLet.getMBeansFromURL(MLet.java:369) [Default] at org.jboss.Main.(Main.java:172) [Default] at org.jboss.Main$1.run(Main.java:106) [Default] at java.security.AccessController.doPrivileged(Native Method) [Default] at org.jboss.Main.main(Main.java:102) [Shutdown] Shutdown hook added [Service Control] Initializing 27 MBeans [Webserver] Initializing [Webserver] Initialized [Naming] Initializing [Naming] Initialized [JNDIView] Initializing [JNDIView] Initialized [Transaction manager] Initializing [Transaction manager] Initialized [Client UserTransaction manager] Initializing [Client UserTransaction manager] Initialized [JAAS Security Manager] Initializing [JAAS Security Manager] Initialized [JDBC provider] Initializing [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JDBC provider] Initialized [Hypersonic] Initializing [Hypersonic] Initialized [InstantDB] Initializing [InstantDB] Initialized [DefaultDS] Initializing [DefaultDS] Initialized [Container factory] Initializing [Container factory] Initialized [EmbeddedTomcat] Initializing [EmbeddedTomcat] Initialized [JBossMQ] Initializing [JBossMQ] Initialized [DefaultJMSProvider] Initializing [Default] queue factory name: XAQueueConnectionFactory [Default] topic factory name: XATopicConnectionFactory [DefaultJMSProvider] Initialized [StdJMSPool] Initializing [StdJMSPool] Initialized [J2EE Deployer Default] Initializing [J2EE Deployer Default] Initialized [RARDeployer] Initializing [RARDeployer] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaNoTransCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaSharedLocalCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaXACMFactory] Initialized [ConnectionFactoryLoader] Initializing [MinervaDS] Initialized [ConnectionFactoryLoader] Initializing [JmsXA] Initialized [Auto deploy] Initializing [Auto deploy] Initialized [JMX RMI Adaptor] Initializing [JMX RMI Adaptor] Initialized [JMX RMI Connector] Initializing [JMX RMI Connector] Initialized [Mail Service] Initializing [Mail Service] Initialized [Service Control] Initialized 27 services [Service Control] Starting 27 MBeans [Webserver] Starting [Webserver] Codebase set to http://NITIN:8083/ [Webserver] Started webserver on port 8083 [Webserver] Started [Naming] Starting [Naming] Starting jnp server [Naming] Started jnpPort=1099, rmiPort=0 [Naming] Naming started on port 1099 [Naming] Started [JNDIView] Starting [JNDIView] Started [Transaction manager] Starting [Transaction manager] Started [Client UserTransaction manager] Starting [Client UserTransaction manager] Started [JAAS Security Manager] Starting [Default] JAAS.startService, cachePolicy=null [Default] JAAS.startService, SecurityProxyFactory=org.jboss.security.SubjectSecurityProxyFactory@513c f0 [JAAS Security Manager] Started [JDBC provider] Starting [JDBC provider] Started [Hypersonic] Starting [Hypersonic] Database started [Hypersonic] Started [InstantDB] Starting [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB [Default] Enhydra InstantDB - Version 3.2
Re: [JBoss-user] Oracle Connection Pool Startup - Null Pointer Error
try using LOCALHOST:1521 instead of 127.0.0.1 john cooney wrote: > I am having lots of problems starting an Oracle connection pool, I > am getting a null pointer exception. > > I am using: win 2000, Oracle 8.1.6 and JBoss 2.2.1. > > The instance DOES appear to have started. I can connect to the database > using the JBuilder 4 JDBC explorer. > > I am using the XADataSourceImpl class (not the Oracle one). > > jboss.jcml looks like this: > > >name="DefaultDomain:service=JdbcProvider"> > oracle.jdbc.driver.OracleDriver > > >name="DefaultDomain:service=XADataSource,name=OracleDS"> > OracleDS > >name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl > jdbc:oracle:[EMAIL PROTECTED]:1521:DB > scott > tiger > > > This is the stack trace: > > [OracleDS] Starting > [OracleDS] XA Connection pool OracleDS bound to java:/OracleDS > [OracleDS] Stopped > [OracleDS] java.lang.NullPointerException > [OracleDS] at > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection( > XAPoolDataSource.java:165) > [OracleDS] at > org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLo > ader.java:330) > [OracleDS] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > java:93) > [OracleDS] at java.lang.reflect.Method.invoke(Native Method) > [OracleDS] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [OracleDS] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [OracleDS] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [OracleDS] at java.lang.reflect.Method.invoke(Native Method) > [OracleDS] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [OracleDS] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [OracleDS] at org.jboss.Main.(Main.java:203) > [OracleDS] at org.jboss.Main$1.run(Main.java:107) > [OracleDS] at java.security.AccessController.doPrivileged(Native > Method) > [OracleDS] at org.jboss.Main.main(Main.java:103) > [Service Control] Could not start > DefaultDomain:service=XADataSource,name=Oracle > DS > [Service Control] java.lang.NullPointerException > [Service Control] at > org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon > nection(XAPoolDataSource.java:165) > [Service Control] at > org.jboss.jdbc.XADataSourceLoader.startService(XAData > SourceLoader.java:330) > [Service Control] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBean > Support.java:93) > [Service Control] at java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1523) > [Service Control] at > org.jboss.util.ServiceControl.start(ServiceControl.ja > va:97) > [Service Control] at java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1523) > [Service Control] at org.jboss.Main.(Main.java:203) > [Service Control] at org.jboss.Main$1.run(Main.java:107) > [Service Control] at > java.security.AccessController.doPrivileged(Native Me > thod) > [Service Control] at org.jboss.Main.main(Main.java:103) > > _ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Apache + JBoss-Tomcat ?
Hello, Is is possible to use Apache + JBoss-Tomcat ? Tomcat is very easy to use with Apache, since Tomcat 3.2.1 will automatic produce a mod_jk.conf-auto when run Tomcat. So, I can easily include that configure file in apache configure(httpd.conf) . But when I run JBoss-Tomcat package, it will not produce that file. Since JBoss-Tomcat can auto deploy .ear, how can Apache know the new context ? Would you please to teach me if it is possible ? Best regards, Eric ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Oracle Connection Pool Startup - Null Pointer Error
I am having lots of problems starting an Oracle connection pool, I am getting a null pointer exception. I am using: win 2000, Oracle 8.1.6 and JBoss 2.2.1. The instance DOES appear to have started. I can connect to the database using the JBuilder 4 JDBC explorer. I am using the XADataSourceImpl class (not the Oracle one). jboss.jcml looks like this: oracle.jdbc.driver.OracleDriver OracleDS org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:oracle:[EMAIL PROTECTED]:1521:DB scott tiger This is the stack trace: [OracleDS] Starting [OracleDS] XA Connection pool OracleDS bound to java:/OracleDS [OracleDS] Stopped [OracleDS] java.lang.NullPointerException [OracleDS] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection( XAPoolDataSource.java:165) [OracleDS] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLo ader.java:330) [OracleDS] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. java:93) [OracleDS] at java.lang.reflect.Method.invoke(Native Method) [OracleDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1628) [OracleDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1523) [OracleDS] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [OracleDS] at java.lang.reflect.Method.invoke(Native Method) [OracleDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1628) [OracleDS] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl .java:1523) [OracleDS] at org.jboss.Main.(Main.java:203) [OracleDS] at org.jboss.Main$1.run(Main.java:107) [OracleDS] at java.security.AccessController.doPrivileged(Native Method) [OracleDS] at org.jboss.Main.main(Main.java:103) [Service Control] Could not start DefaultDomain:service=XADataSource,name=Oracle DS [Service Control] java.lang.NullPointerException [Service Control] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon nection(XAPoolDataSource.java:165) [Service Control] at org.jboss.jdbc.XADataSourceLoader.startService(XAData SourceLoader.java:330) [Service Control] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean Support.java:93) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.util.ServiceControl.start(ServiceControl.ja va:97) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.Main.(Main.java:203) [Service Control] at org.jboss.Main$1.run(Main.java:107) [Service Control] at java.security.AccessController.doPrivileged(Native Me thod) [Service Control] at org.jboss.Main.main(Main.java:103) _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Question about RoleGroup
- Forwarded by Arion Yu/Solutions Delivery/hk/i-stt on 2001/05/14 10:21 AM - Arion Yu To: [EMAIL PROTECTED] 2001/05/14 cc: 10:20 AM Subject: Question about RoleGroup I have read the chapter about Custom Login Modules ( http://www.jboss.org/documentation/HTML/ch09s17.html). For DatabaseServerLoginModule, there is something called "RoleGroup" but I found no relevant information about this stuff. It is also not present in other Login Modules. Would another tell me what it is? For the Role in the Roles Table, if the user have more than 1 role, should the record be stored as Role="user,admin" ? It would be quite different to JDBCRealm of tomcat. (She would give out 2 records). There must be a reason behind, could anyone share with me? Thanks Arion ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Question about RoleGroup
I have read the chapter about Custom Login Modules (http://www.jboss.org/documentation/HTML/ch09s17.html). For DatabaseServerLoginModule, there is something called "RoleGroup" but I found no relevant information about this stuff. It is also not present in other Login Modules. Would another tell me what it is? For the Role in the Roles Table, if the user have more than 1 role, should the record be stored as Role="user,admin" ? It would be quite different to JDBCRealm of tomcat. (She would give out 2 records). There must be a reason behind, could anyone share with me? Thanks Arion ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How to execute a JSP in a EJB
Hi Pedro, I had a similar problem to the one you are facing. I wanted to generate a JSP page statically, and as a previous poster mentioned, you cannot do this without connecting to the webserver via HTTP. As an alternative to using XSL/XML, you could also use Velocity, http://jakarta.apache.org/velocity/ which allows for static page generation and variable substitution, etc. Also I was left with a nice user friendly template that could still be edited in a HTML editor. Cheers, Dave -Original Message-From: Pedro E. Gómez [mailto:[EMAIL PROTECTED]]Sent: Saturday, 12 May 2001 8:46 AMTo: [EMAIL PROTECTED]Subject: Re: [JBoss-user] How to execute a JSP in a EJB Sorry for the confution. The idea is other, is something like this: The data base have some products information, and i want to send this information to an user, the goal is to format the data using an JSP template, and produce a HTML page and send it by email Something like this: EJB COMPONENT ---> Get data form the DB. | |> Get the JSP template (Page) | |-> Execute the template with the data | |-> Send the result by email. I want to send a beatifull EMAIL to the user There is not a servlet involved, becouse of is a proccess that is 100% executed in the EJB container. The mails has to be send in batch proccess. I will have a proccess that every night sends the emails to the users. I will appreciate a lot your help. Thansk. Message sent with MISIVA.Visit us at http://www.pragma.com.co/misiva ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jBoss architecture question
Hello Samuel and Michael... --On Sunday, May 13, 2001 3:51 PM -0400 Samuel Bucholtz <[EMAIL PROTECTED]> wrote: > I know that we here have scripts that kill iPlanet threads automatically > to keep the app server from dying, > I do not know if these scripts are sending TERMs or KILLs though. This of > course might work on a > website where the only thing that is lost when the thread is killed is the > request, it would not if there > are interdependencies between threads. This is why I asked what causes a thread to be instansiated. I was wondering what would be lost if I were to kill one abruptly... Jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Controlling whats in server.log
Thanks for the reply, Vincent, and my apologies for not mentioning that I am using 2.2.1. For production purposes (and I'm getting close to deployment) I prefer to use tagged, released versions. If this can't be done in the current release, I think I'll wait for the next release, unless some other compelling reason arises to upgrade before a new release. Thanks! Jim --On Sunday, May 13, 2001 10:51 AM +0200 Vincent Harcq <[EMAIL PROTECTED]> wrote: > Jim, > You work with latest cvs version do you ? > Then replace >log4j.rootCategory=DEBUG, Default, Console > by >log4j.rootCategory=INFO, Default, Console > > IMHO, this should be the default in cvs. > > Vincent. > >> -Message d'origine- >> De : [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]]De la part de Jim Archer >> Envoye : dimanche 13 mai 2001 6:00 >> A : [EMAIL PROTECTED] >> Objet : [JBoss-user] Controlling whats in server.log >> >> >> Hi All... >> >> I looked through the docs and achive, and also I looked at the >> log4j.properties file, but no luck on this, so I would apprciate >> some help >> please... >> >> As jBoss runs, it frequently logs (from the container factory) bean >> passivations and other routine server events. Is it possible to turn >> logging of these events off, and leave on impotant stuff like runtime >> exceptions? >> >> Thanks... >> >> Jim >> >> >> I shall be telling this with a sigh >> Somewhere ages and ages hence: >> Two roads diverged in a wood, and I - >> I took the one less traveled by, >> And that has made all the difference. >> >> - Robert Frost, 1916 >> >> >> ___ >> JBoss-user mailing list >> [EMAIL PROTECTED] >> http://lists.sourceforge.net/lists/listinfo/jboss-user > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: JBoss-user -- confirmation of subscription -- request 343542
Hi Michael, Thanks for your help. I read the following web page as recommended: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#domain When I specify the java.rmi.server.hostname on the server side. Both jonas and jboss work. Thanks a lot, I really appreciate your help. Kobi >From: Michael Bilow <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Re: [JBoss-user] Re: JBoss-user -- confirmation of subscription -- >request 343542 >Date: Sun, 13 May 2001 14:00:49 -0400 (EDT) > >The client is not finding the RMI Registry Server because it assumes it is >running on the same machine (127.0.0.1). You should be able to fix this >by invoking the client with an explicit declaration of the hostname or IP >address of the machine on which the RMI Registry Server is actually >running, like this (all on one line): > > java -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx -cp in the client directory> InterestClient > >where "xxx.xxx.xxx.xxx" is the IP address of the machine which hosts the >RMI Registry Server in dotted-quad notation. > >Where the RMI Registry Server is actually running, by default it will >install a TCP listener on port 1099. You should be able to see it: > > $ netstat -tan | grep 1099 > tcp0 0 0.0.0.0:10990.0.0.0:* LISTEN > >This is actually a configurable system property; see: > >http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#nethostname >http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#nethostname > >-- Mike > > >On 2001-05-13 at 06:51 -, Kobi Schecider wrote: > > > I am new to JBoss and have been trying to get the interestclient >example > > running (the client and the EBJ running on different machines) without >* * * > > java -cp InterestClient > > > > Got context > > javax.naming.CommunicationException [Root exception is > > java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested > > exception is: > > java.net.ConnectException: Connection refused: no further >information] > > > > My CLASSPATH is empty. The same configuration (with the > > java.naming.provider.url set to localhost) works perfectly when both >client > > and JBoss server are running on the same machine. > > > >___ >JBoss-user mailing list >[EMAIL PROTECTED] >http://lists.sourceforge.net/lists/listinfo/jboss-user _ Get your FREE download of MSN Explorer at http://explorer.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] unsubscribe.
there is an unsubscribe link on jboss.org mailing list page ivan - Original Message - From: "Mohamed Ashraf" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 13, 2001 9:15 AM Subject: [JBoss-user] unsubscribe. help. Get free email and a permanent address at http://www.netaddress.com/?N=1 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] where can i find the minerva source
On Sun, May 13, 2001 at 11:28:18PM +0200, Tbone wrote: > Hi, > > I have some pools of my own and i want to make them minerva( the jboss pool > implementation ) compatible. > > where do I find the source of minerva package > i've traveled the jboss source tree. You can find the sources in the jbosscx module, under src/external. However, I would advise holding off for a couple of days because we are forking Minerva and bringing it back under the JBoss umbrella. This will mean that the package names will change. Stay tuned. Toby. > greetz tbone Word! :-) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] where can i find the minerva source
Hi, I have some pools of my own and i want to make them minerva( the jboss pool implementation ) compatible. where do I find the source of minerva package i've traveled the jboss source tree. greetz tbone ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Curious DataSource / Naming behavior
Thanks for the correction. Vinay - Original Message - From: "Toby Allsopp" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 13, 2001 7:41 PM Subject: Re: [JBoss-user] Curious DataSource / Naming behavior > On Sun, May 13, 2001 at 11:20:45AM +0100, K.V. Vinay Menon wrote: > > The servlet is executing within the same JVM and should share the same > > namespace. The clients could be external to the JVM and hence fall over. > > Think this is what is happening. You should be able to give just MySqlDB in > > your lookup and it should work. > > No, it shouldn't and it won't. The java:/ context is only available within > the same JVM as JBoss. DataSources are not accessible remotely, in general, > because JDBC stuff is neither Serializable or Remote. > > Toby. > > P.S. This is mentioned a lot in the archives. > > > Vinay > > - Original Message - > > From: "Ivan" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Sunday, May 13, 2001 8:07 AM > > Subject: [JBoss-user] Curious DataSource / Naming behavior > > > > > > > Hi, > > > > > > I was wondering why I could obtain a datasource from within a servlet > > using > > > the code: > > > > > > db = (DataSource)ctx.lookup("java:/MySqlDB"); > > > > > > However the exact same code from within a simple client application > > returns > > > an error > > > > > > javax.naming.NameNotFoundException: Invalid name:/MySqlDB > > > > > > Does anybody know what is going on? > > > Ivan > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jBoss architecture question
Yes, you are quite right. However, we are, as you say stuck with whatever implementation is made by the JVM. Other than wrapping some native C code to handle signals and then communicate them to the java threads using some means, like sockets, there is nothing that can be done. It seems simple enough to test this on whatever implementation you happen to be on. Write a small program that spawns some threads, kill -TERM pid one of the threads and see what happens. Most likely you will have to do this for every VM and OS you routinely use. I know that we here have scripts that kill iPlanet threads automatically to keep the app server from dying, I do not know if these scripts are sending TERMs or KILLs though. This of course might work on a website where the only thing that is lost when the thread is killed is the request, it would not if there are interdependencies between threads. Samuel -Original Message- From: Michael Bilow [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 13:36 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] jBoss architecture question No, no... I agree that, in the abstract, it makes sense to send the TERM signal only to the initial or master thread. Furthermore, I entirely agree with you that it might be appropriate for a thread to ignore TERM if the necessary shut down processing is handled by the master thread. There is no way, at least on Linux, to distinguish processes and threads from userland. A thread has a process ID (pid) and runs on the system scheduler just like any other process. The distinction between a process and a thread in Linux is made in terms of kernel memory mapping during task switching, since the defining characteristic of a thread is that it shares the complete memory descriptor table of all other fellow threads. The end result is that threads show up on the process list because they have pids and they are therefore subject to being sent signals. This is absolutely unavoidable in a Linux environment. Therefore, there must be some facility in each thread to handle signals when they are sent. If the proper behavior is for threads to ignore TERM signals, then they must install handlers to do so. If the threads should ignore signals and they do not, then the application is, in fact, unstable. If the JVM can be depended up to sort this out and call the signal handler in the master thread even when the signal is actually sent by the system to the child thread, then that is a solution. However, I do not know enough about the internals of any JVM to be sure that this is the case, and I doubt that such behavior is guaranteed to occur on every JVM even if it does occur on some JVMs. The Sun and IBM JVMs might do exactly opposite things in this regard, although I have no idea what they do. This discussion arose because, in the quoted post to the list, danch said that it was a bad thing to send TERM to child threads and that TERM should should only be sent to the master thread. So the issue for me is what happens if TERM is sent to all of the threads instead of just the master thread? Are the TERM signals sent to the child threads ignored, which would be fine? Are the TERM signals sent to the child threads reflected by the JVM to the master thread, which would also be fine? Or do the TERM signals sent to the child threads pass through unhandled and kill those threads abruptly, which presumably would NOT be fine? -- Mike On 2001-05-13 at 02:35 -0400, Samuel Bucholtz wrote: > This is not 100% true. On Unix any process should expect to receive and > handle a TERM signal. > Threads on the other hand do not need to and should not be expected to > handle a TERM. Remember, threads only act and look > like processes when using native threads as opposed to pure java threads. > The threads, logically, must act the same and > be as similar as possible whether Native or Pure. Since pure threads run > within the JVM process and will never see or > handle a signal, there is no reason to expect the native threads to do so > either. > Rather, in the case of some kind of impending shutdown, etc. the signal > should reach the master process which spawned > (and therefore controls) the threads. It is that processes responsibility to > gracefully stop the threads, flush buffers, > sync files, etc. > A thread does not control its resources, scheduling, etc. It may or may not > even be able to communicate with it's > scheduler/parent. There is no way to expect it to be able to receive a TERM > and know how to handle it in a graceful manner. > As long as the parent can control/stop threads, and do the proper thing when > it received a signal, there is no reason to consider the application > unstable, just because the threads ignore signals. > > Samuel > > -Original Message- > From: Michael Bilow [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 13, 2001 2:10 > To: List: jBoss users > Subject: Re: [JBoss-user] jBoss architecture question >
Re: [JBoss-user] Curious DataSource / Naming behavior
On Sun, May 13, 2001 at 11:20:45AM +0100, K.V. Vinay Menon wrote: > The servlet is executing within the same JVM and should share the same > namespace. The clients could be external to the JVM and hence fall over. > Think this is what is happening. You should be able to give just MySqlDB in > your lookup and it should work. No, it shouldn't and it won't. The java:/ context is only available within the same JVM as JBoss. DataSources are not accessible remotely, in general, because JDBC stuff is neither Serializable or Remote. Toby. P.S. This is mentioned a lot in the archives. > Vinay > - Original Message - > From: "Ivan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, May 13, 2001 8:07 AM > Subject: [JBoss-user] Curious DataSource / Naming behavior > > > > Hi, > > > > I was wondering why I could obtain a datasource from within a servlet > using > > the code: > > > > db = (DataSource)ctx.lookup("java:/MySqlDB"); > > > > However the exact same code from within a simple client application > returns > > an error > > > > javax.naming.NameNotFoundException: Invalid name:/MySqlDB > > > > Does anybody know what is going on? > > Ivan ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: JBoss-user -- confirmation of subscription --request 343542
The client is not finding the RMI Registry Server because it assumes it is running on the same machine (127.0.0.1). You should be able to fix this by invoking the client with an explicit declaration of the hostname or IP address of the machine on which the RMI Registry Server is actually running, like this (all on one line): java -Djava.rmi.server.hostname=xxx.xxx.xxx.xxx -cp InterestClient where "xxx.xxx.xxx.xxx" is the IP address of the machine which hosts the RMI Registry Server in dotted-quad notation. Where the RMI Registry Server is actually running, by default it will install a TCP listener on port 1099. You should be able to see it: $ netstat -tan | grep 1099 tcp0 0 0.0.0.0:10990.0.0.0:* LISTEN This is actually a configurable system property; see: http://java.sun.com/products/jdk/1.2/docs/guide/rmi/faq.html#nethostname http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html#nethostname -- Mike On 2001-05-13 at 06:51 -, Kobi Schecider wrote: > I am new to JBoss and have been trying to get the interestclient example > running (the client and the EBJ running on different machines) without * * * > java -cp InterestClient > > Got context > javax.naming.CommunicationException [Root exception is > java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested > exception is: > java.net.ConnectException: Connection refused: no further information] > > My CLASSPATH is empty. The same configuration (with the > java.naming.provider.url set to localhost) works perfectly when both client > and JBoss server are running on the same machine. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss-user] unsubscribe.
JBoss-user] unsubscribe. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jBoss architecture question
No, no... I agree that, in the abstract, it makes sense to send the TERM signal only to the initial or master thread. Furthermore, I entirely agree with you that it might be appropriate for a thread to ignore TERM if the necessary shut down processing is handled by the master thread. There is no way, at least on Linux, to distinguish processes and threads from userland. A thread has a process ID (pid) and runs on the system scheduler just like any other process. The distinction between a process and a thread in Linux is made in terms of kernel memory mapping during task switching, since the defining characteristic of a thread is that it shares the complete memory descriptor table of all other fellow threads. The end result is that threads show up on the process list because they have pids and they are therefore subject to being sent signals. This is absolutely unavoidable in a Linux environment. Therefore, there must be some facility in each thread to handle signals when they are sent. If the proper behavior is for threads to ignore TERM signals, then they must install handlers to do so. If the threads should ignore signals and they do not, then the application is, in fact, unstable. If the JVM can be depended up to sort this out and call the signal handler in the master thread even when the signal is actually sent by the system to the child thread, then that is a solution. However, I do not know enough about the internals of any JVM to be sure that this is the case, and I doubt that such behavior is guaranteed to occur on every JVM even if it does occur on some JVMs. The Sun and IBM JVMs might do exactly opposite things in this regard, although I have no idea what they do. This discussion arose because, in the quoted post to the list, danch said that it was a bad thing to send TERM to child threads and that TERM should should only be sent to the master thread. So the issue for me is what happens if TERM is sent to all of the threads instead of just the master thread? Are the TERM signals sent to the child threads ignored, which would be fine? Are the TERM signals sent to the child threads reflected by the JVM to the master thread, which would also be fine? Or do the TERM signals sent to the child threads pass through unhandled and kill those threads abruptly, which presumably would NOT be fine? -- Mike On 2001-05-13 at 02:35 -0400, Samuel Bucholtz wrote: > This is not 100% true. On Unix any process should expect to receive and > handle a TERM signal. > Threads on the other hand do not need to and should not be expected to > handle a TERM. Remember, threads only act and look > like processes when using native threads as opposed to pure java threads. > The threads, logically, must act the same and > be as similar as possible whether Native or Pure. Since pure threads run > within the JVM process and will never see or > handle a signal, there is no reason to expect the native threads to do so > either. > Rather, in the case of some kind of impending shutdown, etc. the signal > should reach the master process which spawned > (and therefore controls) the threads. It is that processes responsibility to > gracefully stop the threads, flush buffers, > sync files, etc. > A thread does not control its resources, scheduling, etc. It may or may not > even be able to communicate with it's > scheduler/parent. There is no way to expect it to be able to receive a TERM > and know how to handle it in a graceful manner. > As long as the parent can control/stop threads, and do the proper thing when > it received a signal, there is no reason to consider the application > unstable, just because the threads ignore signals. > > Samuel > > -Original Message- > From: Michael Bilow [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 13, 2001 2:10 > To: List: jBoss users > Subject: Re: [JBoss-user] jBoss architecture question > > > On 2001-05-11 at 22:09 -0500, danch wrote: > > > Jim Archer wrote: > * * * > > > All the threads also raise a shutdown question. We have written an > > > init.d script to gracefully start and stop jBoss as a server task, in > > > the same manner as other Debian processes. If the script issues a kill > > > to each thread, will this produce a gracefull shutdown, or will it > > > terminate each thread ungracefully? > > > > > > > The kill should be sent to the parent of all the threads. If you look at > > ps -axf output you'll see that run.sh spawns one process, which is then > > the parent for all the threads. A change in run.sh to save the pid of > > the java process into a file in var would be the best way to accomplish > > this. > > I have a concern about this. On Unix, any process/thread should expect to > receive a TERM signal and is obligated to handle it appropriately. If the > process/thread elects not to install a handler to catch the TERM signal, > then the default is for the system to kill the process abruptly, which is > usually inappropriate for an
[JBoss-user] unsubscribe.
help. Get free email and a permanent address at http://www.netaddress.com/?N=1 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Curious DataSource / Naming behavior
The servlet is executing within the same JVM and should share the same namespace. The clients could be external to the JVM and hence fall over. Think this is what is happening. You should be able to give just MySqlDB in your lookup and it should work. Vinay - Original Message - From: "Ivan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 13, 2001 8:07 AM Subject: [JBoss-user] Curious DataSource / Naming behavior > Hi, > > I was wondering why I could obtain a datasource from within a servlet using > the code: > > db = (DataSource)ctx.lookup("java:/MySqlDB"); > > However the exact same code from within a simple client application returns > an error > > javax.naming.NameNotFoundException: Invalid name:/MySqlDB > > Does anybody know what is going on? > Ivan > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Newbie question installing JBoss-2.2.1_Tomcat-3.2.1
http://localhost:8080/jboss - Original Message - From: "Terry Ray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 13, 2001 4:18 AM Subject: [JBoss-user] Newbie question installing JBoss-2.2.1_Tomcat-3.2.1 > Hi, > > I've just installed said version on RedHat 6.2/JDK 1.3. I'm able to pull up > servlets from Tomcat with a browser using the URL http://localhost:8080 > > which takes me to the tomcat starting page where I can run the tomcat > examples. I want to run the jboss tomcat-test samples (which are deployed > when I first start the server) but where do I start? I see references to the > 8083 port in the start up script but I get no data back when I try to access > this port with a browser. Am I missing something here? I was assuming this > would be a way to test JBoss? > > Thanks in advance, > > Terry > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Controlling whats in server.log
Believe the server log has output from all the Logger.log calls. If you don't want to log everything you could change the logging level to something like ERROR in the log4j.properties file. Vinay - Original Message - From: "Jim Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, May 13, 2001 4:59 AM Subject: [JBoss-user] Controlling whats in server.log > Hi All... > > I looked through the docs and achive, and also I looked at the > log4j.properties file, but no luck on this, so I would apprciate some help > please... > > As jBoss runs, it frequently logs (from the container factory) bean > passivations and other routine server events. Is it possible to turn > logging of these events off, and leave on impotant stuff like runtime > exceptions? > > Thanks... > > Jim > > > I shall be telling this with a sigh > Somewhere ages and ages hence: > Two roads diverged in a wood, and I - > I took the one less traveled by, > And that has made all the difference. > > - Robert Frost, 1916 > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Timed Out Connection
Problem Description : I am executing an SQL command which takes a few minutes and in the middle of the operation i am getting a connection time out event (which i can see on the log). I don't get any exception or indication something is wrong. The operation seems to end successfully but to the result in the DB, which does not exists. I tried changing the entries in the jBoss.jcml with all kinds of variations but it does seem to affect the nehavior of the server. I have tried to set GCEnabledto [true/false] , Idle Time out [true/false], but nothing helped. Eitan Weisbeker Research & Development, Java InfraStructure Manager ProActivityInc e-mail : [EMAIL PROTECTED] comapny home page : www.proactivityinc.com 09-8859930/214 055-700886 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Controlling whats in server.log
Jim, You work with latest cvs version do you ? Then replace log4j.rootCategory=DEBUG, Default, Console by log4j.rootCategory=INFO, Default, Console IMHO, this should be the default in cvs. Vincent. > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Jim Archer > Envoye : dimanche 13 mai 2001 6:00 > A : [EMAIL PROTECTED] > Objet : [JBoss-user] Controlling whats in server.log > > > Hi All... > > I looked through the docs and achive, and also I looked at the > log4j.properties file, but no luck on this, so I would apprciate > some help > please... > > As jBoss runs, it frequently logs (from the container factory) bean > passivations and other routine server events. Is it possible to turn > logging of these events off, and leave on impotant stuff like runtime > exceptions? > > Thanks... > > Jim > > > I shall be telling this with a sigh > Somewhere ages and ages hence: > Two roads diverged in a wood, and I - > I took the one less traveled by, > And that has made all the difference. > > - Robert Frost, 1916 > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user