Re: Funny JAR file, WAS: Class.forName() gives NoClassDefFoundError

2005-06-08 Thread Torsten Römer

Just want to follow up on this.

Originally, the classes under /WEB-INF/classes were in a JAR file, which 
I put in /WEB-INF/lib, but like this I always got NoClassDefFoundError.


So I thought there may be something wrong with the JAR file. I then 
zipped the classes manually and replaced the JAR file with that. And see 
there: No more NoClassDefFoundErrors.


The application JAR is, like the WAR file, created by an Ant task. It 
can be opened/extracted without problems, but if I put it in Tomcat, I 
always get NoClassDefFoundError. If I zip the classes manually, it works 
just fine...


Is this an Ant or Tomcat issue?

Torsten

Torsten Römer schrieb:

Hello!

I am currently trying to migrate a webbased cashregister system from BEA 
Weblogic 6.1/JDK 1.3.1 to Tomcat 5.0.25/JDK 1.4.2. After making some 
minor changes the application seems to work, and it also seems to run a 
lot faster.


I have one problem though: The application does a lot of 
Class.forName(), which occasionally fails with a NoClassDefFoundError. 
One time everything seems to work fine, another time, after a restart of 
Tomcat, I sometimes get this error.


In a pretty old post here I read that I have to add the classes in 
question (they are all in WEB-INF/classes) to Tomcat's classpath, so 
that the classloader can find them. Does this still apply? Or have I 
overlooked some setting, that for example preloads classes or something 
like that?


Greetings,
Torsten

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



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



Re: Funny JAR file, WAS: Class.forName() gives NoClassDefFoundError

2005-06-08 Thread Jason Bainbridge
On 6/8/05, Torsten Römer [EMAIL PROTECTED] wrote:
 Just want to follow up on this.
 
 Originally, the classes under /WEB-INF/classes were in a JAR file, which
 I put in /WEB-INF/lib, but like this I always got NoClassDefFoundError.
 
 So I thought there may be something wrong with the JAR file. I then
 zipped the classes manually and replaced the JAR file with that. And see
 there: No more NoClassDefFoundErrors.
 
 The application JAR is, like the WAR file, created by an Ant task. It
 can be opened/extracted without problems, but if I put it in Tomcat, I
 always get NoClassDefFoundError. If I zip the classes manually, it works
 just fine...
 

Sounds more like a classloader/classpath problem, NoClassDefFoundError
means it is finding multiple copies of the class.

Are you setting your system classpath as well by any chance? If you
are then you shouldn't be.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Funny JAR file, WAS: Class.forName() gives NoClassDefFoundError

2005-06-08 Thread Torsten Römer



Jason Bainbridge schrieb:

On 6/8/05, Torsten Römer [EMAIL PROTECTED] wrote:

Just want to follow up on this.

Originally, the classes under /WEB-INF/classes were in a JAR file, which
I put in /WEB-INF/lib, but like this I always got NoClassDefFoundError.

So I thought there may be something wrong with the JAR file. I then
zipped the classes manually and replaced the JAR file with that. And see
there: No more NoClassDefFoundErrors.

The application JAR is, like the WAR file, created by an Ant task. It
can be opened/extracted without problems, but if I put it in Tomcat, I
always get NoClassDefFoundError. If I zip the classes manually, it works
just fine...



Sounds more like a classloader/classpath problem, NoClassDefFoundError
means it is finding multiple copies of the class.


Doesn't NoClassDefFoundError mean, that the class in question was 
present at compile time but is now missing at runtime?




Are you setting your system classpath as well by any chance? If you
are then you shouldn't be.


I don't, CLASSPATH is unset. I am pretty sure now, that the problem is 
the JAR file as created by the Ant task of the project's build.xml. If I 
just zip the classes manually, and use that instead of the JAR file, 
everything works just fine.


I will now check the JAR task, update Ant, build on another machine and 
so on to see if that makes any differences.


Torsten

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



Class.forName() gives NoClassDefFoundError

2005-06-07 Thread Torsten Römer

Hello!

I am currently trying to migrate a webbased cashregister system from BEA 
Weblogic 6.1/JDK 1.3.1 to Tomcat 5.0.25/JDK 1.4.2. After making some 
minor changes the application seems to work, and it also seems to run a 
lot faster.


I have one problem though: The application does a lot of 
Class.forName(), which occasionally fails with a NoClassDefFoundError. 
One time everything seems to work fine, another time, after a restart of 
Tomcat, I sometimes get this error.


In a pretty old post here I read that I have to add the classes in 
question (they are all in WEB-INF/classes) to Tomcat's classpath, so 
that the classloader can find them. Does this still apply? Or have I 
overlooked some setting, that for example preloads classes or something 
like that?


Greetings,
Torsten

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



servlet/jps: servlet is Ok but jsp NoClassDefFoundError

2005-05-03 Thread Ferrari Laura
 

I am working with Tomcat 5.0

 

In a working webapp \ondemand (with only jsp) I added a servlet.

The servlet work correctly but the jsp is not able to find the
lib/engine.jar (where the its classes are defined).

Without Servlet the JSP works.

With servlet I can not have my index.jsp

 

I tried to put the jar related to servlet in common/lib, but is the
same, the servlet works, but not the jsp.

Any idea?

Thanks.

Regards.

Laura Ferrari



Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.


CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to
[EMAIL PROTECTED] Thank you



Re: servlet/jps: servlet is Ok but jsp NoClassDefFoundError

2005-05-03 Thread Anoop kumar V
Does your servlet do anything like modify tomcat properties etc?? 
Seems liek an unusual problem to me - one that I have not encoutered!!

-Anoop

On 5/3/05, Ferrari Laura [EMAIL PROTECTED] wrote:
 
 
 
 I am working with Tomcat 5.0
 
 In a working webapp \ondemand (with only jsp) I added a servlet.
 
 The servlet work correctly but the jsp is not able to find the
 lib/engine.jar (where the its classes are defined).
 
 Without Servlet the JSP works.
 
 With servlet I can not have my index.jsp
 
 I tried to put the jar related to servlet in common/lib, but is the
 same, the servlet works, but not the jsp.
 
 Any idea?
 
 Thanks.
 
 Regards.
 
 Laura Ferrari
 
 Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.
 
 
 CONFIDENTIALITY NOTICE
 This message and its attachments are addressed solely to the persons
 above and may contain confidential information. If you have received
 the message in error, be informed that any use of the content hereof
 is prohibited. Please return it immediately to the sender and delete
 the message. Should you have any questions, please send an e_mail to
 [EMAIL PROTECTED] Thank you
 
 
 


-- 
Thanks and best regards,
Anoop


Re: servlet/jps: servlet is Ok but jsp NoClassDefFoundError

2005-05-03 Thread Jason Bainbridge
On 5/3/05, Ferrari Laura [EMAIL PROTECTED] wrote:
 
 
 I am working with Tomcat 5.0
 
 In a working webapp \ondemand (with only jsp) I added a servlet.
 
 The servlet work correctly but the jsp is not able to find the
 lib/engine.jar (where the its classes are defined).

NoClassDefFoundError means that more than one matching class is found
in the classpath so your servlet's jar must contain a class that your
JSP's jar does or something related to that.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

2005-04-05 Thread Eric J Kaplan
All

 

I recently downloaded tomcat version 5.0.28 and created a webapp in the
webapps directory which looks as follows:

 

tomcat_home

webapps

armanta-war

WEB-INF

lib

armanta.jar

 

armanta.jar has two classes in it, my servlet and a class used by the
servlet.

 

My web.xml is shown below.

 

When I go to run my servlet, I get the following exception report and can't
explain why, since my install of tomcat is pretty vanilla. I know
historically there have been issues related to conflicts between jars, but
in my case I've only added two class files into the mix. Can someone please
help?

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class
com.armanta.servlets.ReportServlet
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.

 

 

?xml version=1.0 encoding=ISO-8859-1?

 

!DOCTYPE web-app 

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 

http://java.sun.com/dtd/web-app_2_3.dtd;

 

web-app

 

 

!-- General description of your web application --

 

display-nameArmanta Report Web Application/display-name

description

 Consists of a servlet to send report commands to.

/description

 

 

servlet

servlet-nameArmantaServlet/servlet-name

servlet-classcom.armanta.servlets.ReportServlet/servlet-class

/servlet

 

servlet-mapping

servlet-nameArmantaServlet/servlet-name

url-pattern/ReportServlet/url-pattern

/servlet-mapping

 

/web-app

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960

 



NoClassDefFoundError at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)

2005-04-05 Thread August Detlefsen
Tomcat: 5.5.7
Java: 1.5.0_02
OS: SunOS 5.9 (Solaris 9)

I am getting the following errors in my catalina.out: 

Apr 5, 2005 11:26:57 AM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor ROOT.xml
java.lang.NoClassDefFoundError
at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4016)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1169)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1301)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1561)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1550)
at java.lang.Thread.run(Thread.java:595)
Apr 5, 2005 11:26:57 AM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor manager.xml
java.lang.NoClassDefFoundError
at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4141)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4016)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1169)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1301)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1561)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1550)
at java.lang.Thread.run(Thread.java:595)



From the source code for StandardContext.java, line 4141 is: 

  TldConfig tldConfig = new TldConfig();

What I don't understand is how there can be a NoClassDefFoundError for
TldConfig when: 

1. TldConfig is clearly imported in line 85: 
  import org.apache.catalina.startup.TldConfig;

2. TldConfig.class resides in the same .jar as StandardContext.class
(catalina.jar)

It seems to me that there should be no NoClassDefFoundError because
StandardContext would not even be able to compile without TldConfig. 

Is there a problem with the classloader? Is my configuration completely
wrong? Can anyone shed some light on this? Any help would be most
appreciated. 

Thanks,
August

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



RE: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

2005-04-05 Thread Eric J Kaplan
Fyi, I am running java 1.4.1_07 on windows XP

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 2:44 PM
To: tomcat-user@jakarta.apache.org
Subject: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

All

 

I recently downloaded tomcat version 5.0.28 and created a webapp in the
webapps directory which looks as follows:

 

tomcat_home

webapps

armanta-war

WEB-INF

lib

armanta.jar

 

armanta.jar has two classes in it, my servlet and a class used by the
servlet.

 

My web.xml is shown below.

 

When I go to run my servlet, I get the following exception report and can't
explain why, since my install of tomcat is pretty vanilla. I know
historically there have been issues related to conflicts between jars, but
in my case I've only added two class files into the mix. Can someone please
help?

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class
com.armanta.servlets.ReportServlet
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.

 

 

?xml version=1.0 encoding=ISO-8859-1?

 

!DOCTYPE web-app 

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 

http://java.sun.com/dtd/web-app_2_3.dtd;

 

web-app

 

 

!-- General description of your web application --

 

display-nameArmanta Report Web Application/display-name

description

 Consists of a servlet to send report commands to.

/description

 

 

servlet

servlet-nameArmantaServlet/servlet-name

servlet-classcom.armanta.servlets.ReportServlet/servlet-class

/servlet

 

servlet-mapping

servlet-nameArmantaServlet/servlet-name

url-pattern/ReportServlet/url-pattern

/servlet-mapping

 

/web-app

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960

 



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



Re: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

2005-04-05 Thread reynir
hi,

This is a simple class not found exception, that would be fixed if you
add the avalon jars into WEB-INF/lib
The classloader can not find : org.apache.avalon.framework.logger.Logger
This is a class that you are using in your aramanta application
(com.armanta.servlets.ReportServlet)
You must provide this class into the classpath to get this to work. Its
not to my knowledge a part of tomcat,
and even so, you should provide libraries your applications depend on
your self.  BTW. avalon project is closed, but I think you can download
those libraries. For logging I recomend log4J.

see : http://avalon.apache.org/

hope it helps
-reynir








Eric J Kaplan wrote:

Fyi, I am running java 1.4.1_07 on windows XP

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 2:44 PM
To: tomcat-user@jakarta.apache.org
Subject: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

All

 

I recently downloaded tomcat version 5.0.28 and created a webapp in the
webapps directory which looks as follows:

 

tomcat_home

webapps

armanta-war

WEB-INF

lib

armanta.jar

 

armanta.jar has two classes in it, my servlet and a class used by the
servlet.

 

My web.xml is shown below.

 

When I go to run my servlet, I get the following exception report and can't
explain why, since my install of tomcat is pretty vanilla. I know
historically there have been issues related to conflicts between jars, but
in my case I've only added two class files into the mix. Can someone please
help?

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class
com.armanta.servlets.ReportServlet
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.

 

 

?xml version=1.0 encoding=ISO-8859-1?

 

!DOCTYPE web-app 

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 

http://java.sun.com/dtd/web-app_2_3.dtd;

 

web-app

 

 

!-- General description of your web application --

 

display-nameArmanta Report Web Application/display-name

description

 Consists of a servlet to send report commands to.

/description

 

 

servlet

servlet-nameArmantaServlet/servlet-name

servlet-classcom.armanta.servlets.ReportServlet/servlet-class

/servlet

 

servlet-mapping

servlet-nameArmantaServlet/servlet-name

url-pattern/ReportServlet/url-pattern

/servlet-mapping

 

/web-app

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960

 



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

  



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



RE: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

2005-04-05 Thread Eric J Kaplan
Reynir

That does help, although it is what I suspected. I did indeed have a ref to
this lib that I wasn't aware of. The reason I was confused initially thought
was that armanta.jar has a classloader Manifest that references a bunch of
libs, this Avalon one included, that are expected to be in an ext directory
that is off the lib directory. It seems that this manifest classpath is
ignored though? Anyway, I moved the libs up next to Armanta.jar in the lib
dir and it works fine.

Thanks

Eric

-Original Message-
From: reynir [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 3:53 PM
To: Tomcat Users List
Subject: Re: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

hi,

This is a simple class not found exception, that would be fixed if you
add the avalon jars into WEB-INF/lib
The classloader can not find : org.apache.avalon.framework.logger.Logger
This is a class that you are using in your aramanta application
(com.armanta.servlets.ReportServlet)
You must provide this class into the classpath to get this to work. Its
not to my knowledge a part of tomcat,
and even so, you should provide libraries your applications depend on
your self.  BTW. avalon project is closed, but I think you can download
those libraries. For logging I recomend log4J.

see : http://avalon.apache.org/

hope it helps
-reynir








Eric J Kaplan wrote:

Fyi, I am running java 1.4.1_07 on windows XP

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 2:44 PM
To: tomcat-user@jakarta.apache.org
Subject: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

All

 

I recently downloaded tomcat version 5.0.28 and created a webapp in the
webapps directory which looks as follows:

 

tomcat_home

webapps

armanta-war

WEB-INF

lib

armanta.jar

 

armanta.jar has two classes in it, my servlet and a class used by the
servlet.

 

My web.xml is shown below.

 

When I go to run my servlet, I get the following exception report and can't
explain why, since my install of tomcat is pretty vanilla. I know
historically there have been issues related to conflicts between jars, but
in my case I've only added two class files into the mix. Can someone please
help?

 

type Exception report

message 

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception 

javax.servlet.ServletException: Error instantiating servlet class
com.armanta.servlets.ReportServlet
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
8
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
e
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
a:683)
java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
java.lang.Class.getConstructor0(Class.java:1762)
java.lang.Class.newInstance0(Class.java:276)
java.lang.Class.newInstance(Class.java:259)
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
8
)
 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
e
ction(Http11Protocol.java:705)
 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
a:683)
java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.

 

 

?xml version=1.0 encoding=ISO-8859-1?

 

!DOCTYPE web-app 

PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 

http://java.sun.com/dtd/web-app_2_3.dtd;

 

web-app

 

 

!-- General description of your web application --

 

display-nameArmanta Report Web Application/display-name

description

 Consists of a servlet to send report commands to.

/description

 

 

servlet

servlet-nameArmantaServlet/servlet-name

servlet-classcom.armanta.servlets.ReportServlet/servlet-class

/servlet

 

servlet-mapping

servlet-nameArmantaServlet/servlet-name

url-pattern/ReportServlet/url-pattern

/servlet-mapping

 

/web-app

 

Eric J. Kaplan

Armanta, Inc.

350 Mt. Kemble Ave.

Morristown, NJ 07960

Re: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

2005-04-05 Thread reynir
welll, the classloader works as explained here :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

hope it helps,
-reynir

Eric J Kaplan wrote:

Reynir

That does help, although it is what I suspected. I did indeed have a ref to
this lib that I wasn't aware of. The reason I was confused initially thought
was that armanta.jar has a classloader Manifest that references a bunch of
libs, this Avalon one included, that are expected to be in an ext directory
that is off the lib directory. It seems that this manifest classpath is
ignored though? Anyway, I moved the libs up next to Armanta.jar in the lib
dir and it works fine.

Thanks

Eric

-Original Message-
From: reynir [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 3:53 PM
To: Tomcat Users List
Subject: Re: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

hi,

This is a simple class not found exception, that would be fixed if you
add the avalon jars into WEB-INF/lib
The classloader can not find : org.apache.avalon.framework.logger.Logger
This is a class that you are using in your aramanta application
(com.armanta.servlets.ReportServlet)
You must provide this class into the classpath to get this to work. Its
not to my knowledge a part of tomcat,
and even so, you should provide libraries your applications depend on
your self.  BTW. avalon project is closed, but I think you can download
those libraries. For logging I recomend log4J.

see : http://avalon.apache.org/

hope it helps
-reynir








Eric J Kaplan wrote:

  

Fyi, I am running java 1.4.1_07 on windows XP

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 2:44 PM
To: tomcat-user@jakarta.apache.org
Subject: NoClassDefFoundError: org/apache/avalon/framework/logger/Logger

All



I recently downloaded tomcat version 5.0.28 and created a webapp in the
webapps directory which looks as follows:



tomcat_home

   webapps

   armanta-war

   WEB-INF

   lib

   armanta.jar



armanta.jar has two classes in it, my servlet and a class used by the
servlet.



My web.xml is shown below.



When I go to run my servlet, I get the following exception report and can't
explain why, since my install of tomcat is pretty vanilla. I know
historically there have been issues related to conflicts between jars, but
in my case I've only added two class files into the mix. Can someone please
help?



type Exception report

message 

description The server encountered an internal error () that prevented it


from fulfilling this request.
  

exception 

javax.servlet.ServletException: Error instantiating servlet class
com.armanta.servlets.ReportServlet

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11


8
  

)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn


e
  

ction(Http11Protocol.java:705)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja


v
  

a:683)
   java.lang.Thread.run(Thread.java:536)

root cause 

java.lang.NoClassDefFoundError: org/apache/avalon/framework/logger/Logger
   java.lang.Class.getDeclaredConstructors0(Native Method)
   java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
   java.lang.Class.getConstructor0(Class.java:1762)
   java.lang.Class.newInstance0(Class.java:276)
   java.lang.Class.newInstance(Class.java:259)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11


8
  

)

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn


e
  

ction(Http11Protocol.java:705)

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja


v
  

a:683)
   java.lang.Thread.run(Thread.java:536)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.28 logs.





?xml version=1.0 encoding=ISO-8859-1?



!DOCTYPE web-app 

   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN 

   http://java.sun.com/dtd/web-app_2_3.dtd;



web-app





   !-- General description of your web application --



   display-nameArmanta Report Web Application/display-name

   description

Consists of a servlet to send report commands to.

   /description





   servlet

   servlet-nameArmantaServlet/servlet-name

   servlet-classcom.armanta.servlets.ReportServlet/servlet-class

   /servlet



   servlet-mapping

   servlet-nameArmantaServlet/servlet-name

   url-pattern/ReportServlet/url

Tomcat Deployer throws NoClassDefFoundError for DigesterFactory

2004-09-24 Thread Mikko Hämäläinen
Hi,

I'm trying to run the Tomcat Deployers (Tomcat 5.0.28, Ant 1.6.2,
Windows 2000 Pro  Cygwin shell) default Ant script for my web
application. For some reason, the validator-task fails every time
with a NoClassDefFoundError. If I comment the task out, everything
works fine.

I've set the properties webapp and path to my app's root dir and
context-path, respectively. Otherwise, the deployer is out-of-box,
i.e. just extracted to some directory.

Below's the stack trace got with ant -v, any suggestions?

---clip---
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
... 5 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
---clap---

Regards,

-mikko

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



RE: Tomcat Deployer throws NoClassDefFoundError for DigesterFactory

2004-09-24 Thread Shapira, Yoav

Hi,
Is the DigesterFactory class on the classpath for the validator-task?

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Mikko Hämäläinen [mailto:[EMAIL PROTECTED]
Sent: Friday, September 24, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Deployer throws NoClassDefFoundError for DigesterFactory

Hi,

I'm trying to run the Tomcat Deployers (Tomcat 5.0.28, Ant 1.6.2,
Windows 2000 Pro  Cygwin shell) default Ant script for my web
application. For some reason, the validator-task fails every time
with a NoClassDefFoundError. If I comment the task out, everything
works fine.

I've set the properties webapp and path to my app's root dir and
context-path, respectively. Otherwise, the deployer is out-of-box,
i.e. just extracted to some directory.

Below's the stack trace got with ant -v, any suggestions?

---clip---
BUILD FAILED
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at org.apache.tools.ant.Project.executeTarget(Project.java:1223)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NoClassDefFoundError:
org/apache/catalina/startup/DigesterFactory
at
org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
... 5 more
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/catalina/startup/DigesterFactory
at
org.apache.catalina.ant.ValidatorTask.execute(ValidatorTask.java:92)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.Main.runBuild(Main.java:673)
at org.apache.tools.ant.Main.startAnt(Main.java:188)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
---clap---

Regards,

-mikko

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: NoClassDefFoundError Issue

2004-09-08 Thread Avinash R S
Hi QM,

Thanks for the reply

We have not done any change  to the application during server restart. We
tried to deploy the application from the WAR file again and we are facing
the NoClassDefFoundError.

Avinash R S

- Original Message - 
From: QM [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 10:40 PM
Subject: Re: NoClassDefFoundError Issue


 On Tue, Sep 07, 2004 at 10:36:29PM +0530, Avinash R S wrote:
 : - Root Cause -
 : java.lang.NoClassDefFoundError: ssbi/bean/SSBIUserMessage
 :
 : Prior to restarting the server I didn't have this issue. The classes
referred
 : in the above Exceptions, exist in the correct location.

 Are there any new classes in the tree?
 Put another way, has the app been recompiled against all required
 classes?

 -QM

 -- 

 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com


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





DISCLAIMER:
This message (including attachment if any) is confidential and may be privileged. 
Before opening attachments please check them for viruses and defects. MindTree 
Consulting Private Limited (MindTree) will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or outside. 
If you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited.  Please note that e-mails 
are susceptible to change and MindTree shall not be liable for any improper, untimely 
or incomplete transmission.

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



NoClassDefFoundError Issue

2004-09-07 Thread Avinash R S
Hi ,

 I have a production tomcat system which is remotely managed for me . Few days back we 
had a Server System restart and after the restart we are finding the following errors 
on the server.

2004-09-04 15:58:50 StandardWrapper[/ssbi:birmPortalServlet]: Waiting for 9 
instance(s) to be deallocated
2004-09-04 15:58:50 StandardWrapperValve[birmPortalServlet]: Servlet.service() for 
servlet birmPortalServlet threw exception
javax.servlet.ServletException: Servlet execution threw an exception
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
 at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
 at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NoClassDefFoundError: ssbi/bean/SSBIUserMessage
 at ssbi.servlet.birmPortalServlet.doProcess(birmPortalServlet.java:151)
 at ssbi.servlet.birmPortalServlet.doPost(birmPortalServlet.java:85)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 

Re: NoClassDefFoundError Issue

2004-09-07 Thread QM
On Tue, Sep 07, 2004 at 10:36:29PM +0530, Avinash R S wrote:
: - Root Cause -
: java.lang.NoClassDefFoundError: ssbi/bean/SSBIUserMessage
: 
: Prior to restarting the server I didn't have this issue. The classes referred
: in the above Exceptions, exist in the correct location.

Are there any new classes in the tree?
Put another way, has the app been recompiled against all required
classes?

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: NoClassDefFoundError

2004-07-30 Thread Shapira, Yoav

Hi,
Tomcat already ships with and uses commons-logging, and that's why this
is not trivial.  So you need to be careful, and understand the
difference between a ClassNotFoundException and a NoClassDefFoundError.
(As an aside, this is a good interview question, I bet less than one in
five Java developers can explain this one well).

You have two choices: completely separate your logging configuration
from the server's, or merge the two.  See the FAQ links:
http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Rishi Pande [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 5:34 PM
To: 'Tomcat Users List'
Subject: NoClassDefFoundError

Hello,
   I am using tomcat 5.0.25. One of my jar web applications
requires
the commons-logging.jar file. However, no matter where I put it
(server/lib,
common/lib, shared/lib, webapps/app/WEB-INF/lib) I get a
NoClassDefFoundError. I am completely clueless about this.
   It would be great to hear any suggestions from the list.
   Rishi

Here's the stacktrace:
exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
   edu.vt.middleware.ldap.Ldap.clinit(Unknown Source)
   edu.vt.middleware.ldap.ed.EdAuth.init(Unknown Source)

edu.vt.sakai.plugin.VTLdapAuthService.authenticateUser(VTLdapAuthServic
e.ja
v
a:39)

org.sakaiproject.component.legacy.user.BaseUserDirectoryService.authent
icat
e
(BaseUserDirectoryService.java:758)

org.sakaiproject.service.legacy.user.cover.UserDirectoryService.authent
icat
e
(UserDirectoryService.java:177)

org.sakaiproject.component.framework.session.BaseUsageSessionService.lo
ginS
e
ssionUser(BaseUsageSessionService.java:235)

org.sakaiproject.service.framework.session.cover.UsageSessionService.lo
ginS
e
ssionUser(UsageSessionService.java:57)

org.jasig.portal.security.provider.SakaiUserSecurityContext.authenticat
e(Sa
k
aiUserSecurityContext.java:195)

org.jasig.portal.services.Authentication.authenticate(Authentication.ja
va:1
0
4)
   org.jasig.portal.LoginServlet.doGet(LoginServlet.java:160)
   org.jasig.portal.LoginServlet.doPost(LoginServlet.java:127)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:75)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



NoClassDefFoundError

2004-07-29 Thread Rishi Pande
Hello, 
I am using tomcat 5.0.25. One of my jar web applications requires
the commons-logging.jar file. However, no matter where I put it (server/lib,
common/lib, shared/lib, webapps/app/WEB-INF/lib) I get a
NoClassDefFoundError. I am completely clueless about this. 
It would be great to hear any suggestions from the list. 
Rishi

Here's the stacktrace:
exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
edu.vt.middleware.ldap.Ldap.clinit(Unknown Source)
edu.vt.middleware.ldap.ed.EdAuth.init(Unknown Source)

edu.vt.sakai.plugin.VTLdapAuthService.authenticateUser(VTLdapAuthService.jav
a:39)

org.sakaiproject.component.legacy.user.BaseUserDirectoryService.authenticate
(BaseUserDirectoryService.java:758)

org.sakaiproject.service.legacy.user.cover.UserDirectoryService.authenticate
(UserDirectoryService.java:177)

org.sakaiproject.component.framework.session.BaseUsageSessionService.loginSe
ssionUser(BaseUsageSessionService.java:235)

org.sakaiproject.service.framework.session.cover.UsageSessionService.loginSe
ssionUser(UsageSessionService.java:57)

org.jasig.portal.security.provider.SakaiUserSecurityContext.authenticate(Sak
aiUserSecurityContext.java:195)

org.jasig.portal.services.Authentication.authenticate(Authentication.java:10
4)
org.jasig.portal.LoginServlet.doGet(LoginServlet.java:160)
org.jasig.portal.LoginServlet.doPost(LoginServlet.java:127)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:75)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)



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



Re: NoClassDefFoundError

2004-06-10 Thread [EMAIL PROTECTED]
 Is your webapp in ROOT?  That's usually the default application for Tomcat and
 your own app would be in a named context.  Assuming you are doing the latter,
 and your named context is mycontext, you'd put it in:

 $CATALINA_HOME/webapps/mycontext/WEB-INF/lib

 Jake

My application is in $CATALINA_HOME/webapps/ROOT/matrici

I have tried to put the jar file in
$CATALINA_HOME/webapps/ROOT/matrici/web/WEB-INF/lib and it fails

Assuming that my application is matrici

Do i have to put the jar file in $CATALINA_HOME/webapps/matrici/WEB-INF/lib?

I have a doubt... there are other jar files containing other inportant class and
this class is found correctly.
Why?

Angelo





 Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:

  Hi all!
 
  I'm new to Tomcat.
 
  I have a problem testing my web application (jsp pages)
 
  A page of this application fails with this exception:
  javax.servlet.ServletException: org/apache/axis/client/Service
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  
  root cause
 
  java.lang.NoClassDefFoundError: org/apache/axis/client/Service
  java.lang.ClassLoader.defineClass0(Native Method)
  java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  java.net.URLClassLoader$1.run(URLClassLoader.java:194)
  java.security.AccessController.doPrivileged(Native Method)
  java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.ClassLoader.defineClass0(Native Method)
  java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  java.net.URLClassLoader$1.run(URLClassLoader.java:194)
  java.security.AccessController.doPrivileged(Native Method)
  java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)
 

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)
 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.Class.getDeclaredConstructors0(Native Method)
  java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
  java.lang.Class.getConstructor0(Class.java:1922)
  java.lang.Class.newInstance0(Class.java:278)
  java.lang.Class.newInstance(Class.java:261)
  ..etc etc.
 
  i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga,
  but
  no solution
 
  At the end that class is in axis.jar, file located in
  $CATALINA_HOME/webapps/ROOT/WEB-INF/lib
  Is this the right location for my jar files?
 
  Thanx
  Angelo
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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




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



RE: NoClassDefFoundError

2004-06-10 Thread Martinelli Paolo A.
Try to put the axis.jar under $CATALINA_HOME/shared/lib.

Which version of Tomcat are you using?

Bye,

Paolo Martinelli
IrisCube Reply S.p.A.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thu 6/10/2004 12:37
To: tomcat-user
Subject: Re: NoClassDefFoundError
 
 Is your webapp in ROOT?  That's usually the default application for Tomcat and
 your own app would be in a named context.  Assuming you are doing the latter,
 and your named context is mycontext, you'd put it in:
 
 $CATALINA_HOME/webapps/mycontext/WEB-INF/lib
 
 Jake

My application is in $CATALINA_HOME/webapps/ROOT/matrici

I have tried to put the jar file in
$CATALINA_HOME/webapps/ROOT/matrici/web/WEB-INF/lib and it fails

Assuming that my application is matrici

Do i have to put the jar file in $CATALINA_HOME/webapps/matrici/WEB-INF/lib?

I have a doubt... there are other jar files containing other inportant class and
this class is found correctly.
Why?

Angelo




 
 Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:
 
  Hi all!
  
  I'm new to Tomcat.
  
  I have a problem testing my web application (jsp pages)
  
  A page of this application fails with this exception:
  javax.servlet.ServletException: org/apache/axis/client/Service
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  
  root cause
  
  java.lang.NoClassDefFoundError: org/apache/axis/client/Service
  java.lang.ClassLoader.defineClass0(Native Method)
  java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  java.net.URLClassLoader$1.run(URLClassLoader.java:194)
  java.security.AccessController.doPrivileged(Native Method)
  java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.ClassLoader.defineClass0(Native Method)
  java.lang.ClassLoader.defineClass(ClassLoader.java:537)
  java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
  java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
  java.net.URLClassLoader.access$100(URLClassLoader.java:55)
  java.net.URLClassLoader$1.run(URLClassLoader.java:194)
  java.security.AccessController.doPrivileged(Native Method)
  java.net.URLClassLoader.findClass(URLClassLoader.java:187)
  

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)
  

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
  

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)
  

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
  org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  java.lang.Class.getDeclaredConstructors0(Native Method)
  java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
  java.lang.Class.getConstructor0(Class.java:1922)
  java.lang.Class.newInstance0(Class.java:278)
  java.lang.Class.newInstance(Class.java:261)
  ..etc etc.
  
  i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga,
  but
  no solution
  
  At the end that class is in axis.jar, file located in
  $CATALINA_HOME/webapps/ROOT/WEB-INF/lib
  Is this the right location for my jar files?
  
  Thanx
  Angelo
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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





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



RE: NoClassDefFoundError

2004-06-10 Thread Shapira, Yoav

Hi,

My application is in $CATALINA_HOME/webapps/ROOT/matrici

Move everything one level up: from webapps/ROOT/matrici to
webapps/matrici.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



NoClassDefFoundError

2004-06-09 Thread [EMAIL PROTECTED]
Hi all!

I'm new to Tomcat.

I have a problem testing my web application (jsp pages)

A page of this application fails with this exception:
javax.servlet.ServletException: org/apache/axis/client/Service
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.lang.NoClassDefFoundError: org/apache/axis/client/Service
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
java.lang.Class.getConstructor0(Class.java:1922)
java.lang.Class.newInstance0(Class.java:278)
java.lang.Class.newInstance(Class.java:261)
..etc etc.

i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga, but
no solution

At the end that class is in axis.jar, file located in
$CATALINA_HOME/webapps/ROOT/WEB-INF/lib
Is this the right location for my jar files?

Thanx
Angelo


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



RE: NoClassDefFoundError

2004-06-09 Thread Jerry Miernik
  Try to move that file to $CATALINA_HOME/common/lib

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 09, 2004 11:50 AM
To: tomcat-user
Subject: NoClassDefFoundError


Hi all!

I'm new to Tomcat.

I have a problem testing my web application (jsp pages)

A page of this application fails with this exception:

javax.servlet.ServletException: org/apache/axis/client/Service
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

root cause

java.lang.NoClassDefFoundError: org/apache/axis/client/Service
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)

java.net.URLClassLoader$1.run(URLClassLoader.java:194)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
java.net.URLClassLoader.access$100(URLClassLoader.java:55)
java.net.URLClassLoader$1.run(URLClassLoader.java:194)

java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:187)

org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)

org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
java.lang.Class.getConstructor0(Class.java:1922)
java.lang.Class.newInstance0(Class.java:278)
java.lang.Class.newInstance(Class.java:261)
..etc etc.

i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga, but no 
solution

At the end that class is in axis.jar, file located in 
$CATALINA_HOME/webapps/ROOT/WEB-INF/lib
Is this the right location for my jar files?

Thanx
Angelo


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


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



Re: NoClassDefFoundError

2004-06-09 Thread Jacob Kjome
Is your webapp in ROOT?  That's usually the default application for Tomcat and
your own app would be in a named context.  Assuming you are doing the latter,
and your named context is mycontext, you'd put it in:

$CATALINA_HOME/webapps/mycontext/WEB-INF/lib

Jake

Quoting [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi all!
 
 I'm new to Tomcat.
 
 I have a problem testing my web application (jsp pages)
 
 A page of this application fails with this exception:
 javax.servlet.ServletException: org/apache/axis/client/Service
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 
 root cause
 
 java.lang.NoClassDefFoundError: org/apache/axis/client/Service
   java.lang.ClassLoader.defineClass0(Native Method)
   java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
   java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   java.security.AccessController.doPrivileged(Native Method)
   java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   java.lang.ClassLoader.defineClass0(Native Method)
   java.lang.ClassLoader.defineClass(ClassLoader.java:537)
   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
   java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
   java.net.URLClassLoader.access$100(URLClassLoader.java:55)
   java.net.URLClassLoader$1.run(URLClassLoader.java:194)
   java.security.AccessController.doPrivileged(Native Method)
   java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:520)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:840)
 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1370)
 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:184)
   org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:110)
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
   java.lang.Class.getDeclaredConstructors0(Native Method)
   java.lang.Class.privateGetDeclaredConstructors(Class.java:1610)
   java.lang.Class.getConstructor0(Class.java:1922)
   java.lang.Class.newInstance0(Class.java:278)
   java.lang.Class.newInstance(Class.java:261)
 ..etc etc.
 
 i have seen in the archive a similar problem posted by Tejo Vamsi Prayaga,
 but
 no solution
 
 At the end that class is in axis.jar, file located in
 $CATALINA_HOME/webapps/ROOT/WEB-INF/lib
 Is this the right location for my jar files?
 
 Thanx
 Angelo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



NoClassDefFoundError

2004-05-27 Thread Worley Brent - bworle
Hi everyone,

I'm fairly new to Java and Tomcat.  I hope this problem can be easily
explained.

I am using Tomcat 5.0.24.

I have an application, packaged it in a WAR file, and deployed it.  This
application has a login page.  After logging in, the application redirects
to a page named search.jsp.  This page loads a package (import search.*).
Package search includes several classes.  The two in question are
Search.class and SearchSession.class.  SearchSession is started as a bean
and it has an instance of the Search class in it.  However, when search.jsp
loads (and loads SearchSession) I get a java.lang.NoClassDefFoundError. When
I view the source, it is where SearchSession creates an instance of the
Search class.

I have verified that the classes are under WEB-INF/classes/search.

Any ideas of what could be going wrong?

Thanks,
Brent Worley



**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.



RE: NoClassDefFoundError

2004-05-27 Thread None None
Are you importing class Search in SearchSession?  I can't tell from your 
post, but I suspect you may be asusming that doing the import in the JSP 
makes all the classes in the package available to all the classes in that 
package, and that isn't the case.  Each class still must have an import of 
what they need, whether it's an entire package with the .* notation, the 
specific class your using.


From: Worley Brent - bworle [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: NoClassDefFoundError
Date: Thu, 27 May 2004 15:21:57 -0500
Hi everyone,
I'm fairly new to Java and Tomcat.  I hope this problem can be easily
explained.
I am using Tomcat 5.0.24.
I have an application, packaged it in a WAR file, and deployed it.  This
application has a login page.  After logging in, the application redirects
to a page named search.jsp.  This page loads a package (import search.*).
Package search includes several classes.  The two in question are
Search.class and SearchSession.class.  SearchSession is started as a bean
and it has an instance of the Search class in it.  However, when search.jsp
loads (and loads SearchSession) I get a java.lang.NoClassDefFoundError. 
When
I view the source, it is where SearchSession creates an instance of the
Search class.

I have verified that the classes are under WEB-INF/classes/search.
Any ideas of what could be going wrong?
Thanks,
Brent Worley

**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.
_
Express yourself with the new version of MSN Messenger! Download today - 
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


RE: NoClassDefFoundError

2004-05-27 Thread Worley Brent - bworle
So you are saying that while my JSP imports search.* my SearchSession.class
needs to import search.Search?

Would a package search at the top of SearchSession not do the same thing?

Like I said, I'm new to java, and there are a few tricks I do not know yet.


Brent

-Original Message-
From: None None [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 3:35 PM
To: [EMAIL PROTECTED]
Subject: RE: NoClassDefFoundError


Are you importing class Search in SearchSession?  I can't tell from your 
post, but I suspect you may be asusming that doing the import in the JSP 
makes all the classes in the package available to all the classes in that 
package, and that isn't the case.  Each class still must have an import of 
what they need, whether it's an entire package with the .* notation, the 
specific class your using.


From: Worley Brent - bworle [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: NoClassDefFoundError
Date: Thu, 27 May 2004 15:21:57 -0500

Hi everyone,

I'm fairly new to Java and Tomcat.  I hope this problem can be easily 
explained.

I am using Tomcat 5.0.24.

I have an application, packaged it in a WAR file, and deployed it.  
This application has a login page.  After logging in, the application 
redirects to a page named search.jsp.  This page loads a package 
(import search.*). Package search includes several classes.  The two in 
question are Search.class and SearchSession.class.  SearchSession is 
started as a bean and it has an instance of the Search class in it.  
However, when search.jsp loads (and loads SearchSession) I get a 
java.lang.NoClassDefFoundError. When I view the source, it is where 
SearchSession creates an instance of the Search class.

I have verified that the classes are under WEB-INF/classes/search.

Any ideas of what could be going wrong?

Thanks,
Brent Worley



**
The information contained in this communication is confidential, is 
intended only for the use of the recipient named above, and may be 
legally privileged. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


_
Express yourself with the new version of MSN Messenger! Download today - 
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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


**
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged.
If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly
prohibited.
If you have received this communication in error,
please re-send this communication to the sender and
delete the original message or any copy of it from your
computer system. Thank You.


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



RE: NoClassDefFoundError

2004-05-27 Thread Benjamin Armintor
I saw something similar recently- a static code block in the class in
question was throwing an unchecked exception, which prevented the class
from being loaded.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-Original Message-
From: Worley Brent - bworle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 3:22 PM
To: '[EMAIL PROTECTED]'
Subject: NoClassDefFoundError


Hi everyone,

I'm fairly new to Java and Tomcat.  I hope this problem can be easily
explained.

I am using Tomcat 5.0.24.

I have an application, packaged it in a WAR file, and deployed it.  This
application has a login page.  After logging in, the application
redirects to a page named search.jsp.  This page loads a package (import
search.*). Package search includes several classes.  The two in question
are Search.class and SearchSession.class.  SearchSession is started as a
bean and it has an instance of the Search class in it.  However, when
search.jsp loads (and loads SearchSession) I get a
java.lang.NoClassDefFoundError. When I view the source, it is where
SearchSession creates an instance of the Search class.

I have verified that the classes are under WEB-INF/classes/search.

Any ideas of what could be going wrong?

Thanks,
Brent Worley



**
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please re-send this
communication to the sender and delete the original message or any copy
of it from your computer system. Thank You.


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



Re: another NoClassDefFoundError question

2004-04-05 Thread Jacob Kjome
You would get more responses if you actually provided the stacktrace you are
getting.  There are a few reasons for NoClassDefFoundError such as the same
library being loaded by different classloaders and your library ending up using
some classes from one and others from the other.  Or, a class you are using is
importing a package/class that doesn't exist.  Provide more info and get more
info in return.

Jake

Quoting Umi Salbiah [EMAIL PROTECTED]:

 Hi.
 
 I need help urgently with this NoClassDefFoundError issue. I was asked to
 port over my application which currently is on
 
 Apache 1.3.23 on Madrake 9.0
 Tomcat 3.3.1
 mod_jk (for Apache 1.3.23)
 mySQL 3.23.51
 
 to a Windows-based system.
 
 Currently I am using
 
 Win2000 Server
 J2Se 1.4.1
 Apache 2.0.43
 Apache Tomcat 4.1
 mod_jk 2.0.43
 mySQL 4.0.18
 
 Any clue as to why I still get the NoClassDefFoundError?
 
 Thank you
 
 b
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



request help: yet another NoClassDefFoundError issue

2004-04-04 Thread Umi Salbiah
Hi.

I need help urgently with this NoClassDefFoundError issue. I was asked to
port over my application which currently is on

Apache 1.3.23 on Madrake 9.0
Tomcat 3.3.1
mod_jk (for Apache 1.3.23)
mySQL 3.23.51

to a Windows-based system.

Currently I am using

Win2000 Server
J2Se 1.4.1
Apache 2.0.43
Apache Tomcat 4.1
mod_jk 2.0.43
mySQL 4.0.18

Any clue as to why I still get the NoClassDefFoundError?

Thank you

b


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



another NoClassDefFoundError question

2004-04-04 Thread Umi Salbiah
Hi.

I need help urgently with this NoClassDefFoundError issue. I was asked to
port over my application which currently is on

Apache 1.3.23 on Madrake 9.0
Tomcat 3.3.1
mod_jk (for Apache 1.3.23)
mySQL 3.23.51

to a Windows-based system.

Currently I am using

Win2000 Server
J2Se 1.4.1
Apache 2.0.43
Apache Tomcat 4.1
mod_jk 2.0.43
mySQL 4.0.18

Any clue as to why I still get the NoClassDefFoundError?

Thank you

b

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



another NoClassDefFoundError question

2004-04-04 Thread b

Hi.

I need help urgently with this NoClassDefFoundError issue. I was asked to

port over my application which currently is on

Apache 1.3.23 on Madrake 9.0, Tomcat 3.3.1, mod_jk 1.1.0, mySQL 3.23.51

to a Windows-based system.

Currently I am using

Win2000 Server, J2Se 1.4.1, Apache 2.0.43, Apache Tomcat 4.1, mod_jk 2.0.43, mySQL 
4.0.18

Any clue as to why I still get the NoClassDefFoundError?

Thank you

b


-
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway - Enter today

Sporadic NoClassDefFoundError

2004-02-23 Thread Brett Knights
Hi,
I am running TC 4.1.29 on Linux with jdk 1.4.2. I have two machines that are set up to 
be quite similar.
Occasionally when I start tomcat my log contains such things as:

java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener (from one machine)

or 

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet (from the other machine)


If I restart tomcat it sometimes starts normally on the next restart. Sometimes it 
takes two or three restarts but eventually the tomcat process is started properly and 
everything runs.

There is only one copy of servlet.jar on these machines. 

Any ideas would be appreciated.

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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Bruno.Melloni
This could be a bug on the latest distribution of Tomcat 5.0.16 for Solaris.  I just 
did a standard install from scratch, modified the Connector ports to new numbers (to 
avoid conflicts with previous install), renamed localhost to the real machine name in 
Engine defaultHost and in Host, and nothing else.  I had the same problem.

WORKAROUND:  Copy commons-digester.jar and commons-beanutil.jar from server/lib to 
common/lib.  This worked for me.

Bruno 


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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Shapira, Yoav

Howdy,

This could be a bug on the latest distribution of Tomcat 5.0.16 for
Solaris.  I just did a standard install from scratch, modified the
Connector ports to new numbers (to avoid conflicts with previous
install),
renamed localhost to the real machine name in Engine defaultHost and
in
Host, and nothing else.  I had the same problem.

I can't reproduce that.  I installed tomcat 5.0.16 on solaris just fine
a few minutes ago.  The balancer app is privileged so it can see
server/lib.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Bruno.Melloni
That is very strange.  I untarred from the posted binary 
jakarta-tomcat-5.0.16.tar.gz to the target directory, then modified server.xml.  The 
error happened until I copied those two files to common.  

Could it be that we used different install sources or approaches?

bruno

-Original Message-
From: ext Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:39 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError: Digester



Howdy,

This could be a bug on the latest distribution of Tomcat 5.0.16 for
Solaris.  I just did a standard install from scratch, modified the
Connector ports to new numbers (to avoid conflicts with previous
install),
renamed localhost to the real machine name in Engine defaultHost and
in
Host, and nothing else.  I had the same problem.

I can't reproduce that.  I installed tomcat 5.0.16 on solaris just fine
a few minutes ago.  The balancer app is privileged so it can see
server/lib.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Bruno.Melloni
One more note that may (or may not) be relevant:  I am running Tomcat with a dedicated 
solaris user ID, not as root.

-Original Message-
From: ext Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:39 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError: Digester



Howdy,

This could be a bug on the latest distribution of Tomcat 5.0.16 for
Solaris.  I just did a standard install from scratch, modified the
Connector ports to new numbers (to avoid conflicts with previous
install),
renamed localhost to the real machine name in Engine defaultHost and
in
Host, and nothing else.  I had the same problem.

I can't reproduce that.  I installed tomcat 5.0.16 on solaris just fine
a few minutes ago.  The balancer app is privileged so it can see
server/lib.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: NoClassDefFoundError: Digester

2004-01-16 Thread Shapira, Yoav

Howdy,

One more note that may (or may not) be relevant:  I am running Tomcat
with
a dedicated solaris user ID, not as root.

Same here.  Tomcat 5.0.16 zip downloaded from apache main distribution
site, Solaris 8 (with all OS patches), JDK 1.4.2.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Thankds guys.

I will try now...

Have a good day

-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi 15 janvier 2004 07:39
À : [EMAIL PROTECTED]
Objet : Re: NoClassDefFoundError

Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to
 acces to my classes is in the classpth of the JVM which
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First, the stack trace is for a ClassNotFoundException,
 which is very
 different from a NoClassDefFoundError that you mention in
 your message.
 It's usually easier to fix: place the jar with the missing
 class on the
 classpath.
 
 Second, you're using tomcat 3.x, which at this point in time
 means not
 many people can help you.  Perhaps someone will, but if you can then
 you should consider upgrading to a more recent tomcat version.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 5:36 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Please I really need help !!!
 
 Is someone receive my mail ?
 
 
 -Message d'origine-
 De : Xavier ANDRE
 Envoyé : mercredi 14 janvier 2004 09:38
 À : Tomcat Users List
 Objet : NoClassDefFoundError
 Importance : Haute
 
 Hi,
 
 
 
 I've got en NoClassDefFoundError when I'm calling a method
 of a SOAP
 service which is deployed on my Tomcat Server.
 
 
 
 To start TOMCAT, I use these code, which is launched in my JVM :
 
 
 
 String[] args = new String[]{start};
 
 
 org.apache.tomcat.startup.Main.main(args);
 
 
 
 The version of Tomcat is 3.3a.
 
 
 
 The error is :
 
 
 
 ?xml version='1.0' encoding='UTF-8'?
 
 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
 SOAP-ENV:Body
 
 SOAP-ENV:Fault
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
 faultstringUnable to resolve target object:
 lib123.soap.sms.SmsDriverSOAP/faultstring
 
 faultactor/soap/servlet/messagerouter//faultactor
 
 detail
 
 stackTracejava.lang.ClassNotFoundException:
 lib123.soap.sms.SmsDriverSOAP
 
 
 
 I don't understand why the class
 lib123.soap.sms.SmsDriverSOAP can't
 be found since is in my JVM's classpath ?
 
 
 
 Thanks
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Hi again,

I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also...

It drives me crazy :-(((

Xavier André
 

-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi 15 janvier 2004 07:39
À : [EMAIL PROTECTED]
Objet : Re: NoClassDefFoundError

Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to
 acces to my classes is in the classpth of the JVM which
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First, the stack trace is for a ClassNotFoundException,
 which is very
 different from a NoClassDefFoundError that you mention in
 your message.
 It's usually easier to fix: place the jar with the missing
 class on the
 classpath.
 
 Second, you're using tomcat 3.x, which at this point in time
 means not
 many people can help you.  Perhaps someone will, but if you can then
 you should consider upgrading to a more recent tomcat version.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 5:36 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Please I really need help !!!
 
 Is someone receive my mail ?
 
 
 -Message d'origine-
 De : Xavier ANDRE
 Envoyé : mercredi 14 janvier 2004 09:38
 À : Tomcat Users List
 Objet : NoClassDefFoundError
 Importance : Haute
 
 Hi,
 
 
 
 I've got en NoClassDefFoundError when I'm calling a method
 of a SOAP
 service which is deployed on my Tomcat Server.
 
 
 
 To start TOMCAT, I use these code, which is launched in my JVM :
 
 
 
 String[] args = new String[]{start};
 
 
 org.apache.tomcat.startup.Main.main(args);
 
 
 
 The version of Tomcat is 3.3a.
 
 
 
 The error is :
 
 
 
 ?xml version='1.0' encoding='UTF-8'?
 
 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
 SOAP-ENV:Body
 
 SOAP-ENV:Fault
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
 faultstringUnable to resolve target object:
 lib123.soap.sms.SmsDriverSOAP/faultstring
 
 faultactor/soap/servlet/messagerouter//faultactor
 
 detail
 
 stackTracejava.lang.ClassNotFoundException:
 lib123.soap.sms.SmsDriverSOAP
 
 
 
 I don't understand why the class
 lib123.soap.sms.SmsDriverSOAP can't
 be found since is in my JVM's classpath ?
 
 
 
 Thanks
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL

RE: NoClassDefFoundError

2004-01-15 Thread Stuart Stephen
Try extracting the JAR's contents into the webapp/WEB-INF/classes directory,
check the class exists and restart tommy.

-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: 15 January 2004 08:32
To: Tomcat Users List
Subject: RE: NoClassDefFoundError


Hi again,

I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also...

It drives me crazy :-(((

Xavier André


-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi 15 janvier 2004 07:39
À : [EMAIL PROTECTED]
Objet : Re: NoClassDefFoundError

Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_c
lasses.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to
 acces to my classes is in the classpth of the JVM which
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First, the stack trace is for a ClassNotFoundException,
 which is very
 different from a NoClassDefFoundError that you mention in
 your message.
 It's usually easier to fix: place the jar with the missing
 class on the
 classpath.
 
 Second, you're using tomcat 3.x, which at this point in time
 means not
 many people can help you.  Perhaps someone will, but if you can then
 you should consider upgrading to a more recent tomcat version.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 5:36 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Please I really need help !!!
 
 Is someone receive my mail ?
 
 
 -Message d'origine-
 De : Xavier ANDRE
 Envoyé : mercredi 14 janvier 2004 09:38
 À : Tomcat Users List
 Objet : NoClassDefFoundError
 Importance : Haute
 
 Hi,
 
 
 
 I've got en NoClassDefFoundError when I'm calling a method
 of a SOAP
 service which is deployed on my Tomcat Server.
 
 
 
 To start TOMCAT, I use these code, which is launched in my JVM :
 
 
 
 String[] args = new String[]{start};
 
 
 org.apache.tomcat.startup.Main.main(args);
 
 
 
 The version of Tomcat is 3.3a.
 
 
 
 The error is :
 
 
 
 ?xml version='1.0' encoding='UTF-8'?
 
 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
 SOAP-ENV:Body
 
 SOAP-ENV:Fault
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
 faultstringUnable to resolve target object:
 lib123.soap.sms.SmsDriverSOAP/faultstring
 
 faultactor/soap/servlet/messagerouter//faultactor
 
 detail
 
 stackTracejava.lang.ClassNotFoundException:
 lib123.soap.sms.SmsDriverSOAP
 
 
 
 I don't understand why the class
 lib123.soap.sms.SmsDriverSOAP can't
 be found since is in my JVM's classpath ?
 
 
 
 Thanks
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
Thankds Stephen for the idea but it doesn't work also.
This is my error :

?xml version='1.0' encoding='UTF-8'?
SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
SOAP-ENV:Body
SOAP-ENV:Fault xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
faultstringUnable to resolve target object: 
lib123.soap.sms.SmsDriverSOAP/faultstring
faultactor/soap/servlet/messagerouter//faultactor
detail
stackTracejava.lang.ClassNotFoundException: lib123.soap.sms.SmsDriverSOAP
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at 
org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils.java:274)
at org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvider.java:113)
at 
org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at 
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown 
Source)
at java.lang.Thread.run(Thread.java:534)
/stackTrace
/detail

Xavier André
 

-Message d'origine-
De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 janvier 2004 14:50
À : Tomcat Users List
Objet : RE: NoClassDefFoundError

Try extracting the JAR's contents into the webapp/WEB-INF/classes directory,
check the class exists and restart tommy.

-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: 15 January 2004 08:32
To: Tomcat Users List
Subject: RE: NoClassDefFoundError


Hi again,

I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also...

It drives me crazy :-(((

Xavier André


-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi 15 janvier 2004 07:39
À : [EMAIL PROTECTED]
Objet : Re: NoClassDefFoundError

Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_c
lasses.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to
 acces to my classes is in the classpth of the JVM which
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First

RE: NoClassDefFoundError

2004-01-15 Thread Bruchem, A. van (Alexander)
You could just place the jar file in the WEB-INF classes directory.
A problem might be that you ftp the jar files to it with the wrong setting,
it should be binary.

I thought that you have to change web.xml to read your WEB-INF directory.

___
Alexander van Bruchem
Windows System Engineer
ISD - N.V. Organon
P.O. Box 20
5340 BH Oss
The Netherlands
Ext.: +31 (0) 412 665076
mailto:[EMAIL PROTECTED]


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
Sent: donderdag 15 januari 2004 14:56
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Thankds Stephen for the idea but it doesn't work also.
This is my error :

?xml version='1.0' encoding='UTF-8'?
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;
SOAP-ENV:Body
SOAP-ENV:Fault xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring
faultactor/soap/servlet/messagerouter//faultactor
detail
stackTracejava.lang.ClassNotFoundException: lib123.soap.sms.SmsDriverSOAP
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
at
org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(ServerHTTPUtils.
java:274)
at
org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvider.java:113)
at
org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet
.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:534)
/stackTrace
/detail

Xavier André
 

-Message d'origine-
De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 janvier 2004 14:50
À : Tomcat Users List
Objet : RE: NoClassDefFoundError

Try extracting the JAR's contents into the webapp/WEB-INF/classes directory,
check the class exists and restart tommy.

-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: 15 January 2004 08:32
To: Tomcat Users List
Subject: RE: NoClassDefFoundError


Hi again,

I try to put my jar in $TOMCAT_HOME/lib/common/ but it does not work also...

It drives me crazy :-(((

Xavier André


-Message d'origine-
De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
Envoyé : jeudi 15 janvier 2004 07:39
À : [EMAIL PROTECTED]
Objet : Re: NoClassDefFoundError

Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_c
lasses.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday

RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Where exactly is the lib123.soap.sms.SmsDriverSOAP class
located (jar and directory) and where are the
org.apache.soap.* classes listed in the stack trace
located (jar and directory)?

Cheers,
Larry

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 15, 2004 8:56 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 
 Thankds Stephen for the idea but it doesn't work also.
 This is my error :
 
 ?xml version='1.0' encoding='UTF-8'?
 SOAP-ENV:Envelope 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; 
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 SOAP-ENV:Body
 SOAP-ENV:Fault 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 faultstringUnable to resolve target object: 
 lib123.soap.sms.SmsDriverSOAP/faultstring
 faultactor/soap/servlet/messagerouter//faultactor
 detail
 stackTracejava.lang.ClassNotFoundException: 
 lib123.soap.sms.SmsDriverSOAP
 at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:219)
 at 
 org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
 at 
 org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se
 rverHTTPUtils.java:274)
 at 
 org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid
 er.java:113)
 at 
 org.apache.soap.server.http.MessageRouterServlet.doPost(Messag
 eRouterServlet.java:267)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at 
 org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
 at org.apache.tomcat.core.Handler.invoke(Unknown Source)
 at org.apache.tomcat.core.Handler.service(Unknown Source)
 at 
 org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 at 
 org.apache.tomcat.core.ContextManager.service(Unknown Source)
 at 
 org.apache.tomcat.modules.server.Http10Interceptor.processConn
 ection(Unknown Source)
 at 
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 Unknown Source)
 at java.lang.Thread.run(Thread.java:534)
 /stackTrace
 /detail
 
 Xavier André
  
 
 -Message d'origine-
 De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 15 janvier 2004 14:50
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 Try extracting the JAR's contents into the 
 webapp/WEB-INF/classes directory,
 check the class exists and restart tommy.
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: 15 January 2004 08:32
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 
 Hi again,
 
 I try to put my jar in $TOMCAT_HOME/lib/common/ but it does 
 not work also...
 
 It drives me crazy :-(((
 
 Xavier André
 
 
 -Message d'origine-
 De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker
 Envoyé : jeudi 15 janvier 2004 07:39
 À : [EMAIL PROTECTED]
 Objet : Re: NoClassDefFoundError
 
 Actually, since he is using TC 3.3, the correct link is:
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html
 #configuring_c
 lasses.
 
 However, it is similar to the TC 4 structure, just with 
 different directory
 names :).
 
 Mike Curwen [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Did you read the document Yoav mentioned?
 
 I'll give a tiny push...
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h
 owto.html
 
  -Original Message-
  From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 14, 2004 11:27 AM
  To: Tomcat Users List
  Subject: RE: NoClassDefFoundError
 
 
  If I put a jar file in classpath, how can I do that ?
 
  In which directory do I put my jar file ?
  Must I modify a file ?
 
  Xavier André
 
  -Message d'origine-
  De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Envoyé : mercredi 14 janvier 2004 14:45
  À : Tomcat Users List
  Objet : RE: NoClassDefFoundError
 
 
  Howdy,
  Read the classloader how-to in the tomcat documentation.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 14, 2004 8:45 AM
  To: Tomcat

RE: NoClassDefFoundError

2004-01-15 Thread Xavier ANDRE
My structure of tomcat is :

 

/usr/tomcat : Tomcat Directory

/usr/tomcat/webapps/soap/ : my app directory

/usr/tomcat/webapps/soap/WEB-INF/classes/ my app's classes where there are 
lib12.soap.sms.SmsDriverSOAP and org.apache.soap.* classes

 

Xavier André

 

 

-Message d'origine-
De : Larry Isaacs [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 15 janvier 2004 15:53
À : Tomcat Users List
Objet : RE: NoClassDefFoundError

 

Where exactly is the lib123.soap.sms.SmsDriverSOAP class

located (jar and directory) and where are the

org.apache.soap.* classes listed in the stack trace

located (jar and directory)?

 

Cheers,

Larry

 

 -Original Message-

 From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 

 Sent: Thursday, January 15, 2004 8:56 AM

 To: Tomcat Users List

 Subject: RE: NoClassDefFoundError

 

 

 Thankds Stephen for the idea but it doesn't work also.

 This is my error :

 

 ?xml version='1.0' encoding='UTF-8'?

 SOAP-ENV:Envelope 

 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 

 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; 

 xmlns:xsd=http://www.w3.org/1999/XMLSchema;

 SOAP-ENV:Body

 SOAP-ENV:Fault 

 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

 faultstringUnable to resolve target object: 

 lib123.soap.sms.SmsDriverSOAP/faultstring

 faultactor/soap/servlet/messagerouter//faultactor

 detail

 stackTracejava.lang.ClassNotFoundException: 

 lib123.soap.sms.SmsDriverSOAP

 at java.net.URLClassLoader$1.run(URLClassLoader.java:199)

 at java.security.AccessController.doPrivileged(Native Method)

 at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

 at java.lang.ClassLoader.loadClass(ClassLoader.java:289)

 at 

 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

 at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

 at 

 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

 at java.lang.Class.forName0(Native Method)

 at java.lang.Class.forName(Class.java:219)

 at 

 org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)

 at 

 org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se

 rverHTTPUtils.java:274)

 at 

 org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid

 er.java:113)

 at 

 org.apache.soap.server.http.MessageRouterServlet.doPost(Messag

 eRouterServlet.java:267)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java)

 at javax.servlet.http.HttpServlet.service(HttpServlet.java)

 at 

 org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)

 at org.apache.tomcat.core.Handler.invoke(Unknown Source)

 at org.apache.tomcat.core.Handler.service(Unknown Source)

 at 

 org.apache.tomcat.facade.ServletHandler.service(Unknown Source)

 at 

 org.apache.tomcat.core.ContextManager.internalService(Unknown Source)

 at 

 org.apache.tomcat.core.ContextManager.service(Unknown Source)

 at 

 org.apache.tomcat.modules.server.Http10Interceptor.processConn

 ection(Unknown Source)

 at 

 org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)

 at 

 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(

 Unknown Source)

 at java.lang.Thread.run(Thread.java:534)

 /stackTrace

 /detail

 

 Xavier André

  

 

 -Message d'origine-

 De : Stuart Stephen [mailto:[EMAIL PROTECTED] 

 Envoyé : jeudi 15 janvier 2004 14:50

 À : Tomcat Users List

 Objet : RE: NoClassDefFoundError

 

 Try extracting the JAR's contents into the 

 webapp/WEB-INF/classes directory,

 check the class exists and restart tommy.

 

 -Original Message-

 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]

 Sent: 15 January 2004 08:32

 To: Tomcat Users List

 Subject: RE: NoClassDefFoundError

 

 

 Hi again,

 

 I try to put my jar in $TOMCAT_HOME/lib/common/ but it does 

 not work also...

 

 It drives me crazy :-(((

 

 Xavier André

 

 

 -Message d'origine-

 De : news [mailto:[EMAIL PROTECTED] De la part de Bill Barker

 Envoyé : jeudi 15 janvier 2004 07:39

 À : [EMAIL PROTECTED]

 Objet : Re: NoClassDefFoundError

 

 Actually, since he is using TC 3.3, the correct link is:

 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html

 #configuring_c

 lasses.

 

 However, it is similar to the TC 4 structure, just with 

 different directory

 names :).

 

 Mike Curwen [EMAIL PROTECTED] wrote in message

 news:[EMAIL PROTECTED]

 Did you read the document Yoav mentioned?

 

 I'll give a tiny push...

 

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-h

 owto.html

 

  -Original Message-

  From: Xavier ANDRE [mailto:[EMAIL PROTECTED]

  Sent: Wednesday, January 14, 2004 11:27 AM

  To: Tomcat Users List

  Subject: RE: NoClassDefFoundError

RE: NoClassDefFoundError

2004-01-15 Thread Larry Isaacs
Xavier,

This structure looks fine.  It should be noted that Tomcat 3.3.x
follows the JDK classloader delegation model, i.e. always
delegate to a parent classloader before looking for a class
locally.  This means that the SmsDriverSOAP and org.apache.soap
classes must not exist in any other classloader in Tomcat 3.3.x.

Note that in your stack trace the class:

sun.misc.Launcher$AppClassLoader

appears as the first loader class above the:

org.apache.soap.rpc.SOAPContext.loadClass()

call. This seems to imply that the org.apache.soap classes
may be on the classpath.  If so, those classes will be used
instead of the ones in WEB-INF/classes.  From the classpath
classloader, no classes under WEB-INF/classes would be
accessible.  If you find them on the classpath, remove
them.

Cheers,
Larry

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, January 15, 2004 10:04 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 
 My structure of tomcat is :
 
  
 
 /usr/tomcat : Tomcat Directory
 
 /usr/tomcat/webapps/soap/ : my app directory
 
 /usr/tomcat/webapps/soap/WEB-INF/classes/ my app's classes 
 where there are lib12.soap.sms.SmsDriverSOAP and 
 org.apache.soap.* classes
 
  
 
 Xavier André
 
  
 
  
 
 -Message d'origine-
 De : Larry Isaacs [mailto:[EMAIL PROTECTED] 
 Envoyé : jeudi 15 janvier 2004 15:53
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
  
 
 Where exactly is the lib123.soap.sms.SmsDriverSOAP class
 
 located (jar and directory) and where are the
 
 org.apache.soap.* classes listed in the stack trace
 
 located (jar and directory)?
 
  
 
 Cheers,
 
 Larry
 
  
 
  -Original Message-
 
  From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
 
  Sent: Thursday, January 15, 2004 8:56 AM
 
  To: Tomcat Users List
 
  Subject: RE: NoClassDefFoundError
 
  
 
  
 
  Thankds Stephen for the idea but it doesn't work also.
 
  This is my error :
 
  
 
  ?xml version='1.0' encoding='UTF-8'?
 
  SOAP-ENV:Envelope 
 
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; 
 
  xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; 
 
  xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
  SOAP-ENV:Body
 
  SOAP-ENV:Fault 
 
  xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
  faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
  faultstringUnable to resolve target object: 
 
  lib123.soap.sms.SmsDriverSOAP/faultstring
 
  faultactor/soap/servlet/messagerouter//faultactor
 
  detail
 
  stackTracejava.lang.ClassNotFoundException: 
 
  lib123.soap.sms.SmsDriverSOAP
 
  at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
 
  at 
 java.security.AccessController.doPrivileged(Native Method)
 
  at 
 java.net.URLClassLoader.findClass(URLClassLoader.java:187)
 
  at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
 
  at 
 
  sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
 
  at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
 
  at 
 
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 
  at java.lang.Class.forName0(Native Method)
 
  at java.lang.Class.forName(Class.java:219)
 
  at 
 
  org.apache.soap.rpc.SOAPContext.loadClass(SOAPContext.java:557)
 
  at 
 
  org.apache.soap.server.http.ServerHTTPUtils.getTargetObject(Se
 
  rverHTTPUtils.java:274)
 
  at 
 
  org.apache.soap.providers.MsgJavaProvider.locate(MsgJavaProvid
 
  er.java:113)
 
  at 
 
  org.apache.soap.server.http.MessageRouterServlet.doPost(Messag
 
  eRouterServlet.java:267)
 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 
  at 
 
  org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
 
  at org.apache.tomcat.core.Handler.invoke(Unknown Source)
 
  at org.apache.tomcat.core.Handler.service(Unknown Source)
 
  at 
 
  org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
 
  at 
 
  
 org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
 
  at 
 
  org.apache.tomcat.core.ContextManager.service(Unknown Source)
 
  at 
 
  org.apache.tomcat.modules.server.Http10Interceptor.processConn
 
  ection(Unknown Source)
 
  at 
 
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
 
  at 
 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
 
  Unknown Source)
 
  at java.lang.Thread.run(Thread.java:534)
 
  /stackTrace
 
  /detail
 
  
 
  Xavier André
 
   
 
  
 
  -Message d'origine-
 
  De : Stuart Stephen [mailto:[EMAIL PROTECTED] 
 
  Envoyé : jeudi 15 janvier 2004 14:50
 
  À : Tomcat Users List
 
  Objet : RE: NoClassDefFoundError
 
  
 
  Try extracting the JAR's contents into the 
 
  webapp/WEB-INF/classes directory,
 
  check the class exists and restart

NoClassDefFoundError

2004-01-14 Thread Xavier ANDRE
Hi,

 

I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.

 

To start TOMCAT, I use these code, which is launched in my JVM :

 

String[] args = new String[]{start};

 
org.apache.tomcat.startup.Main.main(args);

 

The version of Tomcat is 3.3a. 

 

The error is :

 

?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP

 

I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?

 

Thanks

 

 



RE: NoClassDefFoundError

2004-01-14 Thread Xavier ANDRE
Please I really need help !!!

Is someone receive my mail ?
 

-Message d'origine-
De : Xavier ANDRE 
Envoyé : mercredi 14 janvier 2004 09:38
À : Tomcat Users List
Objet : NoClassDefFoundError
Importance : Haute

Hi,

 

I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.

 

To start TOMCAT, I use these code, which is launched in my JVM :

 

String[] args = new String[]{start};

 
org.apache.tomcat.startup.Main.main(args);

 

The version of Tomcat is 3.3a. 

 

The error is :

 

?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP

 

I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?

 

Thanks

 

 


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



RE: NoClassDefFoundError

2004-01-14 Thread Shapira, Yoav

Howdy,
We got your email, rest assured ;)  I noticed a couple of things:

First, the stack trace is for a ClassNotFoundException, which is very different from a 
NoClassDefFoundError that you mention in your message.  It's usually easier to fix: 
place the jar with the missing class on the classpath.

Second, you're using tomcat 3.x, which at this point in time means not many people can 
help you.  Perhaps someone will, but if you can then you should consider upgrading to 
a more recent tomcat version.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 5:36 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Please I really need help !!!

Is someone receive my mail ?


-Message d'origine-
De : Xavier ANDRE
Envoyé : mercredi 14 janvier 2004 09:38
À : Tomcat Users List
Objet : NoClassDefFoundError
Importance : Haute

Hi,



I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.



To start TOMCAT, I use these code, which is launched in my JVM :



String[] args = new String[]{start};


org.apache.tomcat.startup.Main.main(args);



The version of Tomcat is 3.3a.



The error is :



?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP



I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?



Thanks






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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError

2004-01-14 Thread Xavier ANDRE
Thank you Yaov for your answer.

I don't understand why I've got to put a jar file, since the path to acces to my 
classes is in the classpth of the JVM which launchs Tomcat.


Could you help me on that point ?


Xavier André

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 14 janvier 2004 14:40
À : Tomcat Users List
Objet : RE: NoClassDefFoundError


Howdy,
We got your email, rest assured ;)  I noticed a couple of things:

First, the stack trace is for a ClassNotFoundException, which is very different from a 
NoClassDefFoundError that you mention in your message.  It's usually easier to fix: 
place the jar with the missing class on the classpath.

Second, you're using tomcat 3.x, which at this point in time means not many people can 
help you.  Perhaps someone will, but if you can then you should consider upgrading to 
a more recent tomcat version.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 5:36 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Please I really need help !!!

Is someone receive my mail ?


-Message d'origine-
De : Xavier ANDRE
Envoyé : mercredi 14 janvier 2004 09:38
À : Tomcat Users List
Objet : NoClassDefFoundError
Importance : Haute

Hi,



I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.



To start TOMCAT, I use these code, which is launched in my JVM :



String[] args = new String[]{start};


org.apache.tomcat.startup.Main.main(args);



The version of Tomcat is 3.3a.



The error is :



?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP



I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?



Thanks






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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: NoClassDefFoundError

2004-01-14 Thread Shapira, Yoav

Howdy,
Read the classloader how-to in the tomcat documentation.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 8:45 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Thank you Yaov for your answer.

I don't understand why I've got to put a jar file, since the path to acces
to my classes is in the classpth of the JVM which launchs Tomcat.


Could you help me on that point ?


Xavier André

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 janvier 2004 14:40
À : Tomcat Users List
Objet : RE: NoClassDefFoundError


Howdy,
We got your email, rest assured ;)  I noticed a couple of things:

First, the stack trace is for a ClassNotFoundException, which is very
different from a NoClassDefFoundError that you mention in your message.
It's usually easier to fix: place the jar with the missing class on the
classpath.

Second, you're using tomcat 3.x, which at this point in time means not many
people can help you.  Perhaps someone will, but if you can then you should
consider upgrading to a more recent tomcat version.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 5:36 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Please I really need help !!!

Is someone receive my mail ?


-Message d'origine-
De : Xavier ANDRE
Envoyé : mercredi 14 janvier 2004 09:38
À : Tomcat Users List
Objet : NoClassDefFoundError
Importance : Haute

Hi,



I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.



To start TOMCAT, I use these code, which is launched in my JVM :



String[] args = new String[]{start};


org.apache.tomcat.startup.Main.main(args);



The version of Tomcat is 3.3a.



The error is :



?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP



I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?



Thanks






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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


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


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError

2004-01-14 Thread Xavier ANDRE
If I put a jar file in classpath, how can I do that ?

In which directory do I put my jar file ?
Must I modify a file ?

Xavier André
 
-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 14 janvier 2004 14:45
À : Tomcat Users List
Objet : RE: NoClassDefFoundError


Howdy,
Read the classloader how-to in the tomcat documentation.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 8:45 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Thank you Yaov for your answer.

I don't understand why I've got to put a jar file, since the path to acces
to my classes is in the classpth of the JVM which launchs Tomcat.


Could you help me on that point ?


Xavier André

-Message d'origine-
De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 14 janvier 2004 14:40
À : Tomcat Users List
Objet : RE: NoClassDefFoundError


Howdy,
We got your email, rest assured ;)  I noticed a couple of things:

First, the stack trace is for a ClassNotFoundException, which is very
different from a NoClassDefFoundError that you mention in your message.
It's usually easier to fix: place the jar with the missing class on the
classpath.

Second, you're using tomcat 3.x, which at this point in time means not many
people can help you.  Perhaps someone will, but if you can then you should
consider upgrading to a more recent tomcat version.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 5:36 AM
To: Tomcat Users List
Subject: RE: NoClassDefFoundError

Please I really need help !!!

Is someone receive my mail ?


-Message d'origine-
De : Xavier ANDRE
Envoyé : mercredi 14 janvier 2004 09:38
À : Tomcat Users List
Objet : NoClassDefFoundError
Importance : Haute

Hi,



I've got en NoClassDefFoundError when I'm calling a method of a SOAP
service which is deployed on my Tomcat Server.



To start TOMCAT, I use these code, which is launched in my JVM :



String[] args = new String[]{start};


org.apache.tomcat.startup.Main.main(args);



The version of Tomcat is 3.3a.



The error is :



?xml version='1.0' encoding='UTF-8'?

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/1999/XMLSchema;

SOAP-ENV:Body

SOAP-ENV:Fault
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode

faultstringUnable to resolve target object:
lib123.soap.sms.SmsDriverSOAP/faultstring

faultactor/soap/servlet/messagerouter//faultactor

detail

stackTracejava.lang.ClassNotFoundException:
lib123.soap.sms.SmsDriverSOAP



I don't understand why the class lib123.soap.sms.SmsDriverSOAP can't be
found since is in my JVM's classpath ?



Thanks






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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


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


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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


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



RE: NoClassDefFoundError

2004-01-14 Thread Mike Curwen
Did you read the document Yoav mentioned?
 
I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 
 If I put a jar file in classpath, how can I do that ?
 
 In which directory do I put my jar file ?
 Must I modify a file ?
 
 Xavier André
  
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 Read the classloader how-to in the tomcat documentation.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to 
 acces to my classes is in the classpth of the JVM which 
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First, the stack trace is for a ClassNotFoundException, 
 which is very 
 different from a NoClassDefFoundError that you mention in 
 your message. 
 It's usually easier to fix: place the jar with the missing 
 class on the 
 classpath.
 
 Second, you're using tomcat 3.x, which at this point in time 
 means not 
 many people can help you.  Perhaps someone will, but if you can then 
 you should consider upgrading to a more recent tomcat version.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 5:36 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Please I really need help !!!
 
 Is someone receive my mail ?
 
 
 -Message d'origine-
 De : Xavier ANDRE
 Envoyé : mercredi 14 janvier 2004 09:38
 À : Tomcat Users List
 Objet : NoClassDefFoundError
 Importance : Haute
 
 Hi,
 
 
 
 I've got en NoClassDefFoundError when I'm calling a method 
 of a SOAP 
 service which is deployed on my Tomcat Server.
 
 
 
 To start TOMCAT, I use these code, which is launched in my JVM :
 
 
 
 String[] args = new String[]{start};
 
 
 org.apache.tomcat.startup.Main.main(args);
 
 
 
 The version of Tomcat is 3.3a.
 
 
 
 The error is :
 
 
 
 ?xml version='1.0' encoding='UTF-8'?
 
 SOAP-ENV:Envelope 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
 SOAP-ENV:Body
 
 SOAP-ENV:Fault 
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
 faultstringUnable to resolve target object: 
 lib123.soap.sms.SmsDriverSOAP/faultstring
 
 faultactor/soap/servlet/messagerouter//faultactor
 
 detail
 
 stackTracejava.lang.ClassNotFoundException:
 lib123.soap.sms.SmsDriverSOAP
 
 
 
 I don't understand why the class 
 lib123.soap.sms.SmsDriverSOAP can't 
 be found since is in my JVM's classpath ?
 
 
 
 Thanks
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else.  If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you

RE: NoClassDefFoundError

2004-01-14 Thread Michael Duffy

I believe Tomcat ignores any system environment
variable CLASSPATH.

When Tomcat starts, it assumes the CLASSPATH for your
Web app consists of: 

(1) The rt.jar, of course,
(2) All the JARs in TOMCAT_HOME/common/lib, which are
visible to all apps,
(3) All the JARs in the TOMCAT_HOME/server/lib, which
are visible only to Tomcat,
(4) All the JARs in your WEB-INF/lib, which are
visible only to your app,
(5) All the .class files in your WEB-INF/classes,
which are visible only to your app.

That's it.

If your Web app needs a JAR, put it in the WEB-INF/lib
and you should be all set. - MOD


--- Mike Curwen [EMAIL PROTECTED] wrote:
 Did you read the document Yoav mentioned?
  
 I'll give a tiny push...
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
 
  -Original Message-
  From: Xavier ANDRE
 [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, January 14, 2004 11:27 AM
  To: Tomcat Users List
  Subject: RE: NoClassDefFoundError
  
  
  If I put a jar file in classpath, how can I do
 that ?
  
  In which directory do I put my jar file ?
  Must I modify a file ?
  
  Xavier André
   
  -Message d'origine-
  De : Shapira, Yoav [mailto:[EMAIL PROTECTED] 
  Envoyé : mercredi 14 janvier 2004 14:45
  À : Tomcat Users List
  Objet : RE: NoClassDefFoundError
  
  
  Howdy,
  Read the classloader how-to in the tomcat
 documentation.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Xavier ANDRE
 [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 14, 2004 8:45 AM
  To: Tomcat Users List
  Subject: RE: NoClassDefFoundError
  
  Thank you Yaov for your answer.
  
  I don't understand why I've got to put a jar
 file, since the path to 
  acces to my classes is in the classpth of the JVM
 which 
  launchs Tomcat.
  
  
  Could you help me on that point ?
  
  
  Xavier André
  
  -Message d'origine-
  De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Envoyé : mercredi 14 janvier 2004 14:40
  À : Tomcat Users List
  Objet : RE: NoClassDefFoundError
  
  
  Howdy,
  We got your email, rest assured ;)  I noticed a
 couple of things:
  
  First, the stack trace is for a
 ClassNotFoundException, 
  which is very 
  different from a NoClassDefFoundError that you
 mention in 
  your message. 
  It's usually easier to fix: place the jar with
 the missing 
  class on the 
  classpath.
  
  Second, you're using tomcat 3.x, which at this
 point in time 
  means not 
  many people can help you.  Perhaps someone will,
 but if you can then 
  you should consider upgrading to a more recent
 tomcat version.
  
  Yoav Shapira
  Millennium ChemInformatics
  
  
  -Original Message-
  From: Xavier ANDRE
 [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, January 14, 2004 5:36 AM
  To: Tomcat Users List
  Subject: RE: NoClassDefFoundError
  
  Please I really need help !!!
  
  Is someone receive my mail ?
  
  
  -Message d'origine-
  De : Xavier ANDRE
  Envoyé : mercredi 14 janvier 2004 09:38
  À : Tomcat Users List
  Objet : NoClassDefFoundError
  Importance : Haute
  
  Hi,
  
  
  
  I've got en NoClassDefFoundError when I'm
 calling a method 
  of a SOAP 
  service which is deployed on my Tomcat Server.
  
  
  
  To start TOMCAT, I use these code, which is
 launched in my JVM :
  
  
  
  String[] args = new String[]{start};
  
  
  org.apache.tomcat.startup.Main.main(args);
  
  
  
  The version of Tomcat is 3.3a.
  
  
  
  The error is :
  
  
  
  ?xml version='1.0' encoding='UTF-8'?
  
  SOAP-ENV:Envelope 
 

xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 

xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
  xmlns:xsd=http://www.w3.org/1999/XMLSchema;
  
  SOAP-ENV:Body
  
  SOAP-ENV:Fault 
 

xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  
 

faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
  
  faultstringUnable to resolve target object: 
  lib123.soap.sms.SmsDriverSOAP/faultstring
  
 

faultactor/soap/servlet/messagerouter//faultactor
  
  detail
  
  stackTracejava.lang.ClassNotFoundException:
  lib123.soap.sms.SmsDriverSOAP
  
  
  
  I don't understand why the class 
  lib123.soap.sms.SmsDriverSOAP can't 
  be found since is in my JVM's classpath ?
  
  
  
  Thanks
  
  
  
  
  
  
 


  -
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
  
  This e-mail, including any attachments, is a
 confidential business 
  communication, and may contain information that
 is confidential, 
  proprietary and/or privileged.  This e-mail is
 intended only for the
  individual(s) to whom it is addressed, and may
 not be saved, copied, 
  printed, disclosed or used by anyone else.  If
 you are not the(an) 
  intended recipient, please immediately delete
 this e-mail from your 
  computer system and notify the sender.  Thank
 you

RE: NoClassDefFoundError

2004-01-14 Thread Giuliano Gavazzi
At 11:24 am -0800 2004/01/14, Michael Duffy wrote:
I believe Tomcat ignores any system environment
variable CLASSPATH.
When Tomcat starts, it assumes the CLASSPATH for your
Web app consists of:
[...]
(3) All the JARs in the TOMCAT_HOME/server/lib, which
are visible only to Tomcat,
I am not so sure that (3) hold. While trying to get rid of an 
exception when catalina starts, I found out that the missing class 
was indeed in a jar in server/lib. Moving the jar to the Java 
extensions directory the class was finally found (in turn generating 
a fatal exception, but this is another story...).

Giuliano

Sorry to point this out again, but don't forget to trim what can be 
trimmed in replies...

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


RE: NoClassDefFoundError

2004-01-14 Thread Michael Duffy
Hi Giuliano,

You're correct.  I see now that the JARs in
TOMCAT_HOME/server/lib are specific to Tomcat, and are
not visible to applications.  Thanks for correcting
me. - MOD

...Sorry to point this out again, but don't forget to
trim what can be trimmed in replies... - I'm not sure
I know what you mean by this. 


--- Giuliano Gavazzi [EMAIL PROTECTED] wrote:
 At 11:24 am -0800 2004/01/14, Michael Duffy wrote:
 I believe Tomcat ignores any system environment
 variable CLASSPATH.
 
 When Tomcat starts, it assumes the CLASSPATH for
 your
 Web app consists of:
 [...]
 (3) All the JARs in the TOMCAT_HOME/server/lib,
 which
 are visible only to Tomcat,
 
 I am not so sure that (3) hold. While trying to get
 rid of an 
 exception when catalina starts, I found out that the
 missing class 
 was indeed in a jar in server/lib. Moving the jar to
 the Java 
 extensions directory the class was finally found (in
 turn generating 
 a fatal exception, but this is another story...).
 
 Giuliano
 
 Sorry to point this out again, but don't forget to
 trim what can be 
 trimmed in replies...
 

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


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



RE: NoClassDefFoundError

2004-01-14 Thread Shapira, Yoav

Howdy,

...Sorry to point this out again, but don't forget to
trim what can be trimmed in replies... - I'm not sure
I know what you mean by this.

He means basic mailing list etiquette, which I've long since given up
for this list :(  See the should I quote question here, for example:
http://www.gweep.ca/~edmonds/usenet/ml-etiquette.html#SECTION0004000
0

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError

2004-01-14 Thread Michael Duffy

Sorry if I botched it.  If I did, it was inadvertent.
- Sincerely, MOD

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 
 ...Sorry to point this out again, but don't forget
 to
 trim what can be trimmed in replies... - I'm not
 sure
 I know what you mean by this.
 
 He means basic mailing list etiquette, which I've
 long since given up
 for this list :(  See the should I quote question
 here, for example:

http://www.gweep.ca/~edmonds/usenet/ml-etiquette.html#SECTION0004000
 0
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

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


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



Re: NoClassDefFoundError

2004-01-14 Thread Bill Barker
Actually, since he is using TC 3.3, the correct link is:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_classes.

However, it is similar to the TC 4 structure, just with different directory
names :).

Mike Curwen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you read the document Yoav mentioned?

I'll give a tiny push...

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 11:27 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError


 If I put a jar file in classpath, how can I do that ?

 In which directory do I put my jar file ?
 Must I modify a file ?

 Xavier André

 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:45
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError


 Howdy,
 Read the classloader how-to in the tomcat documentation.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 8:45 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Thank you Yaov for your answer.
 
 I don't understand why I've got to put a jar file, since the path to
 acces to my classes is in the classpth of the JVM which
 launchs Tomcat.
 
 
 Could you help me on that point ?
 
 
 Xavier André
 
 -Message d'origine-
 De : Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 14 janvier 2004 14:40
 À : Tomcat Users List
 Objet : RE: NoClassDefFoundError
 
 
 Howdy,
 We got your email, rest assured ;)  I noticed a couple of things:
 
 First, the stack trace is for a ClassNotFoundException,
 which is very
 different from a NoClassDefFoundError that you mention in
 your message.
 It's usually easier to fix: place the jar with the missing
 class on the
 classpath.
 
 Second, you're using tomcat 3.x, which at this point in time
 means not
 many people can help you.  Perhaps someone will, but if you can then
 you should consider upgrading to a more recent tomcat version.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Xavier ANDRE [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 14, 2004 5:36 AM
 To: Tomcat Users List
 Subject: RE: NoClassDefFoundError
 
 Please I really need help !!!
 
 Is someone receive my mail ?
 
 
 -Message d'origine-
 De : Xavier ANDRE
 Envoyé : mercredi 14 janvier 2004 09:38
 À : Tomcat Users List
 Objet : NoClassDefFoundError
 Importance : Haute
 
 Hi,
 
 
 
 I've got en NoClassDefFoundError when I'm calling a method
 of a SOAP
 service which is deployed on my Tomcat Server.
 
 
 
 To start TOMCAT, I use these code, which is launched in my JVM :
 
 
 
 String[] args = new String[]{start};
 
 
 org.apache.tomcat.startup.Main.main(args);
 
 
 
 The version of Tomcat is 3.3a.
 
 
 
 The error is :
 
 
 
 ?xml version='1.0' encoding='UTF-8'?
 
 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/1999/XMLSchema;
 
 SOAP-ENV:Body
 
 SOAP-ENV:Fault
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 
 faultcodeSOAP-ENV:Server.BadTargetObjectURI/faultcode
 
 faultstringUnable to resolve target object:
 lib123.soap.sms.SmsDriverSOAP/faultstring
 
 faultactor/soap/servlet/messagerouter//faultactor
 
 detail
 
 stackTracejava.lang.ClassNotFoundException:
 lib123.soap.sms.SmsDriverSOAP
 
 
 
 I don't understand why the class
 lib123.soap.sms.SmsDriverSOAP can't
 be found since is in my JVM's classpath ?
 
 
 
 Thanks
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 This e-mail, including any attachments, is a confidential
 business communication, and may contain information that is
 confidential, proprietary and/or privileged.  This e-mail is
 intended only for the individual(s) to whom it is addressed,
 and may not be saved, copied, printed, disclosed

RE: NoClassDefFoundError : Digester

2004-01-06 Thread Hume, John - NA US HQ Delray
No webapps can see any JARs in server/lib.  I'm not familiar with Balancer,
but I would guess Digester will need to move to common/lib.

-john.


-Original Message-
From: 29djeo [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError : Digester


I set up Tomcat successfully but when I added the following to my server.xml
file I get NoClassDefFoundError from tomcat:

  Host name=www.mydomain1.com debug=0
 appBase=webapps 
 unpackWARs=true autoDeploy=true

Context path= docBase=mydomain1 debug=1/

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=mydomain1_access_log.
suffix=.txt
 pattern=common resolveHosts=false/
/Host


from the catalina_log file (note I do have commons-digester.jar in the
server/lib directory):

2004-01-05 16:19:52 StandardContext[/balancer]Exception starting filter
BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
at
org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at
org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:272)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:355)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
fig.java:126)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36
46)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
66)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:316)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723
)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


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



RE: NoClassDefFoundError : Digester

2004-01-06 Thread Shapira, Yoav

Howdy,
The balancer webapp requires digester.  In the default setup, balancer
is a privileged webapp, so it can and does use the copy of digester in
server/lib (what Mr. Hume said is wrong).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hume, John - NA US HQ Delray [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 5:14 PM
To: 'Tomcat Users List'
Subject: RE: NoClassDefFoundError : Digester

No webapps can see any JARs in server/lib.  I'm not familiar with
Balancer,
but I would guess Digester will need to move to common/lib.

-john.


-Original Message-
From: 29djeo [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 4:29 PM
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError : Digester


I set up Tomcat successfully but when I added the following to my
server.xml
file I get NoClassDefFoundError from tomcat:

  Host name=www.mydomain1.com debug=0
 appBase=webapps
 unpackWARs=true autoDeploy=true

   Context path= docBase=mydomain1 debug=1/

   Valve
className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=mydomain1_access_log.
suffix=.txt
 pattern=common resolveHosts=false/
   /Host


from the catalina_log file (note I do have commons-digester.jar in the
server/lib directory):

2004-01-05 16:19:52 StandardContext[/balancer]Exception starting filter
BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
   at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
107)
   at
org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
   at
org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
   at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
ilte
r
Config.java:272)
   at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
onFi
l
terConfig.java:355)
   at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
erCo
n
fig.java:126)
   at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
va:3
6
46)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:426
3)
   at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
8
66)
   at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
   at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
   at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
j
ava:316)
   at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
   at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
a:72
3
)
   at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
   at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
   at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
93)
   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
r
t.java:166)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:519
)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9
)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l
.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



NoClassDefFoundError : Digester

2004-01-05 Thread 29djeo
I set up Tomcat successfully but when I added the following to my server.xml file I 
get NoClassDefFoundError from tomcat:

  Host name=www.mydomain1.com debug=0
 appBase=webapps 
 unpackWARs=true autoDeploy=true

Context path= docBase=mydomain1 debug=1/

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=mydomain1_access_log. suffix=.txt
 pattern=common resolveHosts=false/
/Host


from the catalina_log file (note I do have commons-digester.jar in the server/lib 
directory):

2004-01-05 16:19:52 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



RE: NoClassDefFoundError: Digester

2003-12-24 Thread 29djeo

apparently I have several.  It looks like two came with redhat linux. one in 
/usr/share/java/commons-digester-1.5/ and 1 in usr/local/commons-digester-1.5


   ---Original Message---
From: Shapira, Yoav [EMAIL PROTECTED]
Subject: RE: NoClassDefFoundError: Digester
Sent: 22 Dec 2003 10:25:05
   
 Howdy,
 You need the commons-digester library to use the balancer webapp.
 There's a copy in $CATALINA_HOME/server/lib if you can't find one.
 However, your specific error is NOT a ClassNotFoundException.  It
 indicates a different version of the Digester library is on the runtime
 classpath.  Have you download a different Digester version, or maybe
 have one within your IDE?  It's tough to tell more without any context
 as to when/where you're getting the exception.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: 29djeo [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 20, 2003 8:07 PM
 To: [EMAIL PROTECTED]
 Subject: NoClassDefFoundError: Digester
 
 what does this mean?
 
 2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter
 BalancerFilter
 java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
 at
 org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
 107)
 at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
 at
 org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
 at
 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
 ilte
 rConfig.java:272)
 at
 org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
 onFi
 lterConfig.java:355)
 at
 org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
 erCo
 nfig.java:126)
 at
 org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
 va:3
 646)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:426
 3)
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
 ava:
 866)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 at
 org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 yer.
 java:316)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
 at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
 a:72
 3)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
 93)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
 uppo
 rt.java:166)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:3
 9)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImp
 l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
 
 
 
 This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.
   ---Original Message---




RE: NoClassDefFoundError: Digester

2003-12-24 Thread Shapira, Yoav

Howdy,

apparently I have several. It looks like two came with redhat linux.
one in /usr/share/java/commons-digester-1.5/ and 1 in
usr/local/commons-digester-1.5

But these aren't part of your tomcat installation.  What digester jars
do you have under $CATALINA_HOME?

Yoav Shapira


---Original Message---
 From: Shapira, Yoav [EMAIL PROTECTED]
 Subject: RE: NoClassDefFoundError: Digester
 Sent: 22 Dec 2003 10:25:05

 Howdy,
 You need the commons-digester library to use the balancer webapp.
 There's a copy in $CATALINA_HOME/server/lib if you can't find one.
 However, your specific error is NOT a ClassNotFoundException. It
 indicates a different version of the Digester library is on the
runtime
 classpath. Have you download a different Digester version, or maybe
 have one within your IDE? It's tough to tell more without any context
 as to when/where you're getting the exception.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: 29djeo [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 20, 2003 8:07 PM
 To: [EMAIL PROTECTED]
 Subject: NoClassDefFoundError: Digester
 
 what does this mean?
 
 2003-12-20 14:43:11 StandardContext[/balancer]Exception starting
filter
 BalancerFilter
 java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
 at

org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
 107)
 at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
 at

org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
 at

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
 ilte
 rConfig.java:272)
 at

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
 onFi
 lterConfig.java:355)
 at

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
 erCo
 nfig.java:126)
 at

org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
 va:3
 646)
 at

org.apache.catalina.core.StandardContext.start(StandardContext.java:426
 3)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
 ava:
 866)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
 at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
 at

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
 yer.
 java:316)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
 at

org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
 a:72
 3)
 at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
 at

org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
 93)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
 uppo
 rt.java:166)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at

org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 va:3
 9)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 rImp
 l.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged. This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else. If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender. Thank you.
---Original Message---




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: NoClassDefFoundError: Digester

2003-12-22 Thread Shapira, Yoav

Howdy,
You need the commons-digester library to use the balancer webapp.
There's a copy in $CATALINA_HOME/server/lib if you can't find one.
However, your specific error is NOT a ClassNotFoundException.  It
indicates a different version of the Digester library is on the runtime
classpath.  Have you download a different Digester version, or maybe
have one within your IDE?  It's tough to tell more without any context
as to when/where you're getting the exception.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: 29djeo [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 20, 2003 8:07 PM
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError: Digester

what does this mean?

2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter
BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at
org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:
107)
at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at
org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationF
ilte
rConfig.java:272)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicati
onFi
lterConfig.java:355)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilt
erCo
nfig.java:126)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.ja
va:3
646)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:426
3)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
ava:
866)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
yer.
java:316)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
a:72
3)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
93)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
uppo
rt.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



NoClassDefFoundError: Digester

2003-12-20 Thread 29djeo
what does this mean?

2003-12-20 14:43:11 StandardContext[/balancer]Exception starting filter BalancerFilter
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at org.apache.webapp.balancer.RulesParser.createDigester(RulesParser.java:107)
at org.apache.webapp.balancer.RulesParser.init(RulesParser.java:85)
at org.apache.webapp.balancer.BalancerFilter.init(BalancerFilter.java:121)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:272)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:355)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:126)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3646)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4263)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:723)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:393)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)


JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
Hi,
(B
(BI am trying Tomcat 5.0.16 with mod_jk2v2.0.2, Apache 2.0.47 on Fodora
(BLinux Core1.
(B
(BWhen I start Tomcat without -security, I have no problem.
(BWhen I start Tomcat with -security and I use
(Bdomain_name:8080/servlet/ListRoomsServlet, again I have no problem
(B(ListRoomsServlet is the servlet I am trying).
(B
(BWhen I start Tomcat with -security and use
(Bdomain_name/servlet/ListRoomsServlet, I have the next error message:
(B
(Bexception
(B
(Bjavax.servlet.ServletException: org/apache/tomcat/util/http/HttpMessages
(Borg.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324)
(Borg.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
(B
(B
(Broot cause
(B
(Bjava.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages
(Borg.apache.jk.server.JkCoyoteHandler.appendHead(JkCoyoteHandler.java:350)
(Borg.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:402)
(Borg.apache.coyote.Response.action(Response.java:226)
(Borg.apache.coyote.Response.sendHeaders(Response.java:418)
(Borg.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:240)
(Borg.apache.coyote.Response.doWrite(Response.java:586)
(Borg.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:405)
(Borg.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
(Borg.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:361)
(Borg.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325)
(Borg.apache.coyote.tomcat5.CoyoteWriter.close(CoyoteWriter.java:130)
(BListRoomsServlet.doGet(ListRoomsServlet.java:714)
(Bjavax.servlet.http.HttpServlet.service(HttpServlet.java:743)
(Bjavax.servlet.http.HttpServlet.service(HttpServlet.java:856)
(Bsun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
(Bsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
(B
(Bsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
(Bjava.lang.reflect.Method.invoke(Method.java:324)
(Borg.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
(Bjava.security.AccessController.doPrivileged(Native Method)
(Bjavax.security.auth.Subject.doAsPrivileged(Subject.java:500)
(Borg.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
(Borg.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
(B
(BIs there something I might forget to add to classpath or to add conf/catalina.policy?
(BThank you in advance.
(B
(BSam
(B
(B
(B
(B-
(BTo unsubscribe, e-mail: [EMAIL PROTECTED]
(BFor additional commands, e-mail: [EMAIL PROTECTED]

RE: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread Yansheng Lin
Hi, 

You got it working yet?  It seems you are having trouble using apache as the
server.  You said when you use domainname:8080/something, you can see the pages,
but not domainname/something.  That's because  Tomcat is serving the pages
instead of Apache.

I need to go home to test this on Fedora, but in your conf/workers2.properties
file, you need to specify a connection between apache and tomcat, much like the
example from the other thread:


[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0


Hope this helps.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: JK2 and NoClassDefFoundError of HttpMessages


Hi,

I am trying Tomcat 5.0.16 with mod_jk2v2.0.2, Apache 2.0.47 on Fodora
Linux Core1.

When I start Tomcat without -security, I have no problem.
When I start Tomcat with -security and I use
domain_name:8080/servlet/ListRoomsServlet, again I have no problem
(ListRoomsServlet is the servlet I am trying).

When I start Tomcat with -security and use
domain_name/servlet/ListRoomsServlet, I have the next error message:

exception

javax.servlet.ServletException: org/apache/tomcat/util/http/HttpMessages
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)


root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages

org.apache.jk.server.JkCoyoteHandler.appendHead(JkCoyoteHandler.java:350)
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:402)
org.apache.coyote.Response.action(Response.java:226)
org.apache.coyote.Response.sendHeaders(Response.java:418)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:240)
org.apache.coyote.Response.doWrite(Response.java:586)

org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:405)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:361)
org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325)
org.apache.coyote.tomcat5.CoyoteWriter.close(CoyoteWriter.java:130)
ListRoomsServlet.doGet(ListRoomsServlet.java:714)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)

Is there something I might forget to add to classpath or to add
conf/catalina.policy?
Thank you in advance.

Sam



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


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



Re: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
Thank you for reply.
I found that Tomcat servlet examples work with -security option on Fedora.
So my web application should work with -security option.
After I load Tomcat servlet examples first, I can immediately see my web 
application from my browser.
But when I try to load my web application first, I cannot see it and get 
the error message.
There is something wrong for the configuration of my web application.

I hope I will find the problem.

Sam



Yansheng Lin wrote:

Hi, 

You got it working yet?  It seems you are having trouble using apache as the
server.  You said when you use domainname:8080/something, you can see the pages,
but not domainname/something.  That's because  Tomcat is serving the pages
instead of Apache.
I need to go home to test this on Fedora, but in your conf/workers2.properties
file, you need to specify a connection between apache and tomcat, much like the
example from the other thread:

[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0

Hope this helps.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 12, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: JK2 and NoClassDefFoundError of HttpMessages

Hi,

I am trying Tomcat 5.0.16 with mod_jk2v2.0.2, Apache 2.0.47 on Fodora
Linux Core1.
When I start Tomcat without -security, I have no problem.
When I start Tomcat with -security and I use
domain_name:8080/servlet/ListRoomsServlet, again I have no problem
(ListRoomsServlet is the servlet I am trying).
When I start Tomcat with -security and use
domain_name/servlet/ListRoomsServlet, I have the next error message:
exception

javax.servlet.ServletException: org/apache/tomcat/util/http/HttpMessages
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages

org.apache.jk.server.JkCoyoteHandler.appendHead(JkCoyoteHandler.java:350)
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:402)
org.apache.coyote.Response.action(Response.java:226)
org.apache.coyote.Response.sendHeaders(Response.java:418)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:240)
org.apache.coyote.Response.doWrite(Response.java:586)

org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:405)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:361)
org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325)
org.apache.coyote.tomcat5.CoyoteWriter.close(CoyoteWriter.java:130)
ListRoomsServlet.doGet(ListRoomsServlet.java:714)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200)
Is there something I might forget to add to classpath or to add
conf/catalina.policy?
Thank you in advance.
Sam



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


 



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


Re: JK2 and NoClassDefFoundError of HttpMessages

2003-12-12 Thread [EMAIL PROTECTED]
I found the cause: around the end of my servlet, I had put

out.close();

(where out is PrintWriter object obtained from response)

I deleted out.close(), and now my servlet works with -security even if
I load the servlet first.
I did not have this problem with Tomcat 4.x. It was strange, but
sometimes occurs at upgrade of application servers.
Sam

[EMAIL PROTECTED] wrote:

Thank you for reply.
I found that Tomcat servlet examples work with -security option on 
Fedora.
So my web application should work with -security option.

After I load Tomcat servlet examples first, I can immediately see my 
web application from my browser.
But when I try to load my web application first, I cannot see it and 
get the error message.
There is something wrong for the configuration of my web application.

I hope I will find the problem.

Sam



Yansheng Lin wrote:

Hi,
You got it working yet? It seems you are having trouble using apache 
as the
server. You said when you use domainname:8080/something, you can see 
the pages,
but not domainname/something. That's because Tomcat is serving the pages
instead of Apache.

I need to go home to test this on Fedora, but in your 
conf/workers2.properties
file, you need to specify a connection between apache and tomcat, 
much like the
example from the other thread:


[uri:/examples/*]
info=tomcat examples
context=/examples
worker=ajp13:localhost:8009
debug=0

Hope this helps.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 
Friday, December 12, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: JK2 and NoClassDefFoundError of HttpMessages

Hi,

I am trying Tomcat 5.0.16 with mod_jk2v2.0.2, Apache 2.0.47 on Fodora
Linux Core1.
When I start Tomcat without -security, I have no problem.
When I start Tomcat with -security and I use
domain_name:8080/servlet/ListRoomsServlet, again I have no problem
(ListRoomsServlet is the servlet I am trying).
When I start Tomcat with -security and use
domain_name/servlet/ListRoomsServlet, I have the next error message:
exception

javax.servlet.ServletException: org/apache/tomcat/util/http/HttpMessages
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:324)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200) 



root cause

java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages

org.apache.jk.server.JkCoyoteHandler.appendHead(JkCoyoteHandler.java:350) 

org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:402)
org.apache.coyote.Response.action(Response.java:226)
org.apache.coyote.Response.sendHeaders(Response.java:418)
org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:240)
org.apache.coyote.Response.doWrite(Response.java:586)
org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:405) 

org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428)
org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:361)
org.apache.coyote.tomcat5.OutputBuffer.close(OutputBuffer.java:325)
org.apache.coyote.tomcat5.CoyoteWriter.close(CoyoteWriter.java:130)
ListRoomsServlet.doGet(ListRoomsServlet.java:714)
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav 

a:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200) 

Is there something I might forget to add to classpath or to add
conf/catalina.policy?
Thank you in advance.
Sam



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






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




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


NoClassDefFoundError happens only on Tomcat 4.0.2 on Sun Solaris, not on Windows.

2003-08-02 Thread Meng-Wei Tsai
Hi,

I have a program using third party Web Services
implementation, which internally needs to load
javax.xml.namespace.QName. This class is in some of
the jar files( jaxrpc.jar, wsdl4j.jar, and
jaxrpc-api.jar ) under WEB-INF/lib.

When I deploy the app to my local Tomcat 4.0.4 on 
Windows 2000 machine, it works fine. But when I deploy
it to our test server, which runs Tomcat 4.0.2 with
apache as front-end on Sun Solaris 8, it gave the
following error:

java.lang.NoClassDefFoundError:
javax/xml/namespace/QName
at
com.cognos.developer.iPowerPlayA.WebService_Impl.clinit(WebService_Impl.java:17)
at
com.nsc.pfp.bs.AspChannelsViewBS.getAspChannelsViewData(AspChannelsViewBS.java:38)
at
com.nsc.pfp.bd.AspChannelsViewBD.prepareChannelsView(AspChannelsViewBD.java:58)
at
com.nsc.pfp.bd.MetricsBD.processAspChannelsView(MetricsBD.java:145)
at
com.nsc.pfp.action.MetricsAspViewAction.doProcess(MetricsAspViewAction.java:70)
at
com.nsc.pfp.action.MetricsAspViewAction.doDisplayBody(MetricsAspViewAction.java:77)
at
com.nsc.pfp.action.MetricsAspViewAction.executeAction(MetricsAspViewAction.java:48)
at
com.nsc.pfp.action.PfpBaseAction.execute(PfpBaseAction.java:49)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
net.covalent.spider.product.servlet.filter.JMXFilter.doFilter(JMXFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:484)

I thought this may be caused by duplicated classes in
different jar files, so I make sure only one jar file
contains it( both on my application and the server
common/shared lib ). But it still gives the same error
on our test server, not on my local.

I also try to extract the content of the jar files,
and 

[REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:536)




-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 2:23 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat-user filter

Does this mailing list filter words like NoClassDefFoundError or security?
The message that I was posting never gets to the list.

 

Regards,

 

 

 

PQ

 

The difference between 'involvement' and 'commitment'

is like an eggs-and-ham breakfast: the chicken was

'involved' - the pig was 'committed'.

 



Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread John Turner
)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav 

a:619)
at java.lang.Thread.run(Thread.java:536)


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: June 23, 2003 
2:23 PM
To: '[EMAIL PROTECTED]'
Subject: tomcat-user filter

Does this mailing list filter words like NoClassDefFoundError or 
security?
The message that I was posting never gets to the list.



Regards,







PQ



The difference between 'involvement' and 'commitment'

is like an eggs-and-ham breakfast: the chicken was

'involved' - the pig was 'committed'.






--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
The exception that I posted is root cause. The exception is 

javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter
Chain.java:98)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain
.java:176)
..

I solved this problem by including a grant entry

grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar {
  permission java.security.AllPermission;
};

But I am wondering if this AllPermission is secure enough or I am opening
more holes.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 2:34 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError


Is there a part in your error message that says Root Cause?  If so, what 
is it?

John

On Mon, 23 Jun 2003 14:24:36 -0400, Phillip Qin 
[EMAIL PROTECTED] wrote:

 Don't know if this mailing list filters my post, try it again.

 I am frustrated. I have a webapp developed by struts. If I start Tomcat
 without security manager, everything works fine. I can access
 https://myhost.mydomain.com/myapp/mylink.do?myparam=myvalue.

 After I start Tomcat -security and access the above link, I got the
 following error. There is an index.jsp. When some one type
 https://myhost.mydomain.com/myapp, this index.jsp will redirect him to 
 the
 home page. It is simply a META refresh. The frustration is, if I access
 https://myhost.mydomain.com/myapp once, then I can always access
 https://myhost.mydomain.com/myapp/mylink.do?myparam=myvalue. I suspect 
 there
 are permission that I need to grant in Catalina.policy.

 Any input?

 java.lang.NoClassDefFoundError:
 org/apache/coyote/tomcat4/CoyoteRequest$PrivilegedGetSession
   at

org.apache.coyote.tomcat4.CoyoteRequest.getSession(CoyoteRequest.java:1728) 


   at

org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade



 .java:365)
   at

org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade



 .java:375)
   at

org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.jav



 a:631)
   at

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)



   at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
   at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:506)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application



 FilterChain.java:247)
   at

org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter



 Chain.java:98)
   at

org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain



 .java:176)
   at java.security.AccessController.doPrivileged(Native Method)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh



 ain.java:172)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja



 va:256)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:643)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 


   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja



 va:191)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:643)
   at

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2



 46)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:641)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 


   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)



   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180



 )
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:643)
   at

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.



 java:171)
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:641)
   at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172



 )
   at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok



 eNext(StandardPipeline.java:641

Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Jason Bainbridge
On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
 I solved this problem by including a grant entry

 grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar {
   permission java.security.AllPermission;
 };

Why isn't it in WEB-INF/lib ? That is probably why you had to add that grant 
entry as it isn't the usual place to store jar files.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
Typo, it is WEB-INF/lib.

When there is no grant entry for this jar, tomcat throws
NoClassDefFoundError.

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 2:44 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
 I solved this problem by including a grant entry

 grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar {
   permission java.security.AllPermission;
 };

Why isn't it in WEB-INF/lib ? That is probably why you had to add that grant

entry as it isn't the usual place to store jar files.

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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


Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread John Turner
Good eye, Jason.

John

On Tue, 24 Jun 2003 02:43:59 +0800, Jason Bainbridge [EMAIL PROTECTED] 
wrote:

On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
I solved this problem by including a grant entry

grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar 
{
  permission java.security.AllPermission;
};
Why isn't it in WEB-INF/lib ? That is probably why you had to add that 
grant entry as it isn't the usual place to store jar files.

Regards,


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Jason Bainbridge
What other struts.jar files have you got laying around? Have you maybe got one 
in common/lib? I'm not sure why setting a grant like that would make a 
NoClassDefFoundError go away, maybe it tricks the classloader into looking at 
a specific class somehow.

Either way I don't think you have fixed the problem it just appears you 
have...

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 02:46, Phillip Qin wrote:
 Typo, it is WEB-INF/lib.

 When there is no grant entry for this jar, tomcat throws
 NoClassDefFoundError.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: June 23, 2003 2:44 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
  I solved this problem by including a grant entry
 
  grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar {
    permission java.security.AllPermission;
  };

 Why isn't it in WEB-INF/lib ? That is probably why you had to add that
 grant

 entry as it isn't the usual place to store jar files.

 Regards,


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



RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Shapira, Yoav

Howdy,
The curious part about the stack trace is the doPrivileged throwing the exception.  
Are you using JAAS or a custom realm to do your authentication?  If so, are you sure 
this realm is properly configured?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 2:53 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

What other struts.jar files have you got laying around? Have you maybe got
one
in common/lib? I'm not sure why setting a grant like that would make a
NoClassDefFoundError go away, maybe it tricks the classloader into looking
at
a specific class somehow.

Either way I don't think you have fixed the problem it just appears you
have...

Regards,
--
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 02:46, Phillip Qin wrote:
 Typo, it is WEB-INF/lib.

 When there is no grant entry for this jar, tomcat throws
 NoClassDefFoundError.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: June 23, 2003 2:44 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
  I solved this problem by including a grant entry
 
  grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar
{
    permission java.security.AllPermission;
  };

 Why isn't it in WEB-INF/lib ? That is probably why you had to add that
 grant

 entry as it isn't the usual place to store jar files.

 Regards,


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread John Turner
NoClassDefFound is not the same as ClassNotFound...NoClassDefFound 
typically means Tomcat is confused about which class you want it to use.  I 
agree with Jason, I think you have a couple struts.jar files around, and 
Tomcat isn't sure which one to use.

John

On Mon, 23 Jun 2003 14:46:44 -0400, Phillip Qin 
[EMAIL PROTECTED] wrote:

Typo, it is WEB-INF/lib.

When there is no grant entry for this jar, tomcat throws
NoClassDefFoundError.
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: June 23, 2003 
2:44 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
I solved this problem by including a grant entry

grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar 
{
  permission java.security.AllPermission;
};
Why isn't it in WEB-INF/lib ? That is probably why you had to add that 
grant

entry as it isn't the usual place to store jar files.

Regards,


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
1. There is no struts installation at all outside Catalina directories on
this production box.
2. There are two webapps using struts, but struts.jars are located in
webapps/myapp1/WEB-INF/lib and webapps/myapp2/WEB-INF/lib respectively.
3. No environment variables set for struts.jars so I assume tomcat
classloader should take care of them.

To Yoav:

I start Tomcat with -security option. Tomcat will use Catalina.policy to
manage the permissions. I don't use JAAS or realm at all (realms were
cleaned up in server.xml).

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 3:01 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError


NoClassDefFound is not the same as ClassNotFound...NoClassDefFound 
typically means Tomcat is confused about which class you want it to use.  I 
agree with Jason, I think you have a couple struts.jar files around, and 
Tomcat isn't sure which one to use.

John

On Mon, 23 Jun 2003 14:46:44 -0400, Phillip Qin 
[EMAIL PROTECTED] wrote:

 Typo, it is WEB-INF/lib.

 When there is no grant entry for this jar, tomcat throws
 NoClassDefFoundError.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: June 23, 2003 
 2:44 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
 I solved this problem by including a grant entry

 grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar 
 {
   permission java.security.AllPermission;
 };

 Why isn't it in WEB-INF/lib ? That is probably why you had to add that 
 grant

 entry as it isn't the usual place to store jar files.

 Regards,



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Shapira, Yoav

Howdy,
Is your catalina.policy the default or modified?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 3:10 PM
To: 'Tomcat Users List'
Subject: RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

1. There is no struts installation at all outside Catalina directories on
this production box.
2. There are two webapps using struts, but struts.jars are located in
webapps/myapp1/WEB-INF/lib and webapps/myapp2/WEB-INF/lib respectively.
3. No environment variables set for struts.jars so I assume tomcat
classloader should take care of them.

To Yoav:

I start Tomcat with -security option. Tomcat will use Catalina.policy to
manage the permissions. I don't use JAAS or realm at all (realms were
cleaned up in server.xml).

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: June 23, 2003 3:01 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError


NoClassDefFound is not the same as ClassNotFound...NoClassDefFound
typically means Tomcat is confused about which class you want it to use.  I
agree with Jason, I think you have a couple struts.jar files around, and
Tomcat isn't sure which one to use.

John

On Mon, 23 Jun 2003 14:46:44 -0400, Phillip Qin
[EMAIL PROTECTED] wrote:

 Typo, it is WEB-INF/lib.

 When there is no grant entry for this jar, tomcat throws
 NoClassDefFoundError.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED] Sent: June 23, 2003
 2:44 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
 I solved this problem by including a grant entry

 grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar
 {
   permission java.security.AllPermission;
 };

 Why isn't it in WEB-INF/lib ? That is probably why you had to add that
 grant

 entry as it isn't the usual place to store jar files.

 Regards,



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
I even deleted server/webapps which contains struts.jar for admin
application.

To Yoav:

I modified Catalina default policy file to allow log4j writing to files and
myapps sending out emails and connecting to credit card processing company.

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 2:53 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

What other struts.jar files have you got laying around? Have you maybe got
one 
in common/lib? I'm not sure why setting a grant like that would make a 
NoClassDefFoundError go away, maybe it tricks the classloader into looking
at 
a specific class somehow.

Either way I don't think you have fixed the problem it just appears you 
have...

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 02:46, Phillip Qin wrote:
 Typo, it is WEB-INF/lib.

 When there is no grant entry for this jar, tomcat throws
 NoClassDefFoundError.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: June 23, 2003 2:44 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 On Tue, 24 Jun 2003 02:41, Phillip Qin wrote:
  I solved this problem by including a grant entry
 
  grant codeBase file:${catalina.home}/webapps/myapp/WEB-INF/struts.jar
{
    permission java.security.AllPermission;
  };

 Why isn't it in WEB-INF/lib ? That is probably why you had to add that
 grant

 entry as it isn't the usual place to store jar files.

 Regards,


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


Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Jason Bainbridge
Was just doing a bit of reading:

http://jakarta.apache.org/struts/userGuide/installation.html

Running Struts Applications Under A Security Manager

Many application servers execute web applications under the control of a Java 
security manager, with restricted permissions on what classes in the web 
application can do. If you utilize form beans with mapped properties, you may 
encounter security exceptions unless you add the following permission to the 
set of permissions granted to your Struts application's codebase:

permission java.lang.RuntimePermission accessDeclaredMembers;

It still seems strange though that it was throwing a NoClassDefFoundError, can 
you maybe try the above as an alternative fix and see if that resolves the 
problem?

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 03:30, Phillip Qin wrote:
 I even deleted server/webapps which contains struts.jar for admin
 application.

 To Yoav:

 I modified Catalina default policy file to allow log4j writing to files and
 myapps sending out emails and connecting to credit card processing company.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: June 23, 2003 2:53 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 What other struts.jar files have you got laying around? Have you maybe got
 one
 in common/lib? I'm not sure why setting a grant like that would make a
 NoClassDefFoundError go away, maybe it tricks the classloader into looking
 at
 a specific class somehow.

 Either way I don't think you have fixed the problem it just appears you
 have...

 Regards,

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



RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
I have already added that one, plus

- ReflectPermission suppressAccessChecks for a commons-beanutils bug
- FilePermission for log4j

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

Was just doing a bit of reading:

http://jakarta.apache.org/struts/userGuide/installation.html

Running Struts Applications Under A Security Manager

Many application servers execute web applications under the control of a
Java 
security manager, with restricted permissions on what classes in the web 
application can do. If you utilize form beans with mapped properties, you
may 
encounter security exceptions unless you add the following permission to the

set of permissions granted to your Struts application's codebase:

permission java.lang.RuntimePermission accessDeclaredMembers;

It still seems strange though that it was throwing a NoClassDefFoundError,
can 
you maybe try the above as an alternative fix and see if that resolves the 
problem?

Regards,
-- 
Jason Bainbridge
http://jblinux.org

On Tue, 24 Jun 2003 03:30, Phillip Qin wrote:
 I even deleted server/webapps which contains struts.jar for admin
 application.

 To Yoav:

 I modified Catalina default policy file to allow log4j writing to files
and
 myapps sending out emails and connecting to credit card processing
company.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: June 23, 2003 2:53 PM
 To: Tomcat Users List
 Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

 What other struts.jar files have you got laying around? Have you maybe got
 one
 in common/lib? I'm not sure why setting a grant like that would make a
 NoClassDefFoundError go away, maybe it tricks the classloader into looking
 at
 a specific class somehow.

 Either way I don't think you have fixed the problem it just appears you
 have...

 Regards,

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


Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Jean-Francois Arcand
Hi,

that's a bug in Tomcat. You should not received that exception, which 
means that the classloader is unable to load some package protected 
classes. The 
org/apache/coyote/tomcat4/CoyoteRequest$PrivilegedGetSession needs to be 
loaded when Tomcat starts, not when you do your first invokation (Tomcat 
5 handles the current case).

Which Tomcat version are you using (4.1.?)?

-- Jeanfrancois

Phillip Qin wrote:

I have already added that one, plus

- ReflectPermission suppressAccessChecks for a commons-beanutils bug
- FilePermission for log4j
-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

Was just doing a bit of reading:

http://jakarta.apache.org/struts/userGuide/installation.html

Running Struts Applications Under A Security Manager

Many application servers execute web applications under the control of a
Java 
security manager, with restricted permissions on what classes in the web 
application can do. If you utilize form beans with mapped properties, you
may 
encounter security exceptions unless you add the following permission to the

set of permissions granted to your Struts application's codebase:

permission java.lang.RuntimePermission accessDeclaredMembers;

It still seems strange though that it was throwing a NoClassDefFoundError,
can 
you maybe try the above as an alternative fix and see if that resolves the 
problem?

Regards,
 



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


RE: [REPOST]Tomcat with security manager + NoClassDefFoundError

2003-06-23 Thread Phillip Qin
Apache 2.0.46, tomcat 4.1.24 and jk2 connector, struts-1.1-rc2

In my original posting, I said I am frustrated because,

- if I start index.jsp first which is simply a meta refresh, I didn't
receive the exception, and then I can access .../mylink.do?... from browser.
- if I access .../mylink.do?... first, I got this error.

I looked into catalina.out, there was no permission exception.
 
-Original Message-
From: Jean-Francois Arcand [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 4:42 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

Hi,

that's a bug in Tomcat. You should not received that exception, which 
means that the classloader is unable to load some package protected 
classes. The 
org/apache/coyote/tomcat4/CoyoteRequest$PrivilegedGetSession needs to be 
loaded when Tomcat starts, not when you do your first invokation (Tomcat 
5 handles the current case).

Which Tomcat version are you using (4.1.?)?

-- Jeanfrancois

Phillip Qin wrote:

I have already added that one, plus

- ReflectPermission suppressAccessChecks for a commons-beanutils bug
- FilePermission for log4j

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: June 23, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: [REPOST]Tomcat with security manager + NoClassDefFoundError

Was just doing a bit of reading:

http://jakarta.apache.org/struts/userGuide/installation.html

Running Struts Applications Under A Security Manager

Many application servers execute web applications under the control of a
Java 
security manager, with restricted permissions on what classes in the web 
application can do. If you utilize form beans with mapped properties, you
may 
encounter security exceptions unless you add the following permission to
the

set of permissions granted to your Struts application's codebase:

permission java.lang.RuntimePermission accessDeclaredMembers;

It still seems strange though that it was throwing a NoClassDefFoundError,
can 
you maybe try the above as an alternative fix and see if that resolves the 
problem?

Regards,
  



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


NoClassDefFoundError

2003-06-18 Thread Bob Damato
I'm getting the exception below, however the class that it's saying it
cannot find is in the
WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for the
webapp that's throwing the exception. Is there something special I need
to do to get the webapp to look there to find the class?

===

root cause

java.lang.NoClassDefFoundError: 
com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingException
at 
com.valpak.fhp.FHPReportController.processRequest(FHPReportController.java:37)
at com.valpak.j2ee.Controller.doGet(Controller.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:536)
-- 
Bob Damato [EMAIL PROTECTED]

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



RE: NoClassDefFoundError

2003-06-18 Thread Shapira, Yoav

Howdy,
tired-mantra-repeating-voice

NoClassDefFoundError is not the same as ClassNotFoundException.  Read
the JavaDocs for both.  Search the archives of this list for other
people's experiences with this error.

/tired-mantra-repeating-voice

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bob Damato [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:14 AM
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError

I'm getting the exception below, however the class that it's saying it
cannot find is in the
WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for
the
webapp that's throwing the exception. Is there something special I need
to do to get the webapp to look there to find the class?

===

root cause

java.lang.NoClassDefFoundError:
com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingExc
epti
on
   at
com.valpak.fhp.FHPReportController.processRequest(FHPReportController.j
ava:
37)
   at com.valpak.j2ee.Controller.doGet(Controller.java:23)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:247)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
   at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF
ilte
r.java:223)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:213)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:243)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:201)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
246)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
44)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:16
4)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:170)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
0)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
   at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
2)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:163)
   at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
   at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
:1011)
   at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:110
6)
   at java.lang.Thread.run(Thread.java:536)
--
Bob Damato [EMAIL PROTECTED]

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Re: NoClassDefFoundError

2003-06-18 Thread John Turner
Sorry, I tried to jump in before you did, save you the trouble, but I was 
too late.  LOL

John

On Wed, 18 Jun 2003 11:19:25 -0400, Shapira, Yoav [EMAIL PROTECTED] 
wrote:

Howdy,
tired-mantra-repeating-voice
NoClassDefFoundError is not the same as ClassNotFoundException.  Read
the JavaDocs for both.  Search the archives of this list for other
people's experiences with this error.
/tired-mantra-repeating-voice

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Bob Damato [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 11:14 AM
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError
I'm getting the exception below, however the class that it's saying it
cannot find is in the
WEB-INF/classes/com/valpak/j2ee/logicalresourcemapping directory for
the
webapp that's throwing the exception. Is there something special I need
to do to get the webapp to look there to find the class?
===

root cause

java.lang.NoClassDefFoundError:
com/valpak/j2ee/logicalresourcemapping/InvalidLogicalResourceMappingExc
epti
on
at
com.valpak.fhp.FHPReportController.processRequest(FHPReportController.j
ava:
37)
at com.valpak.j2ee.Controller.doGet(Controller.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
at
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorF
ilte
r.java:223)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
atio
nFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
ve.j
ava:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.j
ava:
246)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:23
44)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:16
4)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
0)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:46
2)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.jav
a:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.j
ava:
566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.
java
:1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java
:110
6)
at java.lang.Thread.run(Thread.java:536)
--
Bob Damato [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your

RE: NoClassDefFoundError (error500) ... with external package

2003-06-16 Thread Alknaion


No ... i don't have any others jars ... and i didn't set classpath or other
variables 

Thence i'm confused ...

NoClassDefFoundError i retrieved by Jswat with remote debug ... and it was
caught in servlet created from jsp file in
tomcathomedir/work/standalone/localhost...

On Sun, 15 Jun 2003 20:37, [EMAIL PROTECTED] wrote:
 net/sourceforge/headlines/Headline

Do you have another .jar file hanging around with the above in it? Either in

WEB-INF/lib or common/lib?

NoClassDefFoundError basically means Tomcat is getting confused by multiple 
classes with the same name, not that it can't be found, the Def(inition)
part 
is the important part...

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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


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



NoClassDefFoundError (error500) ... with external package (file Listings)

2003-06-16 Thread Alknaion
For better recognition 

Anna 

### test.jsp ##

%@ page language=java %
%@ page import=java.util.*, java.io.*, java.net.*, java.text.*,
java.lang.*, java.util.jar.*, headline.* %

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
titleUntitled/title
/head

body
%
String szPath = removedpath\\MyJsp\\WEB-INF\\plugins;

FileClassLoader c = new FileClassLoader(szPath);
c.load(Hmmm, true);
%


/body
/html

 MyInter.java #

package headline;

public interface MyInter {
public void Test();
}
### FileClassLoader ###


package headline;

import java.io.*;

public class FileClassLoader extends ClassLoader {

private String basePath;

public FileClassLoader(String basePath) {
this.basePath = basePath;
}

public Class load(String typeName, boolean resolveIt) throws
ClassNotFoundException {

Class result = findLoadedClass(typeName);

if (result != null) {
return result;
}

byte typeData[] = getTypeFromBasePath(typeName);
if (typeData == null) {
throw new ClassNotFoundException();
}

result = defineClass(typeName, typeData, 0,
typeData.length);

if (result == null) {
throw new ClassFormatError();
}

if (resolveIt) {
resolveClass(result);
}

return result;
}

private byte[] getTypeFromBasePath(String typeName) {

FileInputStream fis;
String fileName = basePath + File.separatorChar
+ typeName.replace('.', File.separatorChar)
+ .class;

try {
fis = new FileInputStream(fileName);
} catch (FileNotFoundException e) {
return null;
}

BufferedInputStream bis =
new BufferedInputStream(fis);
ByteArrayOutputStream out =
new ByteArrayOutputStream();

try {
int c = bis.read();
while (c != -1) {
out.write(c);
c = bis.read();
}
} catch (IOException e) {
return null;
}
return out.toByteArray();
}
}
 Hmmm.java 

import headline.*;

public class Hmmm implements MyInter{
public void Test(){

}

}



 file listing ##
-- MyJsp
  |
   -- test.jsp 
  |
   -- WEB-INF
  |
   --  classes
  |  |
  |   -- headline
  | |
  |  -- FileClassLoader.class
  | |
  |  -- MyInter.class
  |   
   -- plugins 
 | 
  -- Hmmm.class









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



RE: NoClassDefFoundError (error500) ... with external package

2003-06-16 Thread Anna
No ... i don't have any others jars ... and i didn't set classpath or other variables 

Thence i'm confused ...

I'm attaching sample for better recognition 


Anna 

### test.jsp ##

%@ page language=java %
%@ page import=java.util.*, java.io.*, java.net.*, java.text.*, java.lang.*, 
java.util.jar.*, headline.* %

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
 titleUntitled/title
/head

body
%
String szPath = removedpath\\MyJsp\\WEB-INF\\plugins;

  FileClassLoader c = new FileClassLoader(szPath);
  c.load(Hmmm, true);
%
 

/body
/html

 MyInter.java #

package headline;

public interface MyInter {
 public void Test();
}
### FileClassLoader ###


package headline;

import java.io.*;

public class FileClassLoader extends ClassLoader {

 private String basePath;

 public FileClassLoader(String basePath) {
  this.basePath = basePath;
 }

 public Class load(String typeName, boolean resolveIt) throws ClassNotFoundException {

  Class result = findLoadedClass(typeName);

  if (result != null) {
   return result;
  }

  byte typeData[] = getTypeFromBasePath(typeName);
  if (typeData == null) {
   throw new ClassNotFoundException();
  }

  result = defineClass(typeName, typeData, 0,
  typeData.length);

  if (result == null) {
   throw new ClassFormatError();
  }

  if (resolveIt) {
   resolveClass(result);
  }

  return result;
 }

 private byte[] getTypeFromBasePath(String typeName) {

  FileInputStream fis;
  String fileName = basePath + File.separatorChar
  + typeName.replace('.', File.separatorChar)
  + .class;

  try {
   fis = new FileInputStream(fileName);
  } catch (FileNotFoundException e) {
   return null;
  }

  BufferedInputStream bis =
  new BufferedInputStream(fis);
  ByteArrayOutputStream out =
  new ByteArrayOutputStream();

  try {
   int c = bis.read();
   while (c != -1) {
out.write(c);
c = bis.read();
   }
  } catch (IOException e) {
   return null;
  }
  return out.toByteArray();
 }
}
 Hmmm.java 

import headline.*;

public class Hmmm implements MyInter{
 public void Test(){

 }

}



 file listing ##
-- MyJsp
  |
   -- test.jsp 
  |
   -- WEB-INF
  |
   --  classes
  |  |
  |   -- headline
  | |
  |  -- FileClassLoader.class
  | |
  |  -- MyInter.class
  |   
   -- plugins 
 | 
  -- Hmmm.class

NoClassDefFoundError (error500) ... with external package

2003-06-15 Thread simonik
Hi 

i have problem with ClassLoader

imagine this situation 

i have two jar files (pack1, and pack2) first is used from jsp ...
i've in pack1  f.e. one interface (MyInter) and one class (JarClassLoader extended 
from ClassLoader)

pack1.jar i have defined as package headline;

in the second pack2.jar i have class (Hmmm) which implements interface from pack1

it look's like

import headline.*;
public class Hmmm implements MyInter {
...
...
...
}


i want to load class (Hmmm) that implemented class from pack2.jar (dynamicaly
by reading bytes from file and using defineClass)

i used for it JarClassLoader but it failed on defineClass with throwing
NoClassDefFoundError  headline/MyInter not found 

structure of directory scheme
-- MyJsp
  |
   -- myapp.jsp (this jsp imports pack1 and then class function to load
   class from pack2 byt JarClassLoader )
  |
   -- WEB-INF
 |
  --  lib
|
 -- pack1.jar (package headline)
|
 -- pack2.jar



when i use this code from standalone app it works but in jsp not ... 


thx for reply 

Anna


HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 

org.apache.jasper.JasperException: headline/MyInterf
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)

root cause 
javax.servlet.ServletException: net/sourceforge/headlines/Headline
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)
at org.apache.jsp.java_jsp._jspService(java_jsp.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247

Re: NoClassDefFoundError (error500) ... with external package

2003-06-15 Thread Jason Bainbridge
On Sun, 15 Jun 2003 20:37, [EMAIL PROTECTED] wrote:
 net/sourceforge/headlines/Headline

Do you have another .jar file hanging around with the above in it? Either in 
WEB-INF/lib or common/lib?

NoClassDefFoundError basically means Tomcat is getting confused by multiple 
classes with the same name, not that it can't be found, the Def(inition) part 
is the important part...

Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



RE: NoClassDefFoundError (error500) ... with external package

2003-06-15 Thread Anna
No ... i don't have any others jars ... and i didn't set classpath or other variables 

Thence i'm confused ...

I'm attaching sample for better recognition 


Anna 

### test.jsp ##

%@ page language=java %
%@ page import=java.util.*, java.io.*, java.net.*, java.text.*, java.lang.*, 
java.util.jar.*, headline.* %

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

html
head
 titleUntitled/title
/head

body
%
String szPath = removedpath\\MyJsp\\WEB-INF\\plugins;

  FileClassLoader c = new FileClassLoader(szPath);
  c.load(Hmmm, true);
%
 

/body
/html

 MyInter.java #

package headline;

public interface MyInter {
 public void Test();
}
### FileClassLoader ###


package headline;

import java.io.*;

public class FileClassLoader extends ClassLoader {

 private String basePath;

 public FileClassLoader(String basePath) {
  this.basePath = basePath;
 }

 public Class load(String typeName, boolean resolveIt) throws ClassNotFoundException {

  Class result = findLoadedClass(typeName);

  if (result != null) {
   return result;
  }

  byte typeData[] = getTypeFromBasePath(typeName);
  if (typeData == null) {
   throw new ClassNotFoundException();
  }

  result = defineClass(typeName, typeData, 0,
  typeData.length);

  if (result == null) {
   throw new ClassFormatError();
  }

  if (resolveIt) {
   resolveClass(result);
  }

  return result;
 }

 private byte[] getTypeFromBasePath(String typeName) {

  FileInputStream fis;
  String fileName = basePath + File.separatorChar
  + typeName.replace('.', File.separatorChar)
  + .class;

  try {
   fis = new FileInputStream(fileName);
  } catch (FileNotFoundException e) {
   return null;
  }

  BufferedInputStream bis =
  new BufferedInputStream(fis);
  ByteArrayOutputStream out =
  new ByteArrayOutputStream();

  try {
   int c = bis.read();
   while (c != -1) {
out.write(c);
c = bis.read();
   }
  } catch (IOException e) {
   return null;
  }
  return out.toByteArray();
 }
}
 Hmmm.java 

import headline.*;

public class Hmmm implements MyInter{
 public void Test(){

 }

}



 file listing ##
-- MyJsp
  |
   -- test.jsp 
  |
   -- WEB-INF
  |
   --  classes
  |  |
  |   -- headline
  | |
  |  -- FileClassLoader.class
  | |
  |  -- MyInter.class
  |   
   -- plugins 
 | 
  -- Hmmm.class


Re: NoClassDefFoundError (error500) ... with external package

2003-06-15 Thread Jason Bainbridge
I'm guessing you have headlines.jar installed from:

http://sourceforge.net/projects/headlines/

Given the error:

root cause 
javax.servlet.ServletException: net/sourceforge/headlines/Headline

Are you sure you don't have that anywhere Tomcat would be accessing it?

Regards,
-- 
Jason Bainbridge
http://jblinux.org


On Sun, 15 Jun 2003 22:48, Anna wrote:
 No ... i don't have any others jars ... and i didn't set classpath or other
 variables

 Thence i'm confused ...

 I'm attaching sample for better recognition


 Anna

 ### test.jsp ##

 %@ page language=java %
 %@ page import=java.util.*, java.io.*, java.net.*, java.text.*,
 java.lang.*, java.util.jar.*, headline.* %

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

 html
 head
  titleUntitled/title
 /head

 body
 %
 String szPath = removedpath\\MyJsp\\WEB-INF\\plugins;

   FileClassLoader c = new FileClassLoader(szPath);
   c.load(Hmmm, true);
 %


 /body
 /html

  MyInter.java #

 package headline;

 public interface MyInter {
  public void Test();
 }
 ### FileClassLoader ###


 package headline;

 import java.io.*;

 public class FileClassLoader extends ClassLoader {

  private String basePath;

  public FileClassLoader(String basePath) {
   this.basePath = basePath;
  }

  public Class load(String typeName, boolean resolveIt) throws
 ClassNotFoundException {

   Class result = findLoadedClass(typeName);

   if (result != null) {
return result;
   }

   byte typeData[] = getTypeFromBasePath(typeName);
   if (typeData == null) {
throw new ClassNotFoundException();
   }

   result = defineClass(typeName, typeData, 0,
   typeData.length);

   if (result == null) {
throw new ClassFormatError();
   }

   if (resolveIt) {
resolveClass(result);
   }

   return result;
  }

  private byte[] getTypeFromBasePath(String typeName) {

   FileInputStream fis;
   String fileName = basePath + File.separatorChar
   + typeName.replace('.', File.separatorChar)
   + .class;

   try {
fis = new FileInputStream(fileName);
   } catch (FileNotFoundException e) {
return null;
   }

   BufferedInputStream bis =
   new BufferedInputStream(fis);
   ByteArrayOutputStream out =
   new ByteArrayOutputStream();

   try {
int c = bis.read();
while (c != -1) {
 out.write(c);
 c = bis.read();
}
   } catch (IOException e) {
return null;
   }
   return out.toByteArray();
  }
 }
  Hmmm.java 

 import headline.*;

 public class Hmmm implements MyInter{
  public void Test(){

  }

 }



  file listing ##
 -- MyJsp

-- test.jsp

-- WEB-INF

--  classes

   |   -- headline
   |
   |  -- FileClassLoader.class
   |
   |  -- MyInter.class

-- plugins

   -- Hmmm.class


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



RE: NoClassDefFoundError (error500) ... with external package

2003-06-15 Thread Anna

yes ... i tryed source from this project 

but i don't have any headlines.jar in classpaths/libpaths of tomcat 

and as you saw i attached listings of files and i tested this simple sample (if your 
want you can try it) which don't have any references to project from sourceforge 

and it makes me same error 

Anna ... 



  1   2   >