******
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
> > 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 



--__--__--

Message: 5
Date: Wed, 2 May 2001 20:59:10 -0600 (MDT)
From: Richard Feit <[EMAIL PROTECTED]>
To: Vinay Menon <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] "env not bound" when running petstore demo
Reply-To: [EMAIL PROTECTED]

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-user<br
clear=all><hr>Get your FREE download of MSN Explorer at <a
href="http://explorer.msn.com";>http://explorer.msn.com</a><br></p>
> 



--__--__--

Message: 6
From: "Dewayne McNair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: [JBoss-user] tomcat JDBCRealm breaks on redeploy
Date: Wed, 2 May 2001 18:53:25 -0500
Reply-To: [EMAIL PROTECTED]

set debug="99" in the JDBC Inteceptor, and you should see what's going
on.
The same thing happens to me... after redeploying, I have to hit login 3
times, then everything is back to normal.

-- Dewayne

----- Original Message -----
From: "Scott Hasse" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 02, 2001 6:06 PM
Subject: [JBoss-user] tomcat JDBCRealm breaks on redeploy


> I am currently seeing a problem with the 2.21 integrated Tomcat
> distribution.  I have correctly configured Tomcat to use a JDBCRealm
for
> authenticating users.  However, if I redeploy the web application (war
> file), the JDBCRealm seems to stop working.  No errors are logged in
either
> the Tomcat log or the JBoss log.  It just always seems to report that
the
> authentication failed.  I am using postrgres for a database, and have
tried
> having the drivers in JBoss' /lib/ext, in tomcat's /lib and in the web
> application itself, all to no avail.  Any help would be greatly
appreciated.
>
> Thanks,
>
> Scott
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>



--__--__--

Message: 7
From: Kadir Wijaya <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'"
         <[EMAIL PROTECTED]>
Date: Thu, 3 May 2001 11:58:23 +1200 
Subject: [JBoss-user] MBeans - dependencies - How to?
Reply-To: [EMAIL PROTECTED]

Hi all, 
in http://www.jboss.org.documentation/HTML/ch10s40.html mentioned that:
JBoss manages dependencies between MBeans via the
org.jboss.util.ServiceControl custom MBean.
I did search deep in this doc but couldn't find any clue how two MBeans
communicate between them!
For example: Mbean-A started first then Mbean-B follows. My questions
are:
1.  How does Mbean-B know that services provided by Mbean-A are
available
for Mbean-B to utilise?
2.  Is there any mechanism that allows Mbean-B to obtain the Object
reference provided by Mbean-A?

thanks,
kadir




























        
   
2. 



NOTICE: The information contained in this electronic mail message and
any
attachments is confidential to Pavilion Technologies, Inc. or one of its
subsidiaries and may contain proprietary information or be legally
privileged. This message and any attachments are intended only for the
personal and confidential use of the designated recipient(s). If you are
not
the intended recipient or an agent responsible for delivering it to the
intended recipient, you are hereby notified that you have recieved this
message in error, and that any review, dissemination, distribution or
copying of this message and any attachments is unauthorized and strictly
prohibited. If you have received this message in error, please notify me
immediately by telephone and electronic mail, and delete this message,
any
attachments, and all copies thereof. Thank you very much  




--__--__--

Message: 8
From: "Myers.David.N" <[EMAIL PROTECTED]>
To: JBoss - Users <[EMAIL PROTECTED]>
Date: Wed, 2 May 2001 17:16:45 -0700 
Subject: [JBoss-user] opta2000 jdbc driver
Reply-To: [EMAIL PROTECTED]

Hi,

I'm using JBoss 2.2.1 and having a problem with inet's Opta2000 JDBC
driver
for SQL Server 7 on NT.  It appears that from within methods marked with
the
'Required' or 'RequiresNew' transaction attribute (in the deployment
descriptor), any EJB creation, whether its a home.create() or a finder,
causes the server to throw the following exception:

XAException: tx=XidImpl {FormatId=257, GlobalId=SE407170//0,
BranchQual=]
errorCode=XAER_NOTA
javax.transaction.xa.XAException: The XID is not valid.
...
...

Has anyone ran across this and know of a solution to this problem?
Alternatively, I'd be just as interested to know whether anybody is
successfully using inet's Opta2000 driver with a similar configuration.

inet support seemed to believe it was a JBoss bug.

Any help would be appreciated,
Dave Myers


--__--__--

Message: 9
Date: Thu, 03 May 2001 08:49:48 +0800
From: Russell <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: SV: [JBoss-user] Cannot start jBoss2.2.1 container
Reply-To: [EMAIL PROTECTED]

Hi Fredrik Alund , 

   I run the script run.sh it give me the info below after i commented
out the -server option:

     JBOSS_CLASSPATH=:run.jar:../lib/crimson.jar

  It did not stated that jboss is running . Anybody have any idea ??
Thanks

   


Fredrik Alund wrote:
> 
> With the -server option to the jvm you try to start it with the
HotSpot
> compiler. If you don't have that installed, remove the -server. I
think that
> the HotSpot    compiler is part of SUNs jdk1.3 on Linux.
> 
> Regards,
> Fredrik
> 
> -----Ursprungligt meddelande-----
> Fran: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]For Russell
> Skickat: den 2 maj 2001 10:02
> Till: [EMAIL PROTECTED]
> Amne: Re: [JBoss-user] Cannot start jBoss2.2.1 container
> 
> Hi all ,
> 
>    I am using RedHat6.1 , jdk1.3 and jboss2.2.1 .
> 
>    When i tried to execute ./run.sh script , it give me the error
> message below :
>    Unrecoginzed option:  -server
>    Could not create the Java virtual machine. Below is my run.sh
script.
> 
>    I have no problem running jboss2.1 using java -jar run.jar. What is
> happening here ?? Thanks
> 
>    #!/bin/sh
> 
> # Minimal jar file to get JBoss started.
> 
> JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar
> 
> # Add all login modules for JAAS-based security
> # and all libraries that are used by them here
> JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> 
> # Add the XML parser jars and set the JAXP factory names
> # Crimson parser JAXP setup(default)
> JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
>
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.
Docu
> mentBuilderFactoryImpl
> JAXP="$JAXP
>
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFa
ctor
> yImpl"
> 
> echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
> 
> Russell wrote:
> >
> > Hi Jonathan , thanks for your info.
> >
> >   I tried to run using jdk1.3 , I also have similar problem.
> >   I did not changed anything in the shell script. The # character is
> > added by jboss developer.
> >
> >   Thanks
> >
> > Jonathan Ackerman wrote:
> > >
> > > You say that you are using jdk1.3, yet the log is showing that you
are
> using
> > > jdk.1.2.2
> > >
> > > I had some problems running JBoss under JDK 1.2, they went away
when I
> > > switched to JDK1.3
> > >
> > > Also I noticed that you had some # characters in the name of some
of
> your
> > > classes in the shell script (i.e. Docume#ntBuilderFactoryImpl and
> > > SAXPa#rserFactoryImpl).
> > >
> > > Was that just a cut and paste (into the email) error ?
> > >
> > > Jonathan
> > >
> > > -----Original Message-----
> > > From: Russell [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, 2 May 2001 5:37 p.m.
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] Cannot start jBoss2.2.1 container
> > >
> > >
> > >   Hi all ,
> > >       I am using RedHat6.1 , jdk1.3 and jBoss2.2.1.Recently i just
> > > download
> > >       jBoss2.2.1 to my PC .
> > >       When i tried to run the using java -jar run.jar , it gave me
the
> > > error below :
> > >
> > > [Info] Java version: 1.2.2,Sun Microsystems Inc.
> > > [Info] Java VM: Classic VM 1.2.2,Sun Microsystems Inc.
> > > [Info] System: Linux 2.2.13-0.13,i386
> > > [Classpath extension] Added
> > > directory:file:/mnt/fileserv/wt/JBoss-2.2.1/tmp/
> > > [Classpath extension] Added
> > > directory:file:/mnt/fileserv/wt/JBoss-2.2.1/db/
> > > [Shutdown] Could not add shutdown hook
> > > [Service Control] Registered with server
> > > [Default] javax.xml.parsers.FactoryConfigurationError:
> > > java.lang.ClassNotFoundException:
> > > org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
> > > [Default]       at
> > >
>
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFact
ory.
> > > java:118)
> > > [Default]       at org.jboss.Main.<init>(Main.java:192)
> > > [Default]       at org.jboss.Main$1.run(Main.java:107)
> > > [Default]       at
java.security.AccessController.doPrivileged(Native
> > > Method)
> > > [Default]       at org.jboss.Main.main(Main.java:103)
> > >
> > >  I have read through all jboss archived and follow some method
like run
> > > using run.sh
> > >  Before startup jboss , i run the script. However it still give me
the
> > > error. below is my run.sh.
> > >  Do i need to change the script below to success startup jboss ??
> > >
> > >  Thanks
> > >
> > >  #!/bin/sh
> > >
> > > # Minimal jar file to get JBoss started.
> > >
> > > JBOSS_CLASSPATH=$JBOSS_CLASSPATH:run.jar:../lib/crimson.jar
> > >
> > > # Add all login modules for JAAS-based security
> > > # and all libraries that are used by them here
> > > JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> > >
> > > # Add the XML parser jars and set the JAXP factory names
> > > # Crimson parser JAXP setup(default)
> > > JBOSS_CLASSPATH=$JBOSS_CLASSPATH:../lib/crimson.jar
> > >
>
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.
Docu
> > > me#ntBuilderFactoryImpl
> > > JAXP="$JAXP
> >
> >
-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXPa#rserF
ac
> to
> > > ryImpl"
> > >
> > > echo JBOSS_CLASSPATH=$JBOSS_CLASSPATH
> > >
> > > java -server $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@
> > >
> > > _______________________________________________
> > > 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
> 
> _______________________________________________
> 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
Date: Wed, 2 May 2001 19:40:44 -0400
From: Vladimir Blagojevic <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] MBeans - dependencies - How to?
Reply-To: [EMAIL PROTECTED]

Hey,

MBeans never "talk" to other MBean per se but they rather save reference
to
MBeanServer through on of the MBeanServer callbacks. I think it is
org.jboss.util.JBossServiceMBean.getObjectName() but doublecheck it.
Then
having a reference to MBeanServer MBean invokes operations on another
MBean
through MBeanServer.invoke() API.

HTH,
Vladimir 

On 2001.05.02 19:58 Kadir Wijaya wrote:
> Hi all, 
> in http://www.jboss.org.documentation/HTML/ch10s40.html mentioned
that:
> JBoss manages dependencies between MBeans via the
> org.jboss.util.ServiceControl custom MBean.
> I did search deep in this doc but couldn't find any clue how two
MBeans
> communicate between them!
> For example: Mbean-A started first then Mbean-B follows. My questions
> are:
> 1.  How does Mbean-B know that services provided by Mbean-A are
available
> for Mbean-B to utilise?
> 2.  Is there any mechanism that allows Mbean-B to obtain the Object
> reference provided by Mbean-A?
> 
> thanks,
> kadir
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>         
>    
> 2. 
> 
> 
> 
> NOTICE: The information contained in this electronic mail message and
any
> attachments is confidential to Pavilion Technologies, Inc. or one of
its
> subsidiaries and may contain proprietary information or be legally
> privileged. This message and any attachments are intended only for the
> personal and confidential use of the designated recipient(s). If you
are
> not
> the intended recipient or an agent responsible for delivering it to
the
> intended recipient, you are hereby notified that you have recieved
this
> message in error, and that any review, dissemination, distribution or
> copying of this message and any attachments is unauthorized and
strictly
> prohibited. If you have received this message in error, please notify
me
> immediately by telephone and electronic mail, and delete this message,
> any
> attachments, and all copies thereof. Thank you very much  
> 
> 
> 
> _______________________________________________
> 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


End of JBoss-user Digest

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to