Re: [JBoss-user] J2EE Pet Store 1.1.1
Hopefully 1.1.2 is not too hard to patch, but I put out my copy of 1.1.1 at http://richfeit.privatei.com/jboss/javapetstore-1_1_1.zip in case anyone needs it. Rich At 03:44 PM 5/11/2001 -0600, you wrote: >I am trying to install Pet Store in JBoss-2.2.1_Tomcat-3.2.1 but can not >find Pet Store version 1.1.1. The only versions available on Sun's web >site are 1.1.2 and 1.0.1. The JBoss patch available on the JBoss web >site is 1.1.1. I tried to rebuild the ear file for Pet store1.1.2 with >JBoss Patch 1.1.1 and got some errors (can not find files due to, I >think, directory inconsistancy). Please help as how to resolve this >problem. > >Thank you very much. > >Da-Ming > > >___ >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: "env not bound" when running petstore demo
Hi Ryan, Thanks for the reply. I'd actually tried the same thing (moving jboss.jcml to tomcat/), to no avail. But as a test under my recently-working setup, I reinstalled the original jboss.jcml to tomcat, just to see what the error would be. So I do end up getting an "EstoreDB not bound" error in that case, which makes sense. However, even with the right jboss.jcml in tomcat, I still get an "env not bound" error with the original petstore.ear I was deploying. Strange! Sounds like we're both in business, though... Rich On Thu, 3 May 2001, Shriver, Ryan wrote: > ** > From: Richard Feit <[EMAIL PROTECTED]> > To: JBOSS <[EMAIL PROTECTED]> > Subject: Re: [JBoss-user] "env not bound" when running petstore demo > Reply-To: [EMAIL PROTECTED] > > OK, I ended up rebuilding and repatching petstore 1.1.1, and this time > when I deployed it everything worked. I haven't figured out what went > wrong the first time, but if you're getting the same behavior you might > try this. > > Rich > > > Rich, > This is the exact same problem I encountered. My fix was to move the > jboss.jcml that comes with the Patch from /conf/default/ to /conf/tomcat. > Apparently if you get JBoss w/ Embedded Tomcat, and you start JBoss with > run_with_tomcat, it uses the configuration files from the tomcat directory. > I had put the patched jboss.jcml with the EstoreDB definition in default and > it was never available b/c it was in the wrong directory. > > One interesting note. Before I figured this out, the first time I tried to > run PetStore I'd get the "NamingException while looking up DB context > EstoreDB not bound" thrown from CatalogModel.java. If I clicked the Back > button, then re-entered it would display the main Petstore page fine. Why it > worked, I've got not clue ;-) > > That being said, all the other functionality like displaying all fishes in > the fish category didn't work, just the main page came up. Copying > jboss.jcml to the /conf/tomcat directory made the entire application work > like it should. > > -ryan > > On Wed, 2 May 2001, Richard Feit wrote: > > > There does appear to be setup code for the datasource > > ("DefaultDomain:service=XADataSource,name=EstoreDB") in jboss.jcml > (I'm > > using the file that came with the petstore patch). During startup, I > do > > see the message "XA Connection pool EstoreDB bound to java:/EstoreDB", > and > > I wondered if the name was wrong... but I thought that in any case > > comp/env should be bound always...? > > > > There's no startup message that deals specifically with > > "EstoreDataSource" -- I didn't realize it would show up there. Is > this a > > clue? > > > > thanks, > > Rich > > > > > > On Wed, 2 May 2001, Vinay Menon wrote: > > > > > In the server start up console do you see message that say the > EstoreDataSource has been bound? Has the datasource been set up in the > jboss.jcml file? > > > > > > > > > > > > - Original Message - > > > From: Richard Feit > > > Sent: Wednesday, May 02, 2001 9:30 PM > > > To: [EMAIL PROTECTED] > > > Subject: [JBoss-user] "env not bound" when running petstore demo > > > > > > > > > Hi all, > > > > > > I'm trying to run the PetStore demo, and after applying the JBoss > patch > > > and following the deployment instructions on the site, I'm getting > an > > > exception when I access the demo and click "Enter the Store". The > error > > > message says "NamingException while looking up DB context : env not > > > bound". > > > > > > Apparently this is happening when the CatalogModel is trying to > access the > > > resource "java:comp/env/jdbc/EstoreDataSource". Other than this > problem > > > (with comp/env, presumably), the server seems to be working fine. > > > > > > I've searched the list archives and I found two questions on this > but no > > > answers. Has anyone seen it? > > > > > > thanks, > > > Rich > > > > > > p.s. JBoss2.2.1/Tomcat3.2.1, Win2K, JDK1.3 > > > > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > ___ &
Re: [JBoss-user] "env not bound" when running petstore demo
Hi Vinay, Thanks for your reply. I ended up rebulding the patched petstore.ear from scratch, and this time it seemed to work. I just don't understand why it was saying "env" wasn't bound, rather than "EstoreDataSource" or something to that effect, unless it was an inaccurate error. Anyway, thanks again. Rich On Wed, 2 May 2001, Vinay Menon wrote: > Well, > If the environment variable it is bound to EstoreDB and not EstoreDataSource >then I'd assume you'd have a small issue at hand. I have not deployed the petstore >app myself but feel that if it looking up for a datasource that is bound under a >different name [effectively not bound] it would obviously fall over. Unless anyone >who has set this up has anything to add, to you want to change the datasource it is >looking up and the datasource name to the same and try? > > Vinay > > > > - Original Message - > From: Richard Feit > Sent: Wednesday, May 02, 2001 11:09 PM > To: JBOSS > Subject: Re: [JBoss-user] "env not bound" when running petstore demo > > > There does appear to be setup code for the datasource > ("DefaultDomain:service=XADataSource,name=EstoreDB") in jboss.jcml (I'm > using the file that came with the petstore patch). During startup, I do > see the message "XA Connection pool EstoreDB bound to java:/EstoreDB", and > I wondered if the name was wrong... but I thought that in any case > comp/env should be bound always...? > > There's no startup message that deals specifically with > "EstoreDataSource" -- I didn't realize it would show up there. Is this a > clue? > > thanks, > Rich > > > On Wed, 2 May 2001, Vinay Menon wrote: > > > In the server start up console do you see message that say the EstoreDataSource >has been bound? Has the datasource been set up in the jboss.jcml file? > > > > > > > > - Original Message - > > From: Richard Feit > > Sent: Wednesday, May 02, 2001 9:30 PM > > To: [EMAIL PROTECTED] > > Subject: [JBoss-user] "env not bound" when running petstore demo > > > > > > Hi all, > > > > I'm trying to run the PetStore demo, and after applying the JBoss patch > > and following the deployment instructions on the site, I'm getting an > > exception when I access the demo and click "Enter the Store". The error > > message says "NamingException while looking up DB context : env not > > bound". > > > > Apparently this is happening when the CatalogModel is trying to access the > > resource "java:comp/env/jdbc/EstoreDataSource". Other than this problem > > (with comp/env, presumably), the server seems to be working fine. > > > > I've searched the list archives and I found two questions on this but no > > answers. Has anyone seen it? > > > > thanks, > > Rich > > > > p.s. JBoss2.2.1/Tomcat3.2.1, Win2K, JDK1.3 > > > > > > ___ > > 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-userGet your >FREE download of MSN Explorer at href="http://explorer.msn.com";>http://explorer.msn.com > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] "env not bound" when running petstore demo
OK, I ended up rebuilding and repatching petstore 1.1.1, and this time when I deployed it everything worked. I haven't figured out what went wrong the first time, but if you're getting the same behavior you might try this. Rich On Wed, 2 May 2001, Richard Feit wrote: > There does appear to be setup code for the datasource > ("DefaultDomain:service=XADataSource,name=EstoreDB") in jboss.jcml (I'm > using the file that came with the petstore patch). During startup, I do > see the message "XA Connection pool EstoreDB bound to java:/EstoreDB", and > I wondered if the name was wrong... but I thought that in any case > comp/env should be bound always...? > > There's no startup message that deals specifically with > "EstoreDataSource" -- I didn't realize it would show up there. Is this a > clue? > > thanks, > Rich > > > On Wed, 2 May 2001, Vinay Menon wrote: > > > In the server start up console do you see message that say the EstoreDataSource >has been bound? Has the datasource been set up in the jboss.jcml file? > > > > > > > > - Original Message - > > From: Richard Feit > > Sent: Wednesday, May 02, 2001 9:30 PM > > To: [EMAIL PROTECTED] > > Subject: [JBoss-user] "env not bound" when running petstore demo > > > > > > Hi all, > > > > I'm trying to run the PetStore demo, and after applying the JBoss patch > > and following the deployment instructions on the site, I'm getting an > > exception when I access the demo and click "Enter the Store". The error > > message says "NamingException while looking up DB context : env not > > bound". > > > > Apparently this is happening when the CatalogModel is trying to access the > > resource "java:comp/env/jdbc/EstoreDataSource". Other than this problem > > (with comp/env, presumably), the server seems to be working fine. > > > > I've searched the list archives and I found two questions on this but no > > answers. Has anyone seen it? > > > > thanks, > > Rich > > > > p.s. JBoss2.2.1/Tomcat3.2.1, Win2K, JDK1.3 > > > > > > ___ > > 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
Re: [JBoss-user] "env not bound" when running petstore demo
There does appear to be setup code for the datasource ("DefaultDomain:service=XADataSource,name=EstoreDB") in jboss.jcml (I'm using the file that came with the petstore patch). During startup, I do see the message "XA Connection pool EstoreDB bound to java:/EstoreDB", and I wondered if the name was wrong... but I thought that in any case comp/env should be bound always...? There's no startup message that deals specifically with "EstoreDataSource" -- I didn't realize it would show up there. Is this a clue? thanks, Rich On Wed, 2 May 2001, Vinay Menon wrote: > In the server start up console do you see message that say the EstoreDataSource has >been bound? Has the datasource been set up in the jboss.jcml file? > > > > - Original Message - > From: Richard Feit > Sent: Wednesday, May 02, 2001 9:30 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] "env not bound" when running petstore demo > > > Hi all, > > I'm trying to run the PetStore demo, and after applying the JBoss patch > and following the deployment instructions on the site, I'm getting an > exception when I access the demo and click "Enter the Store". The error > message says "NamingException while looking up DB context : env not > bound". > > Apparently this is happening when the CatalogModel is trying to access the > resource "java:comp/env/jdbc/EstoreDataSource". Other than this problem > (with comp/env, presumably), the server seems to be working fine. > > I've searched the list archives and I found two questions on this but no > answers. Has anyone seen it? > > thanks, > Rich > > p.s. JBoss2.2.1/Tomcat3.2.1, Win2K, JDK1.3 > > > ___ > 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] "env not bound" when running petstore demo
Hi all, I'm trying to run the PetStore demo, and after applying the JBoss patch and following the deployment instructions on the site, I'm getting an exception when I access the demo and click "Enter the Store". The error message says "NamingException while looking up DB context : env not bound". Apparently this is happening when the CatalogModel is trying to access the resource "java:comp/env/jdbc/EstoreDataSource". Other than this problem (with comp/env, presumably), the server seems to be working fine. I've searched the list archives and I found two questions on this but no answers. Has anyone seen it? thanks, Rich p.s. JBoss2.2.1/Tomcat3.2.1, Win2K, JDK1.3 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] COM.cloudscape.coreRmiJdbcDriver
Yes, that was the problem; at least, I ran into this yesterday and adding the period fixed it. Rich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Shriver, Ryan Sent: Tuesday, May 01, 2001 3:40 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] COM.cloudscape.coreRmiJdbcDriver Thanks for the answer about where to find the org.jboss.security classes. I found them in jboss-jaas.jar and was able to build a patched Petstore successfully. Now I'm running to problems deploying the patched petstore.ear in JBoss 2.2.1 w/ Tomcat 3.2.1. I get this exception when starting JBoss: [EmbeddedTomcat] Starting [EmbeddedTomcat] Starting EmbeddedTomcat 2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /examples ) 2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /admin ) [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages 2001-05-01 05:09:36 - ContextManager: Adding context Ctx( ) 2001-05-01 05:09:36 - ContextManager: Adding context Ctx( /test ) [EmbeddedTomcat] java.lang.RuntimeException: JDBCRealm.start.readXml: java.lang.ClassNotFoundException: COM.cloudscape.coreRmiJdbcDriver [EmbeddedTomcat]at org.apache.tomcat.request.JDBCRealm.contextInit(JDBCRealm.java:436) It can't find COM.cloudscape.coreRmiJdbcDriver. I think someone made a typo b/c this should be COM.cloudscape.core.RmiJdbcDriver (note the period; core is a package) which is available in cloudscape.jar. I searched the archives and didn't see any mention of this. Can anyone confirm this? -ryan ___ 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