Hai here is a question from me How to Bind Queries with Entity BEans -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 11:55 AM To: [EMAIL PROTECTED] Subject: JBoss-user digest, Vol 1 #219 - 14 msgs Send JBoss-user mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit http://lists.sourceforge.net/lists/listinfo/jboss-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of JBoss-user digest..." Today's Topics: 1. Re: development / deployment / debug (Scott M Stark) 2. Re: Threads in EJBs ([EMAIL PROTECTED]) 3. Problem with Interest Example (John Menke) 4. Re: development / deployment / debug (Nathan Coast) 5. Re: development / deployment / debug (Nathan Coast) 6. Re: InterestClient (Ralph Jensen) 7. JSP problem with Embedded Tomcat (Sriram Chari) 8. Re: JSP problem with Embedded Tomcat (Nguyen Thanh Phong) 9. RE: InterestClient (John Menke) 10. Re: Resource Reference Method Confusion (Guy Rouillier) 11. Re: Re: Can some one help me to get Minerva documentation (Guy Rouillier) 12. Re: InterestClient (Guy Rouillier) 13. findAll method did not order (Russell) 14. RE: Setting up the naming provider (Vincent Harcq) --__--__-- Message: 1 From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] development / deployment / debug Date: Wed, 11 Apr 2001 14:35:00 -0700 Reply-To: [EMAIL PROTECTED] > > Debug - > I'm using jswat (open source debugger) connecting remotely to jboss to debug > servlet / ejb code. This is proving too slow to be practical. I'm using > embedded tomcat as the web container and I'm starting the jboss with these flags: > java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main > > Is this the most optimal way to debug code? Would different configurations be > faster (tomcat in different VM?). Is the debug slow because I'm using jswat - > are there other free / open debug tools you'd reccomend? > Use: java -classic -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main to disable HotSpot and use the JIT instead. HotSpot is terribly slow when debugging for some reason. --__--__-- Message: 2 Subject: Re: [JBoss-user] Threads in EJBs To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Wed, 11 Apr 2001 18:07:30 -0400 Reply-To: [EMAIL PROTECTED] You have no idea how the app server is handling its threads so calling sleep() is completely unpredictable. "White, Joshua" <[EMAIL PROTECTED]>@lists.sourceforge.net on 04/11/2001 04:14:27 PM Please respond to [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> cc: Subject: [JBoss-user] Threads in EJBs Is it breaking the rules to use Thread.sleep() within a method on a Stateless Session Bean? --__--__-- Message: 3 From: "John Menke" <[EMAIL PROTECTED]> To: "jboss" <[EMAIL PROTECTED]> Date: Wed, 11 Apr 2001 18:11:34 -0400 Subject: [JBoss-user] Problem with Interest Example Reply-To: [EMAIL PROTECTED] I have installed the .jar file in my deploy directory and the log confirms that it's being deployed correctly. I also have jbosssx-client.jar and jboss-client in my classpath. When I try to run InterestClient (which is installed as InterestClient.class in the /client directory under Jboss)I get: Got context javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome] The .jar file contains InterestHome.class.... What am I doing wrong? --__--__-- Message: 4 Date: Wed, 11 Apr 2001 23:17:26 +0100 From: Nathan Coast <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] development / deployment / debug Reply-To: [EMAIL PROTECTED] Thanks Scott, unfortunately - see below. Guess there's something wrong with my jre setup. Any ideas? according to the jdk1.3 tools docs the classic flag is fine. F:\jboss-2.1\bin>run Unrecognized option: -classic Could not create the Java virtual machine. Press any key to continue . . . F:\jboss-2.1\bin>java -version java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) Scott M Stark wrote: >> Debug - >> I'm using jswat (open source debugger) connecting remotely to jboss to debug >> servlet / ejb code. This is proving too slow to be practical. I'm using >> embedded tomcat as the web container and I'm starting the jboss with these flags: >> java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main >> >> Is this the most optimal way to debug code? Would different configurations be >> faster (tomcat in different VM?). Is the debug slow because I'm using jswat - >> are there other free / open debug tools you'd reccomend? >> > > Use: > > java -classic -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main > > to disable HotSpot and use the JIT instead. HotSpot is terribly slow when debugging > for some reason. > > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 5 Date: Wed, 11 Apr 2001 23:51:14 +0100 From: Nathan Coast <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] development / deployment / debug Reply-To: [EMAIL PROTECTED] Resolution: change the jdk/jre/lib/jvm.cfg from -hotspot -server -classic to -classic -hotspot -server forces the classic jvm to be loaded first then start jboss with: java -Xbootclasspath:mypath\jdk1.3\lib\tools.jar;mypath\jdk1.3\jre\lib\rt.jar %JAXP% -classpath "%CLASSPATH%" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 And yes, after all this, the jswat does run faster. Nathan Coast wrote: > Thanks Scott, > > unfortunately - see below. Guess there's something wrong with my jre > setup. Any ideas? according to the jdk1.3 tools docs the classic flag > is fine. > > F:\jboss-2.1\bin>run > Unrecognized option: -classic > Could not create the Java virtual machine. > Press any key to continue . . . > > F:\jboss-2.1\bin>java -version > java version "1.3.0" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) > Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) > > Scott M Stark wrote: > >>> Debug - >>> I'm using jswat (open source debugger) connecting remotely to jboss >>> to debug servlet / ejb code. This is proving too slow to be >>> practical. I'm using embedded tomcat as the web container and I'm >>> starting the jboss with these flags: >>> java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n >>> org.jboss.Main >>> >>> Is this the most optimal way to debug code? Would different >>> configurations be faster (tomcat in different VM?). Is the debug >>> slow because I'm using jswat - are there other free / open debug >>> tools you'd reccomend? >>> >> >> Use: >> >> java -classic -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n >> org.jboss.Main >> >> to disable HotSpot and use the JIT instead. HotSpot is terribly slow >> when debugging >> for some reason. >> >> >> >> _______________________________________________ >> 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 --__--__-- Message: 6 From: "Ralph Jensen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] InterestClient Date: Thu, 12 Apr 2001 09:36:59 +0800 Reply-To: [EMAIL PROTECTED] Actually, not that bad. If I hadn't skipped over the configuration chapter I would have found the information: http://www.jboss.org/documentation/HTML/ch02s02.html Ralph ----- Original Message ----- From: Ken Jenks <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 8:29 PM Subject: Re: [JBoss-user] InterestClient > At 12:56 PM 4/11/01 +0800, you wrote: > >The InterestClient doesn't run until all of the following jar-files are on > >the classpath: ejb.jar, jnp-client.jar, jboss.jar, jta-spec1_0_1.jar and > >jbosssx-client.jar. > > > >Did I miss something in the documentation? > > No, the documentation is out of date. > > -- Ken Jenks, http://abiblion.com/ > > Tools for reading. > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 7 From: "Sriram Chari" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Wed, 11 Apr 2001 21:56:58 -0400 Subject: [JBoss-user] JSP problem with Embedded Tomcat Reply-To: [EMAIL PROTECTED] This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C0C2D2.54E7C510 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I keep getting NoClassDefFoundError when I try to run my Jsp under = Tomcat.What am I missing here??. I am currently running the = Jboss2.1-tomcat -beta. thanks for your help -Sri ------=_NextPart_000_0005_01C0C2D2.54E7C510 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>I keep getting NoClassDefFoundError = when I try to=20 run my Jsp under Tomcat.What am I missing here??. I am currently = running=20 the Jboss2.1-tomcat -beta.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>thanks for your help</FONT></DIV> <DIV><FONT face=3DArial size=3D2>-Sri</FONT></DIV></BODY></HTML> ------=_NextPart_000_0005_01C0C2D2.54E7C510-- --__--__-- Message: 8 From: "Nguyen Thanh Phong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] JSP problem with Embedded Tomcat Date: Thu, 12 Apr 2001 09:40:51 +0700 Reply-To: [EMAIL PROTECTED] Do you have a complete stack trace? Make sure that your CLASSPATH includes tools.jar from JDK! Cheers. Nguyen Thanh Phong. ----- Original Message ----- From: Sriram Chari <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 12, 2001 8:56 AM Subject: [JBoss-user] JSP problem with Embedded Tomcat I keep getting NoClassDefFoundError when I try to run my Jsp under Tomcat.What am I missing here??. I am currently running the Jboss2.1-tomcat -beta. thanks for your help -Sri --__--__-- Message: 9 From: "John Menke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] InterestClient Date: Wed, 11 Apr 2001 23:09:41 -0400 Reply-To: [EMAIL PROTECTED] I had to add interest.jar to the classpath also to get it to work. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ralph Jensen Sent: Wednesday, April 11, 2001 9:37 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] InterestClient Actually, not that bad. If I hadn't skipped over the configuration chapter I would have found the information: http://www.jboss.org/documentation/HTML/ch02s02.html Ralph ----- Original Message ----- From: Ken Jenks <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 8:29 PM Subject: Re: [JBoss-user] InterestClient > At 12:56 PM 4/11/01 +0800, you wrote: > >The InterestClient doesn't run until all of the following jar-files are on > >the classpath: ejb.jar, jnp-client.jar, jboss.jar, jta-spec1_0_1.jar and > >jbosssx-client.jar. > > > >Did I miss something in the documentation? > > No, the documentation is out of date. > > -- Ken Jenks, http://abiblion.com/ > > Tools for reading. > > > _______________________________________________ > 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 --__--__-- Message: 10 From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] Resource Reference Method Confusion Date: Thu, 12 Apr 2001 11:33:35 -0400 Reply-To: [EMAIL PROTECTED] You need to map your logical reference in your EJB code to the JNDI name by making an entry similar to this in jboss.xml: <resource-managers> <resource-manager> <res-jndi-name>OracleDB</res-jndi-name> <res-name>jdbc/OracleDB</res-name> </resource-manager> </resource-managers> ----- Original Message ----- From: "Faisal Ahmad" <[EMAIL PROTECTED]> To: "JBoss User (E-mail)" <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 10:24 AM Subject: [JBoss-user] Resource Reference Method Confusion > I have a session bean which needs to access the DataSource directly. > I have defined the datasource as OracleDB in the jboss.jcml and also > specified OracleDB as the datasource in jboss.xml . > When the jboss starts it binds this datasource to Java:/OracleDB. > In my session bean I do a jndi lookup for "java:/OracleDB" and get the > datasource. > So thats that, every thing works. > I dont have to even specify any <resource-ref> elements in ejb-jar.xml > > BUT > > when I make a <resource-ref> entry in the ejb-jar.xml for the session bean > like this > > <session> > <resource-ref> > <res-ref-name>OracleDB</res-ref-name> > <res-type>javax.sql.DataSource</res-type> > <res-auth>Container</res-auth> > </resource-ref> > : > : > </session> > > and try to a jndi lookup for the datasource in the bean with > "java:comp/env/OracleDB" > instead of getting the OracleDB datasource (or throwing an exception) it > gives me the DefaultDS. > > Am I making a mistake or missing something ? > > Thanks > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > --__--__-- Message: 11 From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] Re: Can some one help me to get Minerva documentation Date: Thu, 12 Apr 2001 11:41:54 -0400 Reply-To: [EMAIL PROTECTED] There used to be a minerva.html file distributed with the JBoss zip file, but I notice it has disappeared in the 2.1 disto. You can extract a previous release from CVS and get the html file that way. (If you do, can you mail me a copy? <gr>) ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 5:54 AM Subject: [JBoss-user] Re: Can some one help me to get Minerva documentation > Hi All, > > I am very much in need of documentation for Minerva Object Pools. > > Please help me to get the same. > > Thanks and rgeards. > > > Chinnaswamy > > > Chequemail.com - a free web based e-mail service that also pays!!! > http://www.chequemail.com > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > --__--__-- Message: 12 From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] InterestClient Date: Thu, 12 Apr 2001 12:22:19 -0400 Reply-To: [EMAIL PROTECTED] That's not right. interest.jar is the EJB - that is the part you put in JBoss's deploy directory. Your client should not be referencing this jar. ----- Original Message ----- From: "John Menke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 11, 2001 11:09 PM Subject: RE: [JBoss-user] InterestClient > I had to add interest.jar to the classpath also to get it to work. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ralph Jensen > Sent: Wednesday, April 11, 2001 9:37 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] InterestClient > > > Actually, not that bad. If I hadn't skipped over the configuration chapter > I would have found the information: > > http://www.jboss.org/documentation/HTML/ch02s02.html > > > Ralph > > ----- Original Message ----- > From: Ken Jenks <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, April 11, 2001 8:29 PM > Subject: Re: [JBoss-user] InterestClient > > > > At 12:56 PM 4/11/01 +0800, you wrote: > > >The InterestClient doesn't run until all of the following jar-files are > on > > >the classpath: ejb.jar, jnp-client.jar, jboss.jar, jta-spec1_0_1.jar and > > >jbosssx-client.jar. > > > > > >Did I miss something in the documentation? > > > > No, the documentation is out of date. > > > > -- Ken Jenks, http://abiblion.com/ > > > > Tools for reading. > > > > > > _______________________________________________ > > 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 mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > --__--__-- Message: 13 Date: Thu, 12 Apr 2001 14:23:56 +0800 From: Russell <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [JBoss-user] findAll method did not order Reply-To: [EMAIL PROTECTED] Hi all , I am using RedHat6.1 , postgresql7.0.1 , jboss2.1 and jdk1.3. I have created a findAll method however the result returned are not ordered. How to order the result by primary key in findAll method ??? Any ideas ?? Thanks russell. --__--__-- Message: 14 From: "Vincent Harcq" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] Setting up the naming provider Date: Thu, 12 Apr 2001 08:29:59 +0200 Reply-To: [EMAIL PROTECTED] Hi, If you use Tomcat 3.2.1, you can put jndi.properties in the Tomcat CLASSPATH and you do not need any System.setProperty(). That's how JNDI client has to find its property. And that's the more proper usage of it since you do not need to put JNP stuffs somewhere else. But it really depends if your JNDI client does not mess with these System properties. If the client overwrite them somewhere, jndi.properties will be no help. When I tested Catalina, I faced the problem that they come with a JNDI implementation that harcode factory.initial and provider.url somewhere, so you have to overwrite them in the code. The good solution to that is to use -nonaming on Catalina so that Catalina does not overwrite these System properties. I do not know with Embedded Tomcat, I do not use that. So you have to look at what your JNDI client do and verify, when you create a InitialContext, what the values are inside System.properties to be sure a bad boy did not change them somewhere. Vincent. > -----Message d'origine----- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Michael > Hustler > Envoyé : mercredi 11 avril 2001 19:46 > À : Jboss (E-mail) > Objet : [JBoss-user] Setting up the naming provider > > > In a real system, how are people setting up the naming provider? > Is anyone using jndi.properies? > > I have some code in my client to explicitly set the system properties: > System.setProperty("java.naming.factory.initial", > "org.jnp.interfaces.NamingContextFactory"); > System.setProperty("java.naming.provider.url", > "localhost:1099"); > > I have seen others who have defined a <context-param> for each of these > parameters in a .xml file (ejb-jar.xml or jboss.xml?). The env > is then read > in and set. > > Is this the normal way of doing this or is there a way to get > jndi.properties to be read automatically? > > thanks! > mike. > > _______________________________________________ > 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 End of JBoss-user Digest _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
