class files for implementation code. However, when I add the
correct path to the catalina.bat startup script, the .jar files in my
WEB-INF\lib directory arent being added to the tomcat classpath. Has
anyone seen or experienced this before?
Thanks,
Brian Abbott
I added -Djava.awt.headless=true to catalina.sh and it fixed the problem.
Thanks for your help.
On Mon, 16 Jun 2003, Kwok Peng Tuck wrote:
> It's something about running tomcat headless I think.
>
> http://sourceforge.net/forum/forum.php?thread_id=859094&forum_id=192228
>
> Try adding this to th
It's something about running tomcat headless I think.
http://sourceforge.net/forum/forum.php?thread_id=859094&forum_id=192228
Try adding this to the tomcat startup scripts :
-Djava.awt.headless=true (which you can only do with JDK1.4 or higher) .
Tim Funk wrote:
Ouch! wacky issues between j
Ouch! wacky issues between java and X. The archives have talked about similar
items and I am sure there are google links talking about use X with java.
Otherwise - I am pretty clueless on the topic.
-Tim
Chad Lemmen wrote:
I've done some more testing and it doesn't have anything to do with
star
I've done some more testing and it doesn't have anything to do with
starting Tomcat at boot as I first thought. The problem is that my
servlet tries to connect to the X server when run. I have no idea why it
needs to connect to the X server (It's a servlet that EspressReport wrote
to connect to a
List
Sent: Saturday, June 14, 2003 3:26 PM
Subject: Re: Tomcat classpath not set at boot
Is it just your servlet that doesn't work, or all servlets? (and jsps)
Are you using different userids when run from boot time vs command line?
What happens if your startup command is moved to in
Is it just your servlet that doesn't work, or all servlets? (and jsps)
Are you using different userids when run from boot time vs command line?
What happens if your startup command is moved to inittab? (Or other wacky
equivalent)
-Tim
Chad Lemmen wrote:
It's not a system CLASSPATH I have set. I
It's not a system CLASSPATH I have set. I put the jar files I want in the
CLASSPATH in $CATALINA_HOME/shared/lib. Tomcat does recognize these if I
start Tomcat manually, but not if I have Tomcat staring at boot time with
the script in /etc/rc.d/init.d
On Fri, 13 Jun 2003, Tim Funk wrote:
> Tomc
Tomcat ignores system CLASSPATH at startup and creates its own.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
-Tim
Chad Lemmen wrote:
I've got Tomcat 4.1.24 starting at boot on my Linux box with a script in
/etc/rc.d/init.d. The script looks like this
#!/bin/sh
JAVA_HO
I've got Tomcat 4.1.24 starting at boot on my Linux box with a script in
/etc/rc.d/init.d. The script looks like this
#!/bin/sh
JAVA_HOME=/usr/java
export JAVA_HOME
/opt/jakarta-tomcat-4.1.24/bin/startup.sh
Tomcat is starting at boot and seems to work fine http://localhost:8080
brings up the de
mcat (E-mail)
> Subject: Tomcat classpath problem
>
>
> Apologies for the re-post, but I'm not sure if my messages
> are reaching the
> list.
> ---
> Hi,
>
> I'm trying to understand the tomcat class loading mechanism
> and have read
> through th
Howdy,
>How does one make additional jars available to tomcat? I understand one
can
>add them to WEB-INF/lib,but there are sometimes that approach does not
>work.
>Here's a scenario:
>I'm using tomcat 4.1.24 with jdk 1.4.1_02. One of the required
libraries
>for
>my web app is oc4j.jar. If I put t
... 42 more
I suspect I don't need to fiddle with the tomcat classpath. But how do I get
tomcat to load the oc4j.jar from the WEB-INF/lib and use the
com.evermind.server.rmi.RMIInitialContextFactory class?
Tomcat does its job when it tries to load the jar file, but the verification
fa
John Turner [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 03, 2003 8:35 AM
>To: Tomcat Users List
>Subject: Re: Tomcat classpath issues.
>
>
>java.lang.NoClassDefFoundError (what you're getting) is not the same as
>java.lang.ClassNotFoundException (what happens when classes can
java.lang.NoClassDefFoundError (what you're getting) is not the same as
java.lang.ClassNotFoundException (what happens when classes can't be found
by the class loader).
$CATALINA_HOME/common/lib is most definitely visible to your applications.
I'm no guru, but I think this has come up before, a
Does anyone know how to get the entire class path that tomcat is using
to run an application. What I am trying to understand is at the time
that the tomcat is running my application what is its classpath. I have
included a jar file(weblogic.jar) in common/lib however, I still receive
the foll
Hi,
That means you have to put the driver files (usually in a jar file)
someplace where Tomcat can see them. A good place for jar files is
CATALINA_HOME/common/lib. If it is there Tomcat can use it and your webapps
can too. If your driver files aren't in a jar you can put them in
CATALINA_HOME
Hi:
I just successfully install memory realm. I want to
use JDBC realm instead. I need to put the JDBC driver
referenced by the friverName attribute into Tomcat's
classpath. What is tomcat's classpath? Where can I
find it?
Thanks.
__
Do You Y
Hi Jack,
Tomcat ignores your classpath. Believe me, this solves a *ton* of
problems. If you want to use the classpath, go back to using Tomcat
2.x.x. I wouldn't give it the time of day now that 3.3.x and 4.x.x are
out. Seriously, do yourself a favor and just copy the jar into
$CATALINA_HO
On Thu, 27 Jun 2002, David Thielen wrote:
> I'm sticking with this example as it "should" work.
>
> The url I put in is localhost/apps.10.jsp.
I assume you mean localhost/apps/10.jsp.
> Here is a dir (screen dump) of the file:
> Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps
>
>
I'm sticking with this example as it "should" work.
The url I put in is localhost/apps.10.jsp.
Here is a dir (screen dump) of the file:
Directory of C:\Program Files\Apache Tomcat 4.0\webapps\apps
02/16/2002 03:50p 727 10.jsp
So the file is there.
The error I get is:
C:\Prog
iles and classes for them to access.
I think that should be OK, and if it's finding the servlets/jsps OK,
that should indicate it's OK.
> - Original Message -
> From: "Milt Epstein" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROT
access.
? - thanks - dave
- Original Message -
From: "Milt Epstein" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 11:04 AM
Subject: Re: Tomcat classpath?
> On Thu, 27 Jun 2002, David Thielen wrote:
&
hink that you can have WEB-INF under c:\Inetpub\wwwroot (and
lib and classes under WEB-INF).
> - Original Message -
> From: "Milt Epstein" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Thursday, June 27, 2002 10:31 AM
&g
What's the context when I have:
I tried ROOT, nothing, "_" - none of them worked.
thanks - dave
- Original Message -
From: "Milt Epstein" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002
On Thu, 27 Jun 2002, David Thielen wrote:
> Hi;
>
> Where do I place jar files or where in the tomcat configuration do I
> tell it of a jar file to use with my jsp?
>
> Also, can I just do .class files in a directory or must it be a jar
> file? (And if so, how do I set that?)
If you're talking a
Hi;
Where do I place jar files or where in the tomcat configuration do I tell it of a jar
file to use with my jsp?
Also, can I just do .class files in a directory or must it be a jar file? (And if so,
how do I set that?)
thanks - dave
;
> Subject: RE: ***ANOTHER TOMCAT CLASSPATH BUG***
>
>
> Let me rephrase
>
> I have 2 contexts in tomcat
> 1. my-web-app context
> 2. soap_2_2 context
>
> In order for context2 to see my context 1 classes I must add
> /my-web-app-dir/web-inf/classes
> To the
Carl Rosenberger wrote:
>
> Geir Magnusson wrote:
> > > > > > When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> > > > > > Tomcat is loosing the jars in my
> c:\java\my-web-app-dir\web-inf\lib
> > > > >
> > > > > Two workarounds were possible:
> > > > > - ..\project-dir\web-inf\cla
Geir Magnusson wrote:
> > > > > When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> > > > > Tomcat is loosing the jars in my
c:\java\my-web-app-dir\web-inf\lib
> > > >
> > > > Two workarounds were possible:
> > > > - ..\project-dir\web-inf\classes added to the CLASSPATH
> > > > - pl
Carl Rosenberger wrote:
>
> > > > When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> > > > Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
> > >
> > > Two workarounds were possible:
> > > - ..\project-dir\web-inf\classes added to the CLASSPATH
> > > - placing al
Let me rephrase
I have 2 contexts in tomcat
1. my-web-app context
2. soap_2_2 context
In order for context2 to see my context 1 classes I must add
/my-web-app-dir/web-inf/classes
To the CLASSPATH
Adding this makes context 1 not to see the jars in
/my-web-app-dir/web-inf/lib
Weird isn't it
> > > When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> > > Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
> >
> > Two workarounds were possible:
> > - ..\project-dir\web-inf\classes added to the CLASSPATH
> > - placing all Jars in ..\project-dir\web-inf\lib
>
Carl Rosenberger wrote:
>
> > When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> > Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
>
> Hi Niv,
>
> we have also spent 2 days last week to debug this problem, since a user of
> our object database had problems to
PROTECTED]]
Sent: Sunday, June 24, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: Re: ***ANOTHER TOMCAT CLASSPATH BUG***
> When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH Tomcat
> is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
Hi Niv,
we have also spent 2 day
> When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
> Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
Hi Niv,
we have also spent 2 days last week to debug this problem, since a user of
our object database had problems to get in running.
The setup:
The jar of ou
Very simple to simulate this bug :
When adding c:\java\my-web-app-dir\web-inf\classes to CLASSPATH
Tomcat is loosing the jars in my c:\java\my-web-app-dir\web-inf\lib
Ok now if ur asking why do I need it it so the answer is soap
I have a soap 2_2 context that needs to load a class in
c:\jav
Hey There!
I did learn more stuff.
What had happened is that along the way I explicitly added WEB-INF/classes to my
TOMCAT path in my tomcat.bat file. I figured this would be harmless. But I
guess it does effect CLASS RELOADING.
Therefore, I found if you want CLASS RELOADING to work DO NOT pl
Hi Again,
No one got back to me but I did learn a few things today:
1. No need to tell the system class path about the WEB-INF area. All I need
to do is compile from WEB-INF/classes and JDK finds all of my custom
packages. This is b/c by default . is added to JDK's path.
2. I think I know why
Hi,
I'm new to JSP.
I desire to use the class reloadable="YES" feature in TOMCAT so that I
can develop my JAVA BEANS and quickly test them without restarting
TOMCAT for every little change.
I believe that the reloadable feature will not work if I inform the
system CLASSPATH where my JSP applica
arser.jar
if exist "%TOMCAT_HOME%\lib\servlet.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\servlet.jar
if exist "%TOMCAT_HOME%\lib\webserver.jar" set
CP=%CP%;%TOMCAT_HOME%\lib\webserver.jar
Keith
-Original Message-
From: brian luk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, Marc
tup.bat
>
> You might want to look at the wrapper.properties
> file.
>
>
>
>
> -Original Message-
> From: brian luk [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 29, 2001 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat classpath -- \tomcat\li
Are you running tomcat as a service/daemon with Apache or IIS or from the
startup.bat
You might want to look at the wrapper.properties file.
-Original Message-
From: brian luk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 3:35 PM
To: [EMAIL PROTECTED]
Subject: tomcat
Hi all,
tomcat documentation told me to put all my JAR files
in
c:\tomcat\lib\. but when i put my JAR files
there, the classpath semes didn't find the JARs in
c:\tomcat\lib dir.
It works on unix but not WIN32. and i was forced to
put my JAR files inside JDK/JRE's lib\ext directory.
Anyone has
[Please forgive if this is reposted, my first post was over three hours
ago.]
I bring in a Bean class that imports an oracle class that's not on my
tomcat
server, so I get a:
'Class oracle.sqlj.runtime.Oracle not found in import.' error
OK - so I bring in the appropriate jar file and put it in
$
45 matches
Mail list logo