RE: TOMCAT3.2 BUG

2001-01-27 Thread oliver2, andy

 are you sure the file had the proper permissions for
the user tomcat is running as?

-Original Message-
From: shiva nand tripathi
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Sent: 1/27/01 12:11 PM
Subject: TOMCAT3.2  BUG

I am integrating Apache Web server, Tomcat and Jboss (EJB container).
Tomcat is running out of Apache process using mod_jk adapter. Tomcat is
working fine for serving normal servlets and jsp. I deployed EJB on
jBoss and accessed that by creating one java client application, it
worked all right. Now when i want to access that EJB through Servlet, it
is giving problems. I copied all the libraries required for client
(ejb.jar, jnp-client.jar, jboss-client.jar and jta-spec.jar) to
WEB-INF/lib, servlet and other helping classes to WEB-INF/classes. Now
when i access the Servlet it gives " Cannot instantiate class:
org.jnp.interf aces.NamingContextFactory. Root exception is
java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory" Though this class is available
in jnp-client.jar library which is in WEB-INF/lib directory. As per
Tomcat documentation, Tomcat will include all jar files from
WEB-INF/lib/ to classpath, but it is not working here. When i copied
that the suppored client library files, jnp-client.jar etc ... to
TOMCAT_HOME/lib, it started working. This shows that WEB-INF/lib/*.jar
are not included in classpath. HELP?? 






_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: TOMCAT3.2 BUG

2001-01-27 Thread Rick Horowitz

You're not alone with this problem.  I was just involved in a couple of 
threads on this subject in the JBoss Users mailing list, but everyone who 
participated seems to have the same problem.  Here's a link to one thread: 
http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg09704.html

I finally worked around the problem by putting everything that would 
normally be in WEB-INF/lib and WEB-INF/classes into the main Tomcat 
classpath.  This works, but I'd still like to find out what the problem 
is...Tomcat? JBoss?, or something else.

Possibly confounding factors in my setup include using JBuilder 4.0 to run 
both Tomcat and JBoss, and am using Struts.  Don't know if these could be 
affecting the outcome at all because I haven't tried a different setup 
without them.

Thanks for any help anyone can provide.

Rick

At 05:11 PM 1/27/01 +, you wrote:
I am integrating Apache Web server, Tomcat and Jboss (EJB container). 
Tomcat is running out of Apache process using mod_jk adapter. Tomcat is 
working fine for serving normal servlets and jsp. I deployed EJB on jBoss 
and accessed that by creating one java client application, it worked all 
right. Now when i want to access that EJB through Servlet, it is giving 
problems. I copied all the libraries required for client (ejb.jar, 
jnp-client.jar, jboss-client.jar and jta-spec.jar) to WEB-INF/lib, servlet 
and other helping classes to WEB-INF/classes. Now when i access the 
Servlet it gives " Cannot instantiate class: org.jnp.interf 
aces.NamingContextFactory. Root exception is 
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory" 
Though this class is available in jnp-client.jar library which is in 
WEB-INF/lib directory. As per Tomcat documentation, Tomcat will include 
all jar files from WEB-INF/lib/ to classpath, but it is not working here. 
When i copied that the suppored client library files, jnp-client.jar etc 
... to TOMCAT_HOME/lib, it started working. This shows that 
WEB-INF/lib/*.jar are not included in classpath. 
HELP??






_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Rick Horowitz


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: TOMCAT3.2 BUG

2001-01-27 Thread Erik G. Dybdahl

I have tried to put a similar question in this newsgroup, without getting any
answers. Also tried other places, like the discussiong forum at Sun.
This is somewhat curious, because hopefully we are not the only ones trying to
access EJB's from JSP-pages.
Fact is:
The classes (and other resources, like jndi.properties) needed when accessing
remote objects like EJB's from JSP have to reside in the classpath used when
Tomcat is started. It does not work if they are put under the web-application
WEB-INF catalog. (BTW, this also applies eg. to the JRun 3.0 JSP-engine.) I
think the problem is that different classloaders are involved here. If you put
the class-definition for eg. an Enity Bean in a jar-file that is placed in
WEB-INF/lib, an Exception is thrown from java.net.URLClassLoader when the
remote object is received from the server (because the class defintion is not
found). Putting it in Tomcat's lib-directory "solves" this problem. Similar
problem is with the classes you mention.
Question is:
Where do the problem belong? Should it be posted as a bug in JDK 1.3?
Or should JSP-engines like Tomcat and JRun handle the situation?
I'm not sure, and it would be interesting to hear other opinions on this issue.
erik
--- shiva nand tripathi [EMAIL PROTECTED] skrev:  I am integrating
Apache Web server, Tomcat and Jboss (EJB container). Tomcat
 is running out of Apache process using mod_jk adapter. Tomcat is working fine
 for serving normal servlets and jsp. I deployed EJB on jBoss and accessed
 that by creating one java client application, it worked all right. Now when i
 want to access that EJB through Servlet, it is giving problems. I copied all
 the libraries required for client (ejb.jar, jnp-client.jar, jboss-client.jar
 and jta-spec.jar) to WEB-INF/lib, servlet and other helping classes to
 WEB-INF/classes. Now when i access the Servlet it gives " Cannot instantiate
 class: org.jnp.interf aces.NamingContextFactory. Root exception is
 java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory"
 Though this class is available in jnp-client.jar library which is in
 WEB-INF/lib directory. As per Tomcat documentation, Tomcat will include all
 jar files from WEB-INF/lib/ to classpath, but it is not working here. When i
 copied that the suppored client library files, jnp-client.jar etc ... to
 TOMCAT_HOME/lib, it started working. This shows that WEB-INF/lib/*.jar are
 not included in classpath. HELP?? 
 
 
 
 
 
 
 _
 Chat with your friends as soon as they come online. Get Rediff Bol at
 http://bol.rediff.com
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 


___
Do You Yahoo!?
Del dine bilder med andre p http://no.photos.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: TOMCAT3.2 BUG

2001-01-27 Thread CPC Livelink Admin


Not having tried this since I don't use JBoss, here is my thought. The only
difference between putting it in the main tomcat classpath and putting it in
WEB-INF/lib is the class loader that is used (javas versus tomcats).  Since
I have quite successfully used tomcats in WEB-INF/lib, I am guessing that
maybe there is something a little but different about the jar file. Maybe
you should try to unjar the package, and then rejar it yourself using no
compression and no fancy options (or just leave it unjarred in the
WEB-INF/classes).

Hope this helps,
Paul

-Original Message-
From: Rick Horowitz [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 27, 2001 1:00 PM
To: [EMAIL PROTECTED]
Subject: Re: TOMCAT3.2 BUG


You're not alone with this problem.  I was just involved in a couple of
threads on this subject in the JBoss Users mailing list, but everyone who
participated seems to have the same problem.  Here's a link to one thread:
http://www.mail-archive.com/jboss-user@list.working-dogs.com/msg09704.html

I finally worked around the problem by putting everything that would
normally be in WEB-INF/lib and WEB-INF/classes into the main Tomcat
classpath.  This works, but I'd still like to find out what the problem
is...Tomcat? JBoss?, or something else.

Possibly confounding factors in my setup include using JBuilder 4.0 to run
both Tomcat and JBoss, and am using Struts.  Don't know if these could be
affecting the outcome at all because I haven't tried a different setup
without them.

Thanks for any help anyone can provide.

Rick

At 05:11 PM 1/27/01 +, you wrote:
I am integrating Apache Web server, Tomcat and Jboss (EJB container).
Tomcat is running out of Apache process using mod_jk adapter. Tomcat is
working fine for serving normal servlets and jsp. I deployed EJB on jBoss
and accessed that by creating one java client application, it worked all
right. Now when i want to access that EJB through Servlet, it is giving
problems. I copied all the libraries required for client (ejb.jar,
jnp-client.jar, jboss-client.jar and jta-spec.jar) to WEB-INF/lib, servlet
and other helping classes to WEB-INF/classes. Now when i access the
Servlet it gives " Cannot instantiate class: org.jnp.interf
aces.NamingContextFactory. Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory"
Though this class is available in jnp-client.jar library which is in
WEB-INF/lib directory. As per Tomcat documentation, Tomcat will include
all jar files from WEB-INF/lib/ to classpath, but it is not working here.
When i copied that the suppored client library files, jnp-client.jar etc
... to TOMCAT_HOME/lib, it started working. This shows that
WEB-INF/lib/*.jar are not included in classpath.
HELP??






_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


Rick Horowitz


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: RE: TOMCAT3.2 BUG

2001-01-27 Thread oliver2, andy

 
Thats really unfortunate.  You should post this in the 
bugtracker.  It seems that this is a common problem.
I'd post it in the jakarta/tomcat one as JBOSS seems
to be a bit less communicative.

On that subject (and somewhat off topic) what all exact
files does one need to deploy an EJB.  I keep getting
some obnoxious error about deployment.cfg not existing
(right after it deleted it).  I had a jar and a ejb-jar.xml
in its META-INF and no luck.  


-Original Message-
From: shiva nand tripathi
To: [EMAIL PROTECTED]
Sent: 1/27/01 1:03 PM
Subject: Re: RE: TOMCAT3.2  BUG

Thanks for replying.
Yes i am sure that this is not problem of file permissions. File is
availbale to all for reading and writing.

shivanand



- Original Message --
"oliver2, andy" [EMAIL PROTECTED] wrote:
To:'shiva nand tripathi ' [EMAIL PROTECTED], 
"'[EMAIL PROTECTED] [EMAIL PROTECTED] '"
 [EMAIL PROTECTED]
From:"oliver2, andy" [EMAIL PROTECTED]
Date:Sat, 27 Jan 2001 12:27:33 -0500
Subject: RE: TOMCAT3.2  BUG

 are you sure the file had the proper permissions for
the user tomcat is running as?

-Original Message-
From: shiva nand tripathi
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Sent: 1/27/01 12:11 PM
Subject: TOMCAT3.2  BUG

I am integrating Apache Web server, Tomcat and Jboss (EJB container).
Tomcat is running out of Apache process using mod_jk adapter. Tomcat is
working fine for serving normal servlets and jsp. I deployed EJB on
jBoss and accessed that by creating one java client application, it
worked all right. Now when i want to access that EJB through Servlet, it
is giving problems. I copied all the libraries required for client
(ejb.jar, jnp-client.jar, jboss-client.jar and jta-spec.jar) to
WEB-INF/lib, servlet and other helping classes to WEB-INF/classes. Now
when i access the Servlet it gives " Cannot instantiate class:
org.jnp.interf aces.NamingContextFactory. Root exception is
java.lang.ClassNotFoundException:
org.jnp.interfaces.NamingContextFactory" Though this class is available
in jnp-client.jar library which is in WEB-INF/lib directory. As per
Tomcat documentation, Tomcat will include all jar files from
WEB-INF/lib/ to classpath, but it is not working here. When i copied
that the suppored client library files, jnp-client.jar etc ... to
TOMCAT_HOME/lib, it started working. This shows that WEB-INF/lib/*.jar
are not included in classpath. HELP?? 






_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]