Re: [JBoss-user] Stopping JBoss
On Tue, 20 Nov 2001, Juergen Fiedler wrote: > OK, this one _must_ be more trivial than it seems to me. I am starting > JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of > JBoss. After that, I have about 50 threads that seem to be doing the > same thing: run org.jboss.Main. > Everything works quite fine. The only problem is: I don't know how to > shut the server down. Right now, I just do a 'killall java'. This only > works because JBoss is the only piece of Java based software on my > machine. > But there has to be a more elegant way to stop JBoss. Could anybody > please help me to figure out how to do it the right way? > > Thanks in advance, > Juergen cd bin ./run.sh 1>stdout.log 2>stderr.log & echo $! > pid # do something here kill `cat pid` The above is fairly standard shell programming. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Hi, there, I'm sorry but how to unsubscribe this list? Thanks! -hpguo ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] question on jbossmq request/reply and persistent message
Title: question on jbossmq request/reply and persistent message Hi, Could request/reply messages be persistent messages? If so, how to set them up? I understand that the tmp queues are created on the fly by JBossMQ server, is there a way to have it create persistent tmp queues? thanks, Sheng
RE: [JBoss-user] DB Logging
I tried adding log4j.category.org.jboss.tomcat.security=TRACE#org.jboss.logging.log4j.Trace Priority But that didn't work.. To be honest, this log4j stuff is really confusing. Doco! Doco! d./ -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 2:07 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] DB Logging You have to use the log4j priority support. It might be useful to have a guide about what class produces what logging info;-). In particular if you want sql logs you probably have to do something with the logging in the jca-jdbc wrapper. david jencks On 2001.11.20 12:51:12 -0500 "Ferguson, Doug" wrote: > LoggingEnabled doesn't seem to work with MinervaSharedLocalCMFactory. > > How do I turn the logging on with the new JCA stuff? > > Thanks, > d. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] OT: Using Castor XML on EJBs?
On Tue, 20 Nov 2001, Jozsa Kristof wrote: > My current task is to feed Cocoon with XML data coming from EJBs, all that > running in JBoss. I thought it'd be easy to use Castor on my CMP entity > beans, therefore having an xml representation of them, which can be passed > in a string to Cocoon and render it to any appropriate form. I'm not sure if > my concept is right, or I can do that.. > I feel stuck. I'm not sure even if I can use Castor to get my entity bean > transformed to XML, as 'Person' is an interface actually, not a class.. If > the problem mainly relies here, then how should I use Castor the correct way > to transform my EJB data to an XML string? I could suggest a couple of different approaches, but am not going to argue the merits of them: - Use Castor JDO for persistence instead of entity beans. This would provide you with an "all castor" solution, which might be easier to work with - Use data objects instead of the entity bean when converting to xml, this would get around the "Person is an interface not a class" problem cheers dim ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Interest problem
How are you running the client? Show the actual command you are using to run it. - Original Message - From: "Haipeng Guo" <[EMAIL PROTECTED]> To: "Guy Rouillier" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 1:46 AM Subject: Re: [JBoss-user] Interest problem > Hi, there, > > Thank you very much for your reply! But I think I've already added that > jar file into my CLASSPATH, Is there any other possible reason? FYI, my > CLASSPATH is defined as follows, > > nanyan~% echo $CLASSPATH > .:/projects/nanyan/ejb.jar:/projects/nanyan/jakarta-ant-1.4/lib/ant.jar:/pro ject > s/nanyan/JBoss-2.4.3/client/jbosssx-client.jar:/projects/nanyan/JBoss-2.4.3/ clie > nt/jboss-client.jar:/projects/nanyan/JBoss-2.4.3/client/jnp-client.jar:/proj ects > /nanyan/JBoss-2.4.3/client/jndi.jar:/projects/nanyan/JBoss-2.4.3/client/jaas .jar > :/projects/nanyan/examples/org/jboss/docs/interest/build-examples/interest/c lass > es/org/jboss/docs/interest:/projects/nanyan/examples/resources > > cheers, > -hpguo > > > On Tue, 20 Nov 2001, Guy Rouillier wrote: > > > That class is in client/jnp-client.jar. > > > > - Original Message - > > From: "Haipeng Guo" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, November 19, 2001 4:13 AM > > Subject: [JBoss-user] Interest problem > > > > > > > > > > Hi, there, > > > > > > When I compile interst-client, it gives the following error information: > > > > > > [java] javax.naming.NoInitialContextException: Cannot instantiate > > > class: or > > > g.jnp.interfaces.NamingContextFactory [Root exception is > > > java.lang.ClassNotFound > > > Exception: org.jnp.interfaces.NamingContextFactory] > > > > > > I'm using JBoss-2.4.3 and j2sdk1_3_1_01. My CLASSPATH includes all > > > cilent related jar fiels except servlet.jar. The bean itself has been > > > compiled and deployed successefully. > > > Can anybody please help me out? Thank you very much! > > > > > > cheers, > > > -hpguo > > > > > > > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Service bean
I followed the example in the documentation. - Original Message - From: <[EMAIL PROTECTED]> To: "Guy Rouillier" <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 2:06 AM Subject: Re: [JBoss-user] Service bean > > Can u pls guide me how to create a MBean . > > Thanks > Manish Syal > > > > "Guy Rouillier" > <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]> > Sent by:cc: > [EMAIL PROTECTED]Subject: Re: [JBoss-user] Service bean > eforge.net > > > 11/20/2001 10:43 AM > > > > > > > You don't say what your service does, so it is difficult to make an > assessment. Have you looked at MBeans? They are specifically designed for > implementing services that start up with JBoss and keep running the whole > time. I just implemented my first one, and it was pretty easy. > > - Original Message - > From: "Krzysztof Ogrodnik" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 19, 2001 4:22 AM > Subject: [JBoss-user] Service bean > > > > Hi, > > > > I am new to EJB and JBoss. Recently I have started a project which > requires something like "service > > bean". By this I mean: > > - bean starts when the server (application) starts (is deployed) > > - bean receives time notifications (I can specify the period) > > > > How to do it using JBoss? > > > > My solution is to create web application (as part of enterprise > application - in ear) that will > > contain servlet that will load on application deployment time > ( in web.xml). Then > > in the init method I would read information about tasks and their periods > from servlet's parameters > > and schedule them. > > One solution to schedule them is to use JMX timer service available in > JBoss and register the > > servlet as a notification handler. > > The other solution (more portable) is to use Timer and TimerTask to > schedule tasks. > > > > I have developed such servlet, tested it and it seems to work. My > question > is: is it a correct way > > to do it? Maybe there are some better ways... What are the dangers and > weak points of my solution > > and what do you think about it? > > > > Thank you very much for your answer. > > > > Kind regards. > > -- > > Krzysztof Ogrodnik mailto:[EMAIL PROTECTED] ICQ>>2963634 > > perl -le 's**02).4&9%4^[./4(%2^0).+^=,/9\$^=!.&**y%& -;=^[%"`-{f > a%%s%%$_%ee' > > > > > > -- > > > > Tego nie znajdziesz w zadnym sklepie! > > [ http://oferty.onet.pl ] > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] DB Logging
You have to use the log4j priority support. It might be useful to have a guide about what class produces what logging info;-). In particular if you want sql logs you probably have to do something with the logging in the jca-jdbc wrapper. david jencks On 2001.11.20 12:51:12 -0500 "Ferguson, Doug" wrote: > LoggingEnabled doesn't seem to work with MinervaSharedLocalCMFactory. > > How do I turn the logging on with the new JCA stuff? > > Thanks, > d. > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Stopping JBoss
On Tue, Nov 20, 2001 at 10:27:54AM -0800, John Moore wrote: [...] > http://localhost:8082/InvokeAction//DefaultDomain%3Atype%3DShutdown/action=s > hutdown?action=shutdown This one is my favorite yet. I forgot to mention that the solution should work within a script. 'lynx --source http://[...] >/dev/null 2>&1' does exactly what I want. > I saw info on adding security to this in the archives a while ago. Security is for wimps ;) Seriously: port 8082 of my JBoss installation is hidden behind a firewall, so I should be OK without any additional security measures. Thank you very much! Juergen msg12405/pgp0.pgp Description: PGP signature
Re: [JBoss-user] Stopping JBoss
I do a `ps axf` to get a tree view of the processes and kill the root of all of the threads you describe. There's also an init script in the jboss contrib module (i believe) that probably has a more elegent method (save the proper pid to a file under /var/run, etc.) -danch Juergen Fiedler wrote: > OK, this one _must_ be more trivial than it seems to me. I am starting > JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of > JBoss. After that, I have about 50 threads that seem to be doing the > same thing: run org.jboss.Main. > Everything works quite fine. The only problem is: I don't know how to > shut the server down. Right now, I just do a 'killall java'. This only > works because JBoss is the only piece of Java based software on my > machine. > But there has to be a more elegant way to stop JBoss. Could anybody > please help me to figure out how to do it the right way? > > Thanks in advance, > Juergen > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Stopping JBoss
Title: RE: [JBoss-user] Stopping JBoss This won't work all the time. I've had to kill -9 most of the time on linux -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of John MooreSent: Tuesday, November 20, 2001 1:28 PMTo: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]Subject: RE: [JBoss-user] Stopping JBoss http://hostname:8082/ Choose service type=shutdown click the shutdown button. http://localhost:8082/InvokeAction//DefaultDomain%3Atype%3DShutdown/action=shutdown?action=shutdown I saw info on adding security to this in the archives a while ago. -Original Message- From: Juergen Fiedler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Stopping JBoss OK, this one _must_ be more trivial than it seems to me. I am starting JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of JBoss. After that, I have about 50 threads that seem to be doing the same thing: run org.jboss.Main. Everything works quite fine. The only problem is: I don't know how to shut the server down. Right now, I just do a 'killall java'. This only works because JBoss is the only piece of Java based software on my machine. But there has to be a more elegant way to stop JBoss. Could anybody please help me to figure out how to do it the right way? Thanks in advance, Juergen
[JBoss-user] OT: Using Castor XML on EJBs?
Hi, Any Castor users here? I'd like to ask an offtopic(?) question about using Castor in a JBoss environment.. My current task is to feed Cocoon with XML data coming from EJBs, all that running in JBoss. I thought it'd be easy to use Castor on my CMP entity beans, therefore having an xml representation of them, which can be passed in a string to Cocoon and render it to any appropriate form. I'm not sure if my concept is right, or I can do that.. I've tried implementing it this way from a session bean (PersonAgentBean), on PersonBean (I've used the usual naming concept: Person and PersonHome for the interfaces, and PersonBean for the bean itself): Person[] person = findAllPerson(); StringWriter xmlsw = new StringWriter(); try { Marshaller marshaller = new Marshaller(xmlsw); marshaller.marshal(person[0], xmlsw); xmlsw.close(); } catch (Exception e) {} return xmlsw.toString(); Now deploying this into JBoss, and running an example client to call this function on my session bean, to get the entity bean in a String, I get a fewhundred kilobytes of JBoss logs, something like that (I'm trying to show the interesting parts only): [PersonBean] Activated bean PersonBean with id = 0 [PersonBean] TRANSACTION ROLLBACK EXCEPTION:id may not be null; nested exception is: java.lang.Error: id may not be null .. [PersonBean]at $Proxy33.getEJBObject(Unknown Source) [PersonBean]at java.lang.reflect.Method.invoke(Native Method) [PersonBean]at org.exolab.castor.mapping.loader.FieldHandlerImpl.getValue(FieldHandlerImpl.java:372) [PersonBean]at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:945)[PersonBean] at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:980) ..*repeat this _last_line_ a fewhundred times*.. [PersonBean]at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:538)[PersonBean] at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:458)[PersonBean] at org.dyn.PersonAgentBean.toXMLAllPerson(PersonAgentBean.java:67) I feel stuck. I'm not sure even if I can use Castor to get my entity bean transformed to XML, as 'Person' is an interface actually, not a class.. If the problem mainly relies here, then how should I use Castor the correct way to transform my EJB data to an XML string? Thanks much in advance, Regards Christopher -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Stopping JBoss
Title: RE: [JBoss-user] Stopping JBoss Ctrl-C should stop JBoss -Original Message- From: Juergen Fiedler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Stopping JBoss OK, this one _must_ be more trivial than it seems to me. I am starting JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of JBoss. After that, I have about 50 threads that seem to be doing the same thing: run org.jboss.Main. Everything works quite fine. The only problem is: I don't know how to shut the server down. Right now, I just do a 'killall java'. This only works because JBoss is the only piece of Java based software on my machine. But there has to be a more elegant way to stop JBoss. Could anybody please help me to figure out how to do it the right way? Thanks in advance, Juergen
RE: [JBoss-user] Stopping JBoss
Title: RE: [JBoss-user] Stopping JBoss http://hostname:8082/ Choose service type=shutdown click the shutdown button. http://localhost:8082/InvokeAction//DefaultDomain%3Atype%3DShutdown/action=shutdown?action=shutdown I saw info on adding security to this in the archives a while ago. -Original Message- From: Juergen Fiedler [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 9:49 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Stopping JBoss OK, this one _must_ be more trivial than it seems to me. I am starting JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of JBoss. After that, I have about 50 threads that seem to be doing the same thing: run org.jboss.Main. Everything works quite fine. The only problem is: I don't know how to shut the server down. Right now, I just do a 'killall java'. This only works because JBoss is the only piece of Java based software on my machine. But there has to be a more elegant way to stop JBoss. Could anybody please help me to figure out how to do it the right way? Thanks in advance, Juergen
RE: [JBoss-user] problem calling remote corba servers from an EJB ... does jboss hack something with sun ORB ?
thanks for your help... it seems I'm not the first, and finally I've done what the other did : use JacORB ! (what a pity sun! ) In fact I've dicovered the jboss-iiop contrib module that works well... anyway I'm really curious to know what is the problem with sun ORB... > -Message d'origine- > De: Francisco Reverbel [mailto:[EMAIL PROTECTED]] > Date: mardi 20 novembre 2001 18:33 > À: Coetmeur, Alain > Cc: [EMAIL PROTECTED] > Objet: RE: [JBoss-user] problem calling remote corba servers > from an EJB > ... does jboss hack something with sun ORB ? > ... > The eLila/_LilaFactoryStub.class seems to be the one missed by the > orb.string_to_object() call. I would expect it to work with > this class > within the ejb jar. > > Cheers, > > Francisco > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Stopping JBoss
OK, this one _must_ be more trivial than it seems to me. I am starting JBoss (under Linux) by calling 'run.sh &' in the bin/ directory of JBoss. After that, I have about 50 threads that seem to be doing the same thing: run org.jboss.Main. Everything works quite fine. The only problem is: I don't know how to shut the server down. Right now, I just do a 'killall java'. This only works because JBoss is the only piece of Java based software on my machine. But there has to be a more elegant way to stop JBoss. Could anybody please help me to figure out how to do it the right way? Thanks in advance, Juergen msg12399/pgp0.pgp Description: PGP signature
[JBoss-user] DB Logging
LoggingEnabled doesn't seem to work with MinervaSharedLocalCMFactory. How do I turn the logging on with the new JCA stuff? Thanks, d. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] problem calling remote corba servers from an EJB... does jboss hack something with sun ORB ?
On Mon, 19 Nov 2001, Coetmeur, Alain wrote: Hi, > what are the names of these "codebase" classes ? > what is their purpose ? The codebase is a space separated list of URLs. Its components may specify either directories or jar files. They form a search path for class files not available locally. > why does this works as an application, but not as an EJB > with a "should-be-the same" classpath? My guess is that the "should be the same classpath" hypothesis may be wrong. Some of the class files available to the aplication might not be available to the EJB. > I've included all that is generated by the idlj compiler > in the ejb jar, in particular: > > eLila/gridHelper.class > eLila/gridHolder.class > eLila/LilaFactory.class > eLila/LilaFactoryHelper.class > eLila/LilaFactoryHolder.class > eLila/LilaFactoryOperations.class > eLila/LilaObject.class > eLila/LilaObjectHelper.class > eLila/LilaObjectHolder.class > eLila/LilaObjectOperations.class > eLila/lineHelper.class > eLila/lineHolder.class > eLila/_LilaFactoryImplBase.class > eLila/_LilaFactoryStub.class > eLila/_LilaObjectImplBase.class > eLila/_LilaObjectStub.class > > what may have been forgotten ? I don't know... :-( The eLila/_LilaFactoryStub.class seems to be the one missed by the orb.string_to_object() call. I would expect it to work with this class within the ejb jar. Cheers, Francisco ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] passing value between applications
Hi, I have deployed two .ear files ( employee.ear and funnel.ear ) into jboss-tomcat. I want to pass the value between two application. using session scope store value in one application trying to retrive another applcation, but i am getting different session id. Is there any other way i can pass the value between applications. -SR --code to set ( sset.jsp ) <%@ page language="java" import="java.io.*"%> Set Session <% session.setAttribute("name", "Sundaram Ramasamy"); %> Session id : <%= session.getId() %> http://localhost/funnel/sget.jsp";>Click Here to get --- code to get ( sget.jsp ) <%@ page language="java" import="java.io.*"%> get Session <% String name = (String)session.getAttribute("name"); %> Session id : <%= session.getId() %> Name : <%= name %> ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss 2.4.3: Classpath problem
I've installed jboss2.4.3 and it starts ok without any error or warning. I'm using log4j.jar classes (Category.class) in my bean code. When I deploy it, I get a NoClassDefFoundError: org/apache/log4j/Category log4j.jar is in the /lib/ext directory so up to what I know it isn't necessary to put it in my classpath. Putting it in the classpath jboss doesn't start, it hangs asking for classes of other packages it can't find. If I put all the classes that are in the /lib/ext directory in the classpath it hangs too. So I don't know how to solve this problem. In version 2.2.1 I had to put log4j.jar in my classpath for my beans to be deploy correctly and it worked fine. Any ideas? Thanks in advance Marcela Blei ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] XML warning
Hi, I am running my web application on JBoss-2.4.3_Tomcat-3.2.3. While browsing my application I getting the following message on the console window. But my application works fine. any idea why I am getting this error. Thanks SR [Default] Warning: validation was turned on but an org.xml.sax.ErrorHandler was not [Default] set, which is probably not what is desired. Parser will use a default [Default] ErrorHandler to print the first 10 errors. Please call [Default] the 'setErrorHandler' method to fix this. [Default] Error: URI=null Line=41: Element "web-app" does not allow "servlet" he re. [Default] Error: URI=null Line=59: Element "web-app" does not allow "servlet" he re. [Default] Warning: validation was turned on but an org.xml.sax.ErrorHandler was not [Default] set, which is probably not what is desired. Parser will use a default [Default] ErrorHandler to print the first 10 errors. Please call ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JSP runnig problems on JBoss_2.4.3_Tomcat-4.0
Andrea, there are *hundreds* of emails like yours, if you just have .05 sec to search in the mailing list archives. Simone Bordet Compaq Computer Italy > -Original Message- > From: Andrea Cervellati [mailto:[EMAIL PROTECTED]] > Sent: martedì 20 novembre 2001 17:09 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JSP runnig problems on JBoss_2.4.3_Tomcat-4.0 > > > Hi, > > I installed Jboss 2.4.3 and Tomcat 4.0 (by downloading and > unpacking the JBoss-2.4.3_Tomcat-4.0.zip file) > > I checked the following changes (as explained at www.jboss.org) : > > in jboss.conf > > > ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> > VALUE="../../../catalina/common/lib/"> > > > ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> > VALUE="../../../catalina/server/lib/"> > > > ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> > > > > ARCHIVE="jboss.jar" CODEBASE="../../lib/ext/"> > > > > > > in jboss.jcml : > > >code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX" > name="DefaultDomain:service=EmbeddedTomcat" /> > > >name="J2EE:service=J2eeDeployer"> > Default > name="JarDeployerName">:service=ContainerFactory > name="WarDeployerName">:service=EmbeddedTomcat > > > Both files had these lines. > > And I only had to change the port number of JNDI (cause the > 1099 is already busy in my system) : > > > > >name="DefaultDomain:service=Naming"> > 1098 > > > > Then I set the following environment variables > > JAVA_HOME the full-path of my jdk_1.3.0 directory > JBOSS_DIST the full-path of my JBoss-2.4.3_Tomcat-4.0/jboss directory > CATALINA_HOME the full-path of > JBoss-2.4.3_Tomcat-4.0/catalina directory > > and I started Jboss-Tomcat with the command > run.sh catalina > > > These are the catalina related lines that appeared on my screen: > > ... > > [EmbeddedCatalinaServiceSX] Starting > [EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX > [Default] Apache Tomcat/4.0 > [EmbeddedCatalinaServiceSX] WebappLoader[]: Deploying class > repositories to work > directory > /export/dbms/pub/cervel/JBoss-2.4.3_Tomcat-4.0/catalina/work/localhos > t/_ > [EmbeddedCatalinaServiceSX] StandardManager[]: Seeding random > number generator c > lass java.security.SecureRandom > [EmbeddedCatalinaServiceSX] StandardManager[]: Seeding of > random number generato > r has been completed > [EmbeddedCatalinaServiceSX] ContextConfig[]: Added > certificates -> request attri > bute Valve > [EmbeddedCatalinaServiceSX] StandardWrapper[:default]: > Loading container servlet > default > [EmbeddedCatalinaServiceSX] default: init > [EmbeddedCatalinaServiceSX] StandardWrapper[:invoker]: > Loading container servlet > invoker > [EmbeddedCatalinaServiceSX] invoker: init > [EmbeddedCatalinaServiceSX] StandardWrapper[:jsp]: Using > Jasper classloader for > servlet jsp > [EmbeddedCatalinaServiceSX] jsp: init > [EmbeddedCatalinaServiceSX] HttpConnector Opening server > socket on all host IP a > ddresses > [EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting > background thread > [EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting > background thread > [EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting > background thread > [EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting > background thread > [EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting > background thread > [EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting > background thread > [EmbeddedCatalinaServiceSX] OK > [EmbeddedCatalinaServiceSX] Started > > ... > > [J2eeDeployer] Starting > [J2EE Deployer Default] Cleaning up deployment directory > [J2eeDeployer] Started > > ... and the lines of the tomcat-test.ear application deployment > > > When I connected to http://localhost:8080/jboss/ everything > was ok and I was able to execute the servlets. > > > The PROBLEM is that I wasn't able to execute the JSP !!! > > > I created the examples.war file from the > CATALINA_HOME/webapps/examples directory and put it into the > JBOSS_DIST/deploy directory > I got a JNDI exception: > [EmbeddedCatalinaServiceSX] Failed to setup web application ENC > javax.naming.NamingException: ejb-ref: ejb/Account, expected > jndi-name in jboss-web.xml > > This is because of the presence of an ejb-ref tag in the > web.xml that is not declared as an ejb in a jar archive (I suppose!) > Anyways it was deployed and the servlets worked well, but > when I tried to run the jsp I got this exception: > > > javax.servlet.ServletException: sun/tools/javac/Main > at > org.apache.jasper.servlet.JspServlet.service(Unknown Source) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt > er(Unknown Source) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno > wn Source) > at > org.apache.catali
[JBoss-user] JSP runnig problems on JBoss_2.4.3_Tomcat-4.0
Hi, I installed Jboss 2.4.3 and Tomcat 4.0 (by downloading and unpacking the JBoss-2.4.3_Tomcat-4.0.zip file) I checked the following changes (as explained at www.jboss.org) : in jboss.conf in jboss.jcml : Default :service=ContainerFactory :service=EmbeddedTomcat Both files had these lines. And I only had to change the port number of JNDI (cause the 1099 is already busy in my system) : 1098 Then I set the following environment variables JAVA_HOME the full-path of my jdk_1.3.0 directory JBOSS_DIST the full-path of my JBoss-2.4.3_Tomcat-4.0/jboss directory CATALINA_HOME the full-path of JBoss-2.4.3_Tomcat-4.0/catalina directory and I started Jboss-Tomcat with the command run.sh catalina These are the catalina related lines that appeared on my screen: ... [EmbeddedCatalinaServiceSX] Starting [EmbeddedCatalinaServiceSX] Starting EmbeddedCatalinaSX [Default] Apache Tomcat/4.0 [EmbeddedCatalinaServiceSX] WebappLoader[]: Deploying class repositories to work directory /export/dbms/pub/cervel/JBoss-2.4.3_Tomcat-4.0/catalina/work/localhos t/_ [EmbeddedCatalinaServiceSX] StandardManager[]: Seeding random number generator c lass java.security.SecureRandom [EmbeddedCatalinaServiceSX] StandardManager[]: Seeding of random number generato r has been completed [EmbeddedCatalinaServiceSX] ContextConfig[]: Added certificates -> request attri bute Valve [EmbeddedCatalinaServiceSX] StandardWrapper[:default]: Loading container servlet default [EmbeddedCatalinaServiceSX] default: init [EmbeddedCatalinaServiceSX] StandardWrapper[:invoker]: Loading container servlet invoker [EmbeddedCatalinaServiceSX] invoker: init [EmbeddedCatalinaServiceSX] StandardWrapper[:jsp]: Using Jasper classloader for servlet jsp [EmbeddedCatalinaServiceSX] jsp: init [EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP a ddresses [EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread [EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread [EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread [EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread [EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread [EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread [EmbeddedCatalinaServiceSX] OK [EmbeddedCatalinaServiceSX] Started ... [J2eeDeployer] Starting [J2EE Deployer Default] Cleaning up deployment directory [J2eeDeployer] Started ... and the lines of the tomcat-test.ear application deployment When I connected to http://localhost:8080/jboss/ everything was ok and I was able to execute the servlets. The PROBLEM is that I wasn't able to execute the JSP !!! I created the examples.war file from the CATALINA_HOME/webapps/examples directory and put it into the JBOSS_DIST/deploy directory I got a JNDI exception: [EmbeddedCatalinaServiceSX] Failed to setup web application ENC javax.naming.NamingException: ejb-ref: ejb/Account, expected jndi-name in jboss-web.xml This is because of the presence of an ejb-ref tag in the web.xml that is not declared as an ejb in a jar archive (I suppose!) Anyways it was deployed and the servlets worked well, but when I tried to run the jsp I got this exception: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(
[JBoss-user] Silly user problem
I've seen several mailing that ask about a problem I'm having, but I have yet to see a solution. I'm sure it's something simple. I'm not to interested in deals. I get this problem with 3.0 alpha and 2.4.1. I user tomcat 4.0.1 as the servlet engine conecting to JBoss on the same box. The output shows a couple of successful calls made to JBoss, followed by an RMI exception. -- Execution time: 6 ms. -- Calling setPassword(dave) -- Succeeded: setPassword(dave) -- Execution time: 6 ms. authenticate() -- Failed: authenticate() java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: null Embedded Exception null; nested exception is: javax.ejb.EJBException: null Embedded Exception null java.rmi.ServerException: null Embedded Exception null; nested exception is: javax.ejb.EJBException: null Embedded Exception null javax.ejb.EJBException: null Embedded Exception null at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:248) ... lots of sun stuff The next stack trace shows the subsequent call after the previous exception -- Return value from authenticate(): false. -- Calling getUsername() -- Failed: getUsername() java.rmi.NoSuchObjectException: Could not activate; nested exception is: java.io.FileNotFoundException: /home/dhoag/jbproject/jboss-all/build/output/jboss-3.0.0alpha/db/sessions/LoginSession/1006210296495.ser (No such file or directory) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:248) I'm guessing this second exception is somehow related to the fist. I've tried this on WinNT and RedHat 7.2, both using 1.3 jdks. JBoss and Tomcat are both run with the same version of the vm. Anyone have any ideas? I would post information from the JBoss logs, but there is no information about this exception in those logs. The only evidence that JBoss was even called were Trace entries (I enabled in the jboss configuration) showing that the methods were invoked. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] xml type...
You'll also need to use the CLOB/BLOB apis, setString etc. will not work (IIRC) -danch Guy Rouillier wrote: > I haven't used this datatype, but I just took a quick look at the 9i docs, > which say this XmlType is built on CLOB, which can have a size up to 4 GB. > I'm suspecting that unless you specify otherwise, Oracle stores the CLOB in > the same page as the rest of the columns, so you end up with page > restrictions. Try putting your CLOB data into its own storage area, apart > from the rest of the row. Are you using tablespaces or user-defined > storage? > > - Original Message - > From: "Sridevi Ravulapalli" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, November 18, 2001 10:46 PM > Subject: [JBoss-user] xml type... > > > >>Hi , >> >> I am trying to insert XML documents into Oracle 9i Database using >>java beans(BMP). >> Intenally I am using the DataType XMLTYPE to store the xml. The >>Driver i am using is Oracle Thin Driver. >> >> If i try to insert documents greater than 4k , the error Data >>size bigger than max size for this type: 7761 is generated >> >> Could any one please suggest a solution to my problem. >> >>Sridevi. >> >> >>___ >>JBoss-user mailing list >>[EMAIL PROTECTED] >>https://lists.sourceforge.net/lists/listinfo/jboss-user >> > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss IIOP/JacOrb contrib module : Hurah for "sparre"!
Just to tell everybody that I've installed the Jboss Contrib IIOP module from sourceforge... IMHO, If it works as well as it seems for me, it should be included into standard jboss distrib. the patched version of jacorb should be also proposed to jacorb maintainers, since the changes seems of common interest. note that befor using jacorb I was trying to use sun orb from jboss EJB. this does not works because sun orb cannot find a "codebase" from the IOR (coming from mico)... I was not able to set that codebase, despite changing the javax.rmi.*codebase* properties and giving them to the ORB.init... I've not tried to set them globally because it is really ugly ... so I've tries the jacorb/jboss module which is COOL ! just for the archives to keep them for followers here is my experience: HOWTO: on sourceforge look into CVS: jboss/contrib/iiop ... the readme explain how to install there is a patched jacorb.jar and the patch file the author seems to be user named "sparre" (probably Ole Husgaard. I don't know who he is, but : hi, and thanks!) It is installed as a Mbean and seem to propose an IIOP connector for EJBs, and a base for an interface repository... the name service seems also to be started by the Mbean... I've only used it as a middleware, but the rest seems to work without problem (except a bunch of verbose traces) I've had to add the interface org.omg.IOP.TAG_JAVA_CODEBASE (from sun jdk sources src.jar) because jacorb does not provide it. it should be included in jacorb IMHO anyway. (not strictly usefull probably because it is in the jdk1.3, but cross-jar packages may cause problems between sun orb and jacorb) in IIOPContainerInvoker.java there is also an error about a new "MethodInvocation" which is ambiguous because many parameters are null... I've just had to cast the provided null to the correct type to force the signature... in the start script I've just set globally jacorb as the ORB provider, set JBOSS_BASE_OPTS=%JBOSS_BASE_OPTS% -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB set JBOSS_BASE_OPTS=%JBOSS_BASE_OPTS% -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton and at least it works better than sun ORB... now I have to investigate how to use the naming service, and how to connect it with EJB JNDI service... thanks for all, and hope this helps... -- Alain Coetmeur ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JDBC Pool - Getting in trouble
JBoss is logging every message. I am arguing by analogy from the ConnectionManager treatment of this problem, I think it works the same way for XADataSourceLoader etc. Unless you are using the xa features of an xa driver, a connection will be taken from the pool for the first connection needed in a transaction, and it will be kept around until the transaction has committed, then it will be returned to the pool. So if there are 2 chunks of work in a transaction, you will only see one checkout and one checkin logged. btw I made a mistake, you are correct, in [x/y/z] x = number in use (NOT number free) y = number existing z = max david jencks On 2001.11.20 08:16:42 -0500 Edson Carlos Ericksson Richter wrote: > With logging enabled, for every connection I open I should get "gave out > pooled object". For every close I should get "returned object". > But, as I can see, JBoss does not log every message. Appear that he does > only when he get time to do. I have several datasource.getConnection that > does not give me "gave out" and several close that does not give me > "returned object". How can I force every message for debbuging poll? > > I've tryied to debug JBoss, but this is so hard to me... > > > Thanks. > > Edson Richter > > - Original Message - > From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, November 20, 2001 8:09 AM > Subject: Re: [JBoss-user] JDBC Pool - Getting in trouble > > > > I've configured this method for not using transaction, but nothing > > happens... Connection still getting locked. > > More info: I'm using JBoss 2.4.3, Tomcat 4.01, JConnect 5.5 and Sybase > > 11.9.2 (NT, without fixes). > > Configuring idletimeout does not release connections (so appear that > locked > > connections are not idle - and they are - I have closed them) ... > > > > If anyone has experienced this kind of trouble, any tips will be > welcome. > > > > > > Thanks, > > > > > > Edson Richter > > > > > > - Original Message - > > From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Monday, November 19, 2001 6:38 PM > > Subject: Re: [JBoss-user] JDBC Pool - Getting in trouble > > > > > > > I'm getting in trouble with JDBC Pool. > > > After all use of a connection, I close resultSet, I close the > statement > > and > > > then close Connection. > > > After all closes I get "returned object", except in one case. If > anyone > > can > > > analyse this code and give some idea, please do: > > > > > > public List getAll() throws RemoteException { > > > ArrayList lista = null; > > > Connection connection = null; > > > Statement statement = null; > > > ResultSet resultSet = null; > > > MyObject tipo = null; > > > > > > try { > > > StringBuffer sql = new StringBuffer( "select co_tipo, > ds_tipo > > > from tipo order by co_tipo" ); > > > connection = this._getConnection( ); // this method > returns > > one > > > connection from the pool. > > > > > > statement = connection.createStatement( ); > > > resultSet = statement.executeQuery( sql.toString( ) ); > > > tipo = null; > > > > > > lista = new ArrayList( ); > > > > > > while( resultSet.next( ) ) { > > > try { > > > tipo = new MyObject( ); > > > tipo.codigo = resultSet.getInt( 1 ); > > > tipo.descricao = resultSet.getString( 2 ); > > > } catch( Exception e ) { > > > e.printStackTrace( ); > > > } > > > > > > lista.add( tipo ); > > > } > > > } catch( Exception e ) { > > > e.printStackTrace(); > > > lista = null; > > > } finally { > > > this._close( connection, statement, resultSet ); //this > method > > > closes, in order, ResultSet, Statement and then Connection > > > } > > > > > > return lista; > > > } > > > > > > private void _close( Connection connection, Statement statement, > > > ResultSet resultSet ) { > > > if( _DEBUG ) > > > System.out.println("_close( Connection, Statement, > ResultSet )" ); > > > > > > if( resultSet != null ) { > > > try { > > > resultSet.close( ); > > > } catch( Exception e ) { > > > e.printStackTrace( ); > > > } > > > } > > > > > > if( statement != null ) { > > > try { > > > statement.close( ); > > > } catch( Exception e ) { > > > e.printStackTrace( ); > > > } > > > } > > > > > > if( connection != null ) { > > > try { > > > connection.close( ); > > > } catch( Exception e ) { > > > e.printStackTrace( ); > > > } > > > } > >
[JBoss-user] JDBCAppender and JBoss 2.2.2
Hi, has someone ever used the JDBCAppender with JBoss 2.2.2? Thanks! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JDBC Pool
On 2001.11.20 06:32:27 -0500 Edson Carlos Ericksson Richter wrote: > Please, review (I think I haven't understand): > > in [0/2/10], I have 0 used, 2 in pool stack, from 10 maximum. Corrrect??? > correct, I was wrong about the 0: it is number in use, NOT number free. david jencks > Thanks, > > > Edson Richter > > > - Original Message - > From: "David Jencks" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 19, 2001 4:55 PM > Subject: Re: [JBoss-user] JDBC Pool > > > > On 2001.11.19 14:34:06 -0500 Edson Carlos Ericksson Richter wrote: > > > what means numbers 0, 2 and 10 in > > > > > > [jdbc/myConnection] Pool jdbc/myConnection [0/2/10] returned object > > > org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@7ec028 to the pool. > > > > > > log message? > > > > In the pool, there are 0 free connections, 2 are created (and, noticing > the > > 0, in use), and the max capacity is 10. > > david jencks > > > > > > > > > Thanks, > > > > > > > > > Edson Richter > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > what means numbers 0, 2 and > > > 10 in > > > > > > [jdbc/myConnection] Pool > jdbc/myConnection > > > [0/2/10] > > > returned object org.jboss.pool.jdb > > > href="mailto:org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@7ec028";>c.xa.wr > apper.XAConnectionImpl@7ec028 > > > > > > to the pool. > > > > > > log message? > > > > > > > > > Thanks, > > > > > > > > > Edson Richter > > > > > > > > > BEGIN:VCARD > > > VERSION:2.1 > > > N:Richter;Edson;Carlos Ericksson > > > FN:Edson Carlos Ericksson Richter > > > NICKNAME:Richter > > > ORG:ECONET Soluções Web;Sistemas Corporativos > > > TITLE:Gerente de Projetos > > > TEL;WORK;VOICE:61 3265115 > > > ADR;WORK:;;Liberty Mall, Torre B, Sala > 1011;Brasília;DF;7-000;Brasil > > > LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Liberty Mall, Torre B, Sala > > > 1011=0D=0ABras=EDlia, DF 7-000=0D=0ABrasil > > > URL;WORK:http://www.carabrasilia.com.br > > > EMAIL;PREF;INTERNET:[EMAIL PROTECTED] > > > EMAIL;INTERNET:[EMAIL PROTECTED] > > > EMAIL;INTERNET:[EMAIL PROTECTED] > > > REV:2009T193406Z > > > END:VCARD > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How do I use log4j within JBoss?
Hi, how can I use Log4J within JBoss? how must I configure it? Any examples? many thanks! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JDBC Pool - Getting in trouble
With logging enabled, for every connection I open I should get "gave out pooled object". For every close I should get "returned object". But, as I can see, JBoss does not log every message. Appear that he does only when he get time to do. I have several datasource.getConnection that does not give me "gave out" and several close that does not give me "returned object". How can I force every message for debbuging poll? I've tryied to debug JBoss, but this is so hard to me... Thanks. Edson Richter - Original Message - From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 8:09 AM Subject: Re: [JBoss-user] JDBC Pool - Getting in trouble > I've configured this method for not using transaction, but nothing > happens... Connection still getting locked. > More info: I'm using JBoss 2.4.3, Tomcat 4.01, JConnect 5.5 and Sybase > 11.9.2 (NT, without fixes). > Configuring idletimeout does not release connections (so appear that locked > connections are not idle - and they are - I have closed them) ... > > If anyone has experienced this kind of trouble, any tips will be welcome. > > > Thanks, > > > Edson Richter > > > - Original Message - > From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 19, 2001 6:38 PM > Subject: Re: [JBoss-user] JDBC Pool - Getting in trouble > > > > I'm getting in trouble with JDBC Pool. > > After all use of a connection, I close resultSet, I close the statement > and > > then close Connection. > > After all closes I get "returned object", except in one case. If anyone > can > > analyse this code and give some idea, please do: > > > > public List getAll() throws RemoteException { > > ArrayList lista = null; > > Connection connection = null; > > Statement statement = null; > > ResultSet resultSet = null; > > MyObject tipo = null; > > > > try { > > StringBuffer sql = new StringBuffer( "select co_tipo, ds_tipo > > from tipo order by co_tipo" ); > > connection = this._getConnection( ); // this method returns > one > > connection from the pool. > > > > statement = connection.createStatement( ); > > resultSet = statement.executeQuery( sql.toString( ) ); > > tipo = null; > > > > lista = new ArrayList( ); > > > > while( resultSet.next( ) ) { > > try { > > tipo = new MyObject( ); > > tipo.codigo = resultSet.getInt( 1 ); > > tipo.descricao = resultSet.getString( 2 ); > > } catch( Exception e ) { > > e.printStackTrace( ); > > } > > > > lista.add( tipo ); > > } > > } catch( Exception e ) { > > e.printStackTrace(); > > lista = null; > > } finally { > > this._close( connection, statement, resultSet ); //this method > > closes, in order, ResultSet, Statement and then Connection > > } > > > > return lista; > > } > > > > private void _close( Connection connection, Statement statement, > > ResultSet resultSet ) { > > if( _DEBUG ) > > System.out.println("_close( Connection, Statement, ResultSet )" ); > > > > if( resultSet != null ) { > > try { > > resultSet.close( ); > > } catch( Exception e ) { > > e.printStackTrace( ); > > } > > } > > > > if( statement != null ) { > > try { > > statement.close( ); > > } catch( Exception e ) { > > e.printStackTrace( ); > > } > > } > > > > if( connection != null ) { > > try { > > connection.close( ); > > } catch( Exception e ) { > > e.printStackTrace( ); > > } > > } > > } > > > > private Connection _getConnection( ) { > > > > DataSource dataSource = null; > > Connection connection = null; > > > > try { > > javax.naming.Context context = new > > javax.naming.InitialContext( ); > > > > try { > > dataSource = ( DataSource )context.lookup( > > "java:/jdbc/myDB" ); > > } catch( Exception e2 ) { > > e2.printStackTrace(); > > throw new EJBException( "Erro buscando o DataSource: " + > > e2.toString( ) ); > > } > > > > try { > > connection = dataSource.getConnection( ); > > } catch( Exception e2 ) { > > e2.printStackTrace(); > > throw new EJBException( "Erro buscando Connection: " + > > e2.toString( ) ); > > } > > > > } catch( Exception e1 ) { > > e1.printStackTrace(); > > throw new EJBException( "Não
[JBoss-user] Initial problems with running JBoss 2.4.3
Thank you all for your help. The problem was the classpath and that I did not also have the jnp-client.jar in my ClassPath. Thank you all for your help. Regards Steve ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Tweak Jboss Logging level
Where and how can i twaek Jboss Logging level? thanks John ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JDBC Pool
Please, review (I think I haven't understand): in [0/2/10], I have 0 used, 2 in pool stack, from 10 maximum. Corrrect??? Thanks, Edson Richter - Original Message - From: "David Jencks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 4:55 PM Subject: Re: [JBoss-user] JDBC Pool > On 2001.11.19 14:34:06 -0500 Edson Carlos Ericksson Richter wrote: > > what means numbers 0, 2 and 10 in > > > > [jdbc/myConnection] Pool jdbc/myConnection [0/2/10] returned object > > org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@7ec028 to the pool. > > > > log message? > > In the pool, there are 0 free connections, 2 are created (and, noticing the > 0, in use), and the max capacity is 10. > david jencks > > > > > > Thanks, > > > > > > Edson Richter > > > > > > > > > > > > > > > > > > > > what means numbers 0, 2 and > > 10 in > > > > [jdbc/myConnection] Pool jdbc/myConnection > > [0/2/10] > > returned object org.jboss.pool.jdb > href="mailto:org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@7ec028";>c.xa.wr apper.XAConnectionImpl@7ec028 > > > > to the pool. > > > > log message? > > > > > > Thanks, > > > > > > Edson Richter > > > > > > BEGIN:VCARD > > VERSION:2.1 > > N:Richter;Edson;Carlos Ericksson > > FN:Edson Carlos Ericksson Richter > > NICKNAME:Richter > > ORG:ECONET Soluções Web;Sistemas Corporativos > > TITLE:Gerente de Projetos > > TEL;WORK;VOICE:61 3265115 > > ADR;WORK:;;Liberty Mall, Torre B, Sala 1011;Brasília;DF;7-000;Brasil > > LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Liberty Mall, Torre B, Sala > > 1011=0D=0ABras=EDlia, DF 7-000=0D=0ABrasil > > URL;WORK:http://www.carabrasilia.com.br > > EMAIL;PREF;INTERNET:[EMAIL PROTECTED] > > EMAIL;INTERNET:[EMAIL PROTECTED] > > EMAIL;INTERNET:[EMAIL PROTECTED] > > REV:2009T193406Z > > END:VCARD > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HOW can I use Log4J with JBoss?
Hi, I am a very beginner to Log4J and I would like to know how to use it in best way within JBoss? Any comments are welcome! ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JDBC Pool - Getting in trouble
I've configured this method for not using transaction, but nothing happens... Connection still getting locked. More info: I'm using JBoss 2.4.3, Tomcat 4.01, JConnect 5.5 and Sybase 11.9.2 (NT, without fixes). Configuring idletimeout does not release connections (so appear that locked connections are not idle - and they are - I have closed them) ... If anyone has experienced this kind of trouble, any tips will be welcome. Thanks, Edson Richter - Original Message - From: "Edson Carlos Ericksson Richter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 19, 2001 6:38 PM Subject: Re: [JBoss-user] JDBC Pool - Getting in trouble > I'm getting in trouble with JDBC Pool. > After all use of a connection, I close resultSet, I close the statement and > then close Connection. > After all closes I get "returned object", except in one case. If anyone can > analyse this code and give some idea, please do: > > public List getAll() throws RemoteException { > ArrayList lista = null; > Connection connection = null; > Statement statement = null; > ResultSet resultSet = null; > MyObject tipo = null; > > try { > StringBuffer sql = new StringBuffer( "select co_tipo, ds_tipo > from tipo order by co_tipo" ); > connection = this._getConnection( ); // this method returns one > connection from the pool. > > statement = connection.createStatement( ); > resultSet = statement.executeQuery( sql.toString( ) ); > tipo = null; > > lista = new ArrayList( ); > > while( resultSet.next( ) ) { > try { > tipo = new MyObject( ); > tipo.codigo = resultSet.getInt( 1 ); > tipo.descricao = resultSet.getString( 2 ); > } catch( Exception e ) { > e.printStackTrace( ); > } > > lista.add( tipo ); > } > } catch( Exception e ) { > e.printStackTrace(); > lista = null; > } finally { > this._close( connection, statement, resultSet ); //this method > closes, in order, ResultSet, Statement and then Connection > } > > return lista; > } > > private void _close( Connection connection, Statement statement, > ResultSet resultSet ) { > if( _DEBUG ) > System.out.println("_close( Connection, Statement, ResultSet )" ); > > if( resultSet != null ) { > try { > resultSet.close( ); > } catch( Exception e ) { > e.printStackTrace( ); > } > } > > if( statement != null ) { > try { > statement.close( ); > } catch( Exception e ) { > e.printStackTrace( ); > } > } > > if( connection != null ) { > try { > connection.close( ); > } catch( Exception e ) { > e.printStackTrace( ); > } > } > } > > private Connection _getConnection( ) { > > DataSource dataSource = null; > Connection connection = null; > > try { > javax.naming.Context context = new > javax.naming.InitialContext( ); > > try { > dataSource = ( DataSource )context.lookup( > "java:/jdbc/myDB" ); > } catch( Exception e2 ) { > e2.printStackTrace(); > throw new EJBException( "Erro buscando o DataSource: " + > e2.toString( ) ); > } > > try { > connection = dataSource.getConnection( ); > } catch( Exception e2 ) { > e2.printStackTrace(); > throw new EJBException( "Erro buscando Connection: " + > e2.toString( ) ); > } > > } catch( Exception e1 ) { > e1.printStackTrace(); > throw new EJBException( "Não foi possível obter o \"Initial > Context\": " + e1.toString( ) ); > } > > return connection; > } > > > I have several other methods that works exactly same way, but they closes > connection when I call _close in finally clause... > Maybe this a JDBC Pool bug? Setting connection time out in JCML > configuration file does not release connection nevermore... > > Anyone can give a light? > > > Thanks, > > > Edson Richter > > - Original Message - > From: "David Jencks" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 19, 2001 4:55 PM > Subject: Re: [JBoss-user] JDBC Pool > > > > On 2001.11.19 14:34:06 -0500 Edson Carlos Ericksson Richter wrote: > > > what means numbers 0, 2 and 10 in > > > > > > [jdbc/myConnection] Pool jdbc/myConnection [0/2/10] returned object > > > org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@7ec028 to the pool. > > > > > > log message? > > > > In the pool, there are 0 free connections, 2 a
SV: [JBoss-user] Initial problems with running JBoss 2.4.3
Make sure you have a jndi.properties file in your client classpath. It may look like this one: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=ENTER_HOSTNAME_OF_JBOSS_SERVER java.naming.factory.url.pkgs=org.jboss.naming /Lennart - Original Message - From: Steven Hawkes <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 9:45 AM Subject: [JBoss-user] Initial problems with running JBoss 2.4.3 > I have a simple general question which I hope you can > help me with. > > I am trying to get my first EJB to run. Installed JBoss > and it installed ok. I created my bean and it installed > ok in the server. > > I created the client but when I run it I get the following error > message: > > 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 > > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) > > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > > at > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:283) > > at javax.naming.InitialContext.lookup(InitialContext.java:350) > > at ejbclient.ejbclient.main(ejbclient.java:17) > > Is the JBoss installation an out of the box solution or must I modify > the config settings to get it to run? > > I tried adding the location of the jndi.properties file to the client > but this > did not help. > > Your help would be greatly appreciated. > > Regards > > Steve > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Initial problems with running JBoss 2.4.3
I've got the same problem... it is explained in the jboss/ejb samples... I think you must put a jndi.properties in the client classpath , otherwise it cannot guess who is the JNDI provider... java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=localhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces set the good host:port values... (1099 correspond to a port defined in the jboss.jcml, localhost should be replaced by a network name if you try to contact your EJB remotely) add also the jboss/client/jnp-client.jar in the classpath you can also set explicitely the properties, on the java VM command line, or via an API. > -Message d'origine- > De: Steven Hawkes [mailto:[EMAIL PROTECTED]] > Date: mardi 20 novembre 2001 09:46 > À: [EMAIL PROTECTED] > Objet: [JBoss-user] Initial problems with running JBoss 2.4.3 > > > I have a simple general question which I hope you can > help me with. > > I am trying to get my first EJB to run. Installed JBoss > and it installed ok. I created my bean and it installed > ok in the server. > > I created the client but when I run it I get the following error > message: > > 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 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Startup Jboss Automatically in Linux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I run it from /etc/inittab: j1:345:respawn:/usr/local/sbin/startjboss And here's /usr/local/sbin/startjboss: #!/bin/sh sleep 10 /bin/su -c "cd /home/jboss/jboss/bin ; sh run_with_tomcat.sh" - jboss David Green On Tue, 20 Nov 2001, John LYC wrote: > HI, > how do i do this.. startup Jboss automatically in linux...? > > I try the link in the Jboss2.0 Doc... > http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg12192.html > > After trying it for a while.. > it doesn't work.. it seem to have some errors > Has anyone try it and got it working? > > How do you guys startup Jboss automatically? > > thanks > John > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7+iaZCi6CzkbyeRQRAsjWAKCGmwYmnucBKVB6FzhEN6kfJEMoGwCdH7M8 SNLljcP5A/LqDlWjH9/zbNY= =+kNj -END PGP SIGNATURE- ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Startup Jboss Automatically in Linux
HI, how do i do this.. startup Jboss automatically in linux...? I try the link in the Jboss2.0 Doc... http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg12192.html After trying it for a while.. it doesn't work.. it seem to have some errors Has anyone try it and got it working? How do you guys startup Jboss automatically? thanks John ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Initial problems with running JBoss 2.4.3
Hello, Steven! The problem is in jndi.properties file location. Be sure it's in client's classpath. Good luck! jalex > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Steven Hawkes > Sent: Tuesday, November 20, 2001 10:46 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Initial problems with running JBoss 2.4.3 > > > I have a simple general question which I hope you can > help me with. > > I am trying to get my first EJB to run. Installed JBoss > and it installed ok. I created my bean and it installed > ok in the server. > > I created the client but when I run it I get the following error > message: > > 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 > > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) > > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > > at > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext. > java:283) > > at javax.naming.InitialContext.lookup(InitialContext.java:350) > > at ejbclient.ejbclient.main(ejbclient.java:17) > > Is the JBoss installation an out of the box solution or must I modify > the config settings to get it to run? > > I tried adding the location of the jndi.properties file to the client > but this > did not help. > > Your help would be greatly appreciated. > > Regards > > Steve > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Initial problems with running JBoss 2.4.3
I got exact the same problem! I believe JBoss' documentation has bugs. At least they are not consistent in their webpage. The build.xml file for the interest problem in the examples package seems to be old. On Tue, 20 Nov 2001, Steven Hawkes wrote: > I have a simple general question which I hope you can > help me with. > > I am trying to get my first EJB to run. Installed JBoss > and it installed ok. I created my bean and it installed > ok in the server. > > I created the client but when I run it I get the following error > message: > > 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 > > at > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) > > at > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > > at > javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:283) > > at javax.naming.InitialContext.lookup(InitialContext.java:350) > > at ejbclient.ejbclient.main(ejbclient.java:17) > > Is the JBoss installation an out of the box solution or must I modify > the config settings to get it to run? > > I tried adding the location of the jndi.properties file to the client > but this > did not help. > > Your help would be greatly appreciated. > > Regards > > Steve > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Initial problems with running JBoss 2.4.3
I have a simple general question which I hope you can help me with. I am trying to get my first EJB to run. Installed JBoss and it installed ok. I created my bean and it installed ok in the server. I created the client but when I run it I get the following error message: 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 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:283) at javax.naming.InitialContext.lookup(InitialContext.java:350) at ejbclient.ejbclient.main(ejbclient.java:17) Is the JBoss installation an out of the box solution or must I modify the config settings to get it to run? I tried adding the location of the jndi.properties file to the client but this did not help. Your help would be greatly appreciated. Regards Steve ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user