calling native code

2004-04-05 Thread Astrid Wagner
Hi,

I am using tomcat 4.1.24 and want to use native c-code with JNI.
I have a shared library installed in an oracle subdirectory that is 
added to the LD_LIBRARY_PATH
when Apache is started (apachectl) but when I restart tomcat this 
directory is no longer in it
which leads to a

java.lang.UnsatisfiedLinkError:

error. Where can I modify the LD_LIBRARY_PATH within tomcat ?
When I restart Apache, the LD_LIBRARY_PATH is correct but I get a
ClassDefNotFound exeception

for the class that calls the c-interface (IprShellInterface.class 
package com.mot.sps.ipr.common).
I have installed that class in 
CATALINA_HOME/common/classes/com/mot/sps/ipr/common/IprShellInterface.class.
I called that class successfully before but now I seemed to have run 
into a deadlock.

Can anyone help?

Thanks
Astrid


Re: calling native code

2004-04-05 Thread Astrid Wagner
Hi,

I just found out that setting the LD_LIBRARY_PATH var on the shell
suffices. When I restart tomcat it takes it from there (working on 
Solaris 8).
Still do  not know why I had the

ClassDefNotFound exeception

after I restarted Apache though.
It seems that I always have to go in order
1) Apache and then
2) Tomcat
as far as starting is concerned ?!
Thanks.

Astrid

Peter Guyatt wrote:

Hi there,

	What OS are you using ?

If windows just copy the dll to the windows/system32 directory or solaris to
the use/lib directory.
That way you dont have to specify the location of the library

Thanks

Pete

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: 05 April 2004 13:13
To: [EMAIL PROTECTED]
Subject: calling native code
Hi,

I am using tomcat 4.1.24 and want to use native c-code with JNI.
I have a shared library installed in an oracle subdirectory that is
added to the LD_LIBRARY_PATH
when Apache is started (apachectl) but when I restart tomcat this
directory is no longer in it
which leads to a
java.lang.UnsatisfiedLinkError:

error. Where can I modify the LD_LIBRARY_PATH within tomcat ?
When I restart Apache, the LD_LIBRARY_PATH is correct but I get a
ClassDefNotFound exeception

for the class that calls the c-interface (IprShellInterface.class
package com.mot.sps.ipr.common).
I have installed that class in
CATALINA_HOME/common/classes/com/mot/sps/ipr/common/IprShellInterface.class.
I called that class successfully before but now I seemed to have run
into a deadlock.
Can anyone help?

Thanks
Astrid
-
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]


Solution for mod_weppp Communitcation interrupted error message

2003-10-28 Thread wagner

Hi!

I think I found the cause of the weird
Communitcation interrupted error message.

The description of the problem and the solution I implemented
is found in the following page:

http://www.nlink.com.br/~wagner/webapp_error.html

The text would be somewhat long if I described it here in this
e-mail.

Hope this can help someone.

---
Este e-mail foi enviado por http://www.nlink.com.br

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



Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Thanks. We rebooted the machine and until now (I keep my fingers 
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid

Shapira, Yoav wrote:

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).
What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still running
- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You need
to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now receive
a port 8080 already in use problem after I try to start tomcat.
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

loadRegistry
 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

getRegistry
 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
   

.jav
 

a:280
)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when I
called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log files,
Apache log ...).
My question: how do I get more info about what ports tomcat still uses
for what ?
Any hint would be appreciated.
Thanks.
Astrid
   



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]
 




java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this problem?
Thanks.
Astrid



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


Re: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in three 
different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use a 
native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



-
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: java.lang.UnsatisfiedLinkError

2003-09-15 Thread Astrid Wagner
Thanks for the hint.
But I do not quite understand the proposal:
the shared libraries state should be reinitialized.

How do I do that?

Then:

Something which could help is to avoid putting classes which would be 
referenced by a shared static field in the web application classloader, 
and put them in the shared classloader instead (the JARs should be put in the 
lib folder, and classes should be put in the classes folder).

??

Maybe you can tell me what this means in my example.
My webapps use the class IprShellInterface which is in a shared library the following 
way:
   String shellResponse = IprShellInterface.executeCommand(...);
Here a snippet from IprShellInterface.java:

 static {

System.out.println([EMAIL PROTECTED]: The library path is set to:  +
System.getProperty(java.library.path));
try {
   System.loadLibrary(IprShellInterface);
   System.out.println([EMAIL PROTECTED]: Done loading library IprShellInterface);
}
catch (Exception e) {
   System.out.println([EMAIL PROTECTED]: Exception loading library IprShellInterface 
... 
);
   System.out.println(e.getMessage());
}
 public static String executeCommand(...)

I compile the class into the shared library libIprShellInterface.so and right now 
install it in lib of the DB installation (included in the java.library.path variable).
This means that all webapps take the same. If that is the reason for the problem wouldn't it be a solution to
install it into the different webapps lib directories:
./webapps/iprweb-iprdev1/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev2/WEB-INF/lib/libIprShellInterface.so
./webapps/iprweb-iprdev3/WEB-INF/lib/libIprShellInterface.so

and have the java.library.path path be set individually for the webapps. Or is there 
only one for all applications?
Where do I set the library path anyway?
Sorry I just have too little info about how this works ...
Thanks
Astrid


Tim Funk wrote:

See the RELEASE NOTES under the section of shared libraries ...

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-4.0/RELEASE-NOTES-4.1.txt?rev=1.79content-type=text/vnd.viewcvs-markup 

-Tim

Astrid Wagner wrote:

Hi,

Where do I set the java.library.path property for different webapps?
Thanks.
Astrid

Astrid Wagner wrote:

Hi,

I have three different web applications installed and running in 
three different modes (e.g. test, training )
but basically based on the same code otherwise. In all of them I use 
a native c library to call shell commands.
When I test one web app everything works fine.
When I switch to another web application I eventually receive the 
following error:

root cause

java.lang.UnsatisfiedLinkError: Native Library 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/lib/libIprShellInterface.so 
already loaded in another classloader
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1444)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1404)
   at java.lang.Runtime.loadLibrary0(Runtime.java:772)
   at java.lang.System.loadLibrary(System.java:832)

I installed the shared library  libIprShellInterface.so  into the 
databases lib directory which is included in the library path
and where it is - normally - found.
Does anyone know why I receive this error and how I can solve this 
problem?
Thanks.
Astrid



-
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: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280)
   at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
   at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)
   at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:579)
   at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2246)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill those 
processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid

Shapira, Yoav wrote:

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this directly
but a 3rd party library used by your webapp does.
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:

   

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005 by
default) and the actual user connector ports (8080 and 8009 by default
for tomcat 4.1.x).
What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still
 

running
 

- When you changed to port 8081 and tried to start, you got the error
because tomcat was still listening on port 8005 for shutdown.  You
 

need
 

to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
   

receive
 

a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry

   

loadRegistry

 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry
   

getRegistry

 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry
   

getServer
 

INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoi
   

nt
 

   

.jav

 

a:280
)
 at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when
   

I
 

called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log
   

files,
 

Apache log ...).

My question: how do I get more info about what ports tomcat still
   

uses
 

for what ?
Any hint would be appreciated.
Thanks.
Astrid

   

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]
 





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

Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Thanks for the quick response.

Shapira, Yoav wrote:

Howdy,
Several things to do:
Try to start tomcat from the console (use catalina.sh run instead of
catalina.sh start) and when you run into this condition again, use
CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
what your threads are doing.
I ran catalina.sh run and run into this condition over and over.
I do not know when/how I should terminate it since it prints out the
message and finishes itself quickly. Should I look for java thread 
processes?

Don't start non-daemon threads in your webapp.  Alternatively, if you
do, make sure they properly handle interruptions and quit.  If you're
not sure where they're coming from, do the above SIGQUIT approach to
see.  

I am not aware of non-deamon threads. Maybe the problem has sth. to do 
with native calls
I use but they are terminated I guess ...
Thanks
Astrid

As another alternative, though dirty and potentially very bad if there's
more than one webapp on the server: write a ServletContextListener that
does System.exit(n) at the end of its contextDestroyed method ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint
   

.jav
 

a:280)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
  at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.ja
   

va:1
 

117)
  at
org.apache.catalina.core.StandardService.initialize(StandardService.jav
   

a:57
 

9)
  at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:
   

2246
 

)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill
   

those
 

processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid
Shapira, Yoav wrote:

   

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only times
when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this
 

directly
 

but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics


 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:



   

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005
 

by
 

default) and the actual user connector ports (8080 and 8009 by
 

default
 

for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut down
properly,  most likely because you had non-daemon threads still
 

running

 

- When you changed to port 8081 and tried to start, you got the
 

error
 

because tomcat was still listening on port 8005 for shutdown.  You

 

need

 

to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics




 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
   

receive

 

a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry



   

loadRegistry



 

INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


   

getRegistry



 

INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry
   

getServer

 

INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol
   

init
 

SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndp
   

oi
 

   

nt

 

   

.jav



 

a:280
)
at
org.apache.coyote.http11.Http11Protocol.init

Re: problems starting/stopping tomcat

2003-09-15 Thread Astrid Wagner
Hi,

I killed some processes related to native c calls I submit and now I can 
start/stop TC so this
time it could have been some non-terminated processes (due to network 
problem).
The question now is: I may have some situations like that e.g due to a 
network problem
a native call can not be finished etc. How do I avoid running into such 
severe problems:
do I have to implement sth. like a timeout in the c programm to 
guarantee it will
quit  ?!
Thanks for your help.

Astrid

Astrid Wagner wrote:

Thanks for the quick response.

Shapira, Yoav wrote:

Howdy,
Several things to do:
Try to start tomcat from the console (use catalina.sh run instead of
catalina.sh start) and when you run into this condition again, use
CTRL-BREAK to send a SIGQUIT to the JVM so that you can an output of
what your threads are doing.
I ran catalina.sh run and run into this condition over and over.
I do not know when/how I should terminate it since it prints out the
message and finishes itself quickly. Should I look for java thread 
processes?

Don't start non-daemon threads in your webapp.  Alternatively, if you
do, make sure they properly handle interruptions and quit.  If you're
not sure where they're coming from, do the above SIGQUIT approach to
see. 
I am not aware of non-deamon threads. Maybe the problem has sth. to do 
with native calls
I use but they are terminated I guess ...
Thanks
Astrid

As another alternative, though dirty and potentially very bad if
there's

more than one webapp on the server: write a ServletContextListener that
does System.exit(n) at the end of its contextDestroyed method ;)
Yoav Shapira
Millennium ChemInformatics
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 12:56 PM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Hi,

Not again !!
I ran into the same problem:
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
  at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoin

t

  
.jav
 

a:280)
  at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
  at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.j

a

  
va:1
 

117)
  at
org.apache.catalina.core.StandardService.initialize(StandardService.ja

v

  
a:57
 

9)
  at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java

:

  
2246
 

)

not being able to get a clean state.
Can you tell me how to look for status of ports and how I can kill
  
those
 

processes
keeping thoses port occupied because I can not see tomcat process.
netstat | grep 8080
returns nothing (I get sth. for 8005) but that is not why it fails??!
I do not want to boot everytime I run into that problem ..
Thanks Astrid
Shapira, Yoav wrote:

  

Howdy,
I'm glad you're OK for now ;)
Tomcat shuts down properly under normal circumstances.  The only

times

when it doesn't is when webapps start non-daemon threads and don't
terminate them properly.  Sometimes your webapp doesn't do this


directly
 

but a 3rd party library used by your webapp does.

Yoav Shapira
Millennium ChemInformatics




-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 9:08 AM
To: Tomcat Users List
Subject: Re: problems starting/stopping tomcat
Thanks. We rebooted the machine and until now (I keep my fingers
crossed) it works again.
Tomcat must have not shut down properly leaving me in a deadlock.
Astrid
Shapira, Yoav wrote:



  

Howdy,
Use netstat to see the status of ports.
Tomcat uses at least two ports at runtime: the SHUTDOWN port (8005


by
 

default) and the actual user connector ports (8080 and 8009 by


default
 

for tomcat 4.1.x).

What likely happened was:
- Your first tomcat instance (ports 8005 and 8080) did not shut

down

properly,  most likely because you had non-daemon threads still



running



- When you changed to port 8081 and tried to start, you got the


error
 

because tomcat was still listening on port 8005 for shutdown.  You



need



to change both ports, or better yet, fix the cause for tomcat not
shutting down properly ;)
Yoav Shapira
Millennium ChemInformatics






-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 4:33 AM
To: [EMAIL PROTECTED]
Subject: problems starting/stopping tomcat
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now
  

receive



a port 8080 already in use problem after I try to start tomcat.

Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry



  
loadRegistry





INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry


  
getRegistry





INFO: Creating new Registry instance
Sep 13, 2003 10:20

problems starting/stopping tomcat

2003-09-13 Thread Astrid Wagner
Hi ,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
After having developed and successfully run many servlets I now receive
a port 8080 already in use problem after I try to start tomcat.
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Sep 13, 2003 10:20:54 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Sep 13, 2003 10:20:57 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Sep 13, 2003 10:21:00 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
   at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:280
)
   at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)

I did not change any configuration and I do not think that the ports
are in use by any other processes (Apache uses a different port).
Could it be that while doing shutdown-startup sequences a process
has been left hanging (?).
When I replaced port 8080 by 8081 I was able to start tomcat but when I
called a servlet it said 8005 (port for shutdown) in use ?!
When I replaced also 8005 for test purposes the servlet hangs and I
could not see any error being logged (catalina.out, web appl log files, 
Apache log ...).

My question: how do I get more info about what ports tomcat still uses
for what ?
Any hint would be appreciated.
Thanks.
Astrid


how to run web application in different modes like test, production

2003-08-04 Thread Astrid Wagner
Hi all,
I have a web application that runs -depending on the content of a 
property file - in different
modes. But the application can only run in either one of these modes at 
a time.
I want to be able to run the web application in serveral modes at the 
same time
(e.g to test different DBs, email flows etc).
What is the best way to accomplish that ?
Thanks for you ideas.
Astrid

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


ant question: compile native code

2003-07-28 Thread Astrid Wagner
Hi,

I want to use ant to compile some native C code (part of my web 
application).
Before searching around: can someone tell me how I have to modify
my build.xml (for my web application) to make it automatically compile 
the C code and
create the header file (via javah jni ...) or where to look?
Thanks.
Astrid

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


tomcat connection/port problem

2003-07-24 Thread Astrid Wagner
Hi,
I use tomcat 4.1.24, jdk 1.4.0 and Apache 1.3 on Solaris 8.
I am able to run a servlet with my configuration but when I submit in 
this first page I receive an errror.
The catalina.out log file simply says:
Jul 24, 2003 8:53:58 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Jul 24, 2003 8:53:58 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Jul 24, 2003 8:54:01 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Jul 24, 2003 8:54:04 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
Jul 24, 2003 8:54:31 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Jul 24, 2003 8:54:32 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jul 24, 2003 8:54:32 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=44/437  
config=/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jaka
rta-tomcat-4.1.24/conf/jk2.properties
[EMAIL PROTECTED](): empty constructor:  // this is  printout 
from my code
[EMAIL PROTECTED]() start:  // this 
is  printout from my code
[EMAIL PROTECTED]() before getting system.mode: // this is 
printout from my code
Stopping service Tomcat-Standalone

The mod_jk printout says this :
[Thu Jul 24 09:01:26 2003]  [jk_ajp_common.c (642)]: sending to ajp13 #79
[Thu Jul 24 09:01:27 2003]  [jk_ajp_common.c (681)]: ERROR: can't 
receive the response mes
sage from tomcat, network problems or tomcat is down.
...

I remember having seen some port 8080 in use problem error message but 
not in the above test.
Apache is configured to run on a different port (7778) and server.xml has:
 Service name=Tomcat-Standalone
   !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=100 debug=0 connectionTimeout=2
  useURIValidationHack=false disableUploadTimeout=true /
   !-- Note : To disable connection timeouts, set connectionTimeout value
to -1 --
   !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=0
  useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 /Service

Do I have to use a different connector? Why does the problem occur not 
right away if it is a port problem?
The error comes when I try to read an external java resource bundle 
(.properties file) even
though this may not have sth. to do with the error because the resource 
bundle is successfully found
prior to the error.
Thanks for your help.

BTW: Is it advisable to use the above configuration since we have an 
quite old version of Apache?
E.g Has anyone experienced mayor problems running relativly new versions 
of tomcat with an old 1.3
Apache version??

Astrid






Re: tomcat connection/port problem

2003-07-24 Thread Astrid Wagner
Yes you are rigth.  The resource property was not found in
in the resource file that's why it crashed. I simply thought
I would get some java error (and not only that tomcat was shut down)
that would have made it easier for me to debug.
Sorry for the confusion.
Astrid
Ralph Einfeldt wrote:

What makes you so shure that you have a port problem ?
I think that you are searching in the wrong direction.
As I understand the log message mod_jk complains about
not getting an answer from tomcat after it successfully
sent a request to tomcat. At this point I cann't imagine 
a port problem (with that the request would have failed,
not the response)

This can have several causes:
- tomcat is down (e.g. jvm crash)
- the thread is not responding at all (deadlock)
- the thread is not responding quick enough (it take to long to create the response)
- ...
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 9:25 AM
To: [EMAIL PROTECTED]
Subject: tomcat connection/port problem
[Thu Jul 24 09:01:26 2003]  [jk_ajp_common.c (642)]: sending 
to ajp13 #79
[Thu Jul 24 09:01:27 2003]  [jk_ajp_common.c (681)]: ERROR: can't 
receive the response message from tomcat, network problems or tomcat is down.
...

   

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




problem finding css

2003-07-24 Thread Astrid Wagner
Hi,
I am using Apache 1.3 with tomcat 4.1.24.
When I use netscape 7 to run my web application everything works fine.
When I use e.g netscape 4 the style sheets can not be found.
How do I have to configure Apache/tomcat ?
In the html page the source is refered to as:
  link href=/main.css rel=stylesheet type=text/css

Right now  I have in http.conf:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
Thanks for any hint ..

Astrid


Re: problem finding css

2003-07-24 Thread Astrid Wagner
No I forgot to state that http.conf has also:
DocumentRoot /home/minerva/servers/upolu//ipr_files/static_html
otherwise it wouldn't  find it in any case.
I assume the main.css is looked up in 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
because of my:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webapps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost
directive.
Somehow new netscape versions seem to go to the next DocumentRoot to 
find a resource when not found in first because
as stated before it works with netscape 7.
My problem is therefore:
How do I tell Apache to take main.css from the global DocumentRoot in 
http.conf and only the web
application from the one in the VirtualHost directive. Static text as 
well as web should use the same machine/port number.
I guess I have to read about the VirtualHost tag more.
Thanks anyway.
Astrid

Ralph Einfeldt wrote:

I would expect that you have to use link href=/html/main.css ...
to get the file. Otherwise the alias directive won't match.
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: problem finding css 



  link href=/main.css rel=stylesheet type=text/css

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
   

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




Re: problem finding css

2003-07-24 Thread Astrid Wagner
For my purposes it was wrong to use the VirtualHost directive because
my web appl. runs on same host /port.
I just left the JkMount directive and it works with old and new netscape 
version.
The mapping to the web appl. doc root is done by workers.properties and
server.xml and I thought I have to do this in httpd.conf
Thanks.
Astrid

Astrid Wagner wrote:

No I forgot to state that http.conf has also:
DocumentRoot /home/minerva/servers/upolu//ipr_files/static_html
otherwise it wouldn't  find it in any case.
I assume the main.css is looked up in 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webap
ps/iprweb
because of my:
VirtualHost *
 DocumentRoot 
/home/oraedt/app/oracle/product/9iAS_1.0.2.2/jakarta-tomcat-4.1.24/webap
ps/iprweb
 ServerName upolu.sps.mot.com
 JkMount /iprweb/* ajp13
/VirtualHost
directive.
Somehow new netscape versions seem to go to the next DocumentRoot to 
find a resource when not found in first because
as stated before it works with netscape 7.
My problem is therefore:
How do I tell Apache to take main.css from the global DocumentRoot 
in http.conf and only the web
application from the one in the VirtualHost directive. Static text 
as well as web should use the same machine/port number.
I guess I have to read about the VirtualHost tag more.
Thanks anyway.
Astrid

Ralph Einfeldt wrote:

I would expect that you have to use link href=/html/main.css ...
to get the file. Otherwise the alias directive won't match.
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 12:35 PM
To: [EMAIL PROTECTED]
Subject: problem finding css
  link href=/main.css rel=stylesheet type=text/css

   Alias   /html/  /home/minerva/servers/upolu/ipr_files/static_html/

The main.css is installed in 
/home/minerva/servers/upolu/ipr_files/static_html.
  


-
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]


running as diff. account

2003-07-24 Thread Astrid Wagner
Hi,
This may be off topic but maybe someone else had this requirement:
I need to call a system call running in a different account than the
account the web application runs:
E.g All web applications etc. run as accountA but my web application needs
to call a rsh command (via native interface) run as accountB.
Thanks a lot.
Astrid
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: running as diff. account

2003-07-24 Thread Astrid Wagner
Hi,
Can you detail the second solution a little bit:
I can create a shell sript with my rsh system command in it and owned by
accountB but it will still run as accountA when called by a servlet, 
won't it.
I am no unix expert, maybe you have an example.
Thanks
Astrid

Ralph Einfeldt wrote:

There are a couple of solutions that allow you to achive that.

Which solution is best, depends on your requirements.

Some solutions that require a wrapper script:
- script that calls rsh by super or sudo or something like that
- script that is owned by accountB and has the setuid bit set
  and calls the rsh command directly
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: running as diff. account
E.g All web applications etc. run as accountA but my web 
application needs to call a rsh command (via native 
interface) run as accountB.
   

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




Re: running as diff. account

2003-07-24 Thread Astrid Wagner


John Turner wrote:

You're right, file ownership has nothing to do with run privileges.

Can you clarify what you need?

Is accountB the only account allowed to use rsh?  Or are you saying 
that you want to use rsh to login into a remote host as accountB, but 
accountA will launch rsh? 
OK. We allow a certain account accountB to be able to rsh on users 
machine with the user's account so
for example we can check their proper installation etc.
Therefore what I want to do is for example have accountB run rsh -l 
userA userAmachine  'ls /home/userA/someDir'
The .rhosts file of the users allow that access.
But tomcat as well as all DB related things run as a different account 
accountA.
So how can I get accountB to run the rsh command?
I hope I did not confuse you too much ?!
Astrid



If the latter, then use the -l command-line option to rsh to specify 
the remote host account name to use, just as you would with ssh.

John

Astrid Wagner wrote:

Hi,
Can you detail the second solution a little bit:
I can create a shell sript with my rsh system command in it and owned by
accountB but it will still run as accountA when called by a servlet, 
won't it.
I am no unix expert, maybe you have an example.
Thanks
Astrid

Ralph Einfeldt wrote:

There are a couple of solutions that allow you to achive that.

Which solution is best, depends on your requirements.

Some solutions that require a wrapper script:
- script that calls rsh by super or sudo or something like that
- script that is owned by accountB and has the setuid bit set
  and calls the rsh command directly
 

-Original Message-
From: Astrid Wagner [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: running as diff. account
E.g All web applications etc. run as accountA but my web 
application needs to call a rsh command (via native interface) 
run as accountB.
  


-
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]


which mod_jk.so to use with Apache 1.3

2003-07-17 Thread Astrid Wagner
Hi,

I try to connect tomcat 4.1.24 to an existing Apache 1.3 installation 
(Solaris 8).
To do so I read I need mod_jk.so and I found a download page
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.2/bin/solaris8/
but below it says to get

   * mod_jk2-1.3-eapi.so is for Apache 1.3.x with mod_ssl
   * mod_jk2-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
and they are not listed above.
Has anyone done sth. similar and can tell me what to use if my
plans aren't impossible (due to old Apache version) at all?
Thanks.
Astrid



Re: I'm officially lost with mod_jk

2003-07-17 Thread Astrid Wagner
Hi Werner,
Sorry to link into your conversation:
It seems that you went through the problems I am about to have 
(connecting tomcat 4 to Apache 1.3: Solaris 8).
Since I haven't gotten a response to a previous email:
Where did you get mod_jk ? Why did you have to compile it and
can you give more info on what steps you took to do so.
Thanks.
Astrid

Werner van Mook wrote:

Gute Morgen Simon,

I've compiled the mod_jk myself. it was easy.
 But I still have problems.
I will so you what I have.

In httpd.conf :

LoadModule jk_module modules/mod_jk.so

# MY OWN STUFF HERE
IfModule mod_jk.so
 AddModule mod_jk.c
 JkWorkersFile /etc/httpd/conf/workers.properties
 JkLogFile /etc/httpd/logs/mod_jk.log
 JkLogLevelinfo
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
/IfModule
In workers.properties :

#Define 1 real worker using ajp13

worker.list=ajp13

#Set properties for worker1(ajp13)

worker.ajp13.type=ajp13
worker.ajp13.host=www.connecties.com
worker.ajp13.port=8009
In server.xml  :

on a line after Server portt=8005 .. 

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig  
modJk=/etc/httpd/modules/mod_jk.so /

on a line just after Host name=www.connecties.com .

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig  
append=true forwardAll=false  
modJk=/etc/httpd/modules/mod_jk.so  /

And the last part of my server.xml is :

 !-- Define an Apache-Connector Service --
!--
  Service name=Tomcat-Apache
Connector  
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true appBase=webapps
 acceptCount=10 debug=0/

Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.MemoryRealm /

   Host name=www.connecties.com 
   Context path=
 docBase=/home/sites/home/web
 crossContext=true
 debug=0
 reloadable=false
 trusted=false 
   /Context
/Host
/Engine

  /Service

The output of the apache error log is :

[Wed Jul 16 09:16:27 2003] [error] (25)Inappropriate ioctl for 
device:  Error while opening the workers, jk will not work

[Wed Jul 16 09:16:28 2003] [error] (25)Inappropriate ioctl for 
device:  Error while opening the workers, jk will not work

[Wed Jul 16 09:16:29 2003] [notice] Apache/1.3.20 Sun Cobalt (Unix)  
mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.0.3pl1 mod_auth_pam_external/0.1  
FrontPage/4.0.4.3 mod_perl/1.25 configured -- resuming no
rmal operations
[Wed Jul 16 09:16:29 2003] [notice] suEXEC mechanism enabled 
(wrapper:  /usr/sbin/suexec)

This will probably say enough (for some). It tells me that jk will 
not  work. But I don't understand why.

Anybody ?





On Tuesday, July 15, 2003, at 11:29 PM, Simon Pabst wrote:

Seems you're not the only one with that problem on  
Apache/mod_jk/Tomcat on a cobalt machine:
http://www.zeffie.com/cobalt/developers/0208/162839.html

Best is propably if you (or they if you don't have permissions to do  
that) compile mod_jk on that machine
and don't use a downloaded binary.

How to do that:
http://list.cobalt.com/pipermail/cobalt-developers/2003-March/ 
038938.html

Good luck :-)

At 21:03 15.07.2003 +0200, you wrote:

HI,

I have hired a sun microsystems cobalt machine.
It comes pre configured with all kinds of internet software and a  
special edition of redhat.
It is stripped on all sides to give maximum speed and maximum disk  
space.

One of the settings is that you can't do anything with apache apart  
from restarting it with the httpd command.
Or restarting the complete box..

By now I'm trying to figure out if it is possible to have Apache2 
on  it. But I am depending on the goodwill of my provider for it.

Some how I think that having Apache 2 solves some of my problems.

We'll see.

Kind regards
Werner van Mook


On Tuesday, July 15, 2003, at 06:58 PM, Simon Pabst wrote:

hmm ok,

the Apache you are using, did it come in a package or did you 
built  from source?
Apache 1.3.20 should have apachectl in the same directory as httpd
(i.e. /path/to/apache_1.3.20/bin/apachectl)

At 18:47 15.07.2003 +0200, you wrote:

Yes I tried to use it but to no avail.

unfortunately.

Regards
Werner van Mook
On Tuesday, July 15, 2003, at 06:38 PM, Simon Pabst wrote:

did you even try my suggestion?
http://www.mail-archive.com/[EMAIL PROTECTED]/  
msg97619.html


Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet


Werner van Mook
Java Lead Developer / Trainer
Connecties Voor Internet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 

deploying with ant

2003-07-14 Thread Astrid Wagner
Hi,
I am trying to install my web application into a tomcat web installation.
I thought ant install is the right thing to do and it successfully 
performed but I can not
see any of my web part within the tomcat installation and neither can I 
call one of my  servlets.
I thought I would see my application under the webapps directory but I 
did not. Do I have to make a ant deploy?
The documentation does not say so but how do I get the web application 
to the tomcat installation?
Thanks.

Astrid

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


web.xml question

2003-07-14 Thread Astrid Wagner
Hi,
This is an (hopefully) easy question:
I run my new web application but do not seem to get the servlet to run.
I can run a simple index.html page 
(machine:port/my-web-appl/index.html) within my web application 
installation so $CATALINA_HOME/webapps/my-web-appl/index.html is
found. But when I try to call a servlet having simply in web.xml:
!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
   servlet
   servlet-nameRegEntryPage/servlet-name
   
servlet-classcom.mot.sps.ipr.ipConsumer.registration.RegEntryPage/servlet-class
   /servlet
/web-app

and by calling it in the browser with 
machine:port/my-web-appl/RegEntryPage

it fails. Has someone a quick answer?
The log file simply says:
Mapping contextPath='/iprweb' with requestURI='/iprweb/RegEntryPage'
and relativeURI='/RegEntryPage'
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying exact match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying prefix match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying extension match
2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying default match
2003-07-14 17:00:40 StandardContext[/iprweb]:  Mapped to servlet 
'default' with servlet path '/RegEntryPage' and path info 'null' and 
update=true

Thanks.

Astrid


winXP configured tomcat4.1.16 not refreshing...?

2003-07-08 Thread Winston Wagner T Quesang
i installed tomcat4.1.24 in winXP w/ SP1 bt, it has error blabla..

so i installed the older one tomcat4.1.16, but it doesn't refreshing whatever i 
edit in my .jsp files... other than that it doesn't recognize new file (either .jsp or 
.html) created in the context/folder i created.

what do you guys thing the problem? Do i miss configure or something? or there was 
really a bug in winXP?

thanks!


___
EDSAMAIL. Internet the way YOU WANT IT.
www.edsamail.com.ph

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



Serious problem with the mod_jk: j_security_check

2003-04-03 Thread Wagner Sales



Hi!

I have a serious problem with the mod_jk (JK, not JK2).
When I try to access the admin tool of tomcat, I receive the HTTP 403
error. Permission denied. 
My mod_jk.conf have the entry JkMount
/admin/j_security_check ajp13, like explained in tomcat how to. 
I´m using the following versions:

j2sdk 1.4.1_02
jakarta-tomcat-4.1.24
apache-2.0.45



Sorry by the bad english, and if possible, help!!!
 
Wagner 

Wagner Sales
Linux/UNIX Consultant
-
+55(11) 81343678


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



RES: ENC: SSL Error: no cipher suites in commom

2003-02-12 Thread Wagner
Hello Bill,

I'm using the most commom browsers.

I tested on IE 5.5 and Netscape... and got the same errors on both.

Thanks in advance,
Wagner Garcia Campagner.

-Mensagem original-
De: Bill [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 10 de fevereiro de 2003 17:28
Para: [EMAIL PROTECTED]
Assunto: Re: ENC: SSL Error: no cipher suites in commom


This is likely an issue with your browser not Tomcat.  What browser
version are you running?

-b

On Tue, 2003-02-11 at 14:30, Wagner wrote:
 Hello,

 Nobody knows what can be wrong with my configuration??

 I really need this SSL connection to work...

 The certificate is a v3 verisign and i'm using tomcat 3.3.1a

 Thanks again in advance,
 Wagner.


 -Mensagem original-
 De: Wagner [mailto:[EMAIL PROTECTED]]
 Enviada em: terça-feira, 11 de fevereiro de 2003 11:39
 Para: [EMAIL PROTECTED]
 Assunto: SSL Error: no cipher suites in commom


 Hello,

 I'm trying to set a SSL for Tomcat standalone... but i'm getting the
error:

 PoolTcpEndpoint: Handshake failed
 javax.net.ssl.SSLHandshakeException: no cipher suites in common

 When i try to open a SSL conection...



 What i did was:

 - generate a RSA request using Openssl,
 - after the certificate arrived, i did the command: openssl pkcs7 -inform
 PEN -in cert.p7c -print_certs to separate the CA certificate and the
client
 certificate,
 - then i imported the CA certificate to cacerts file with:
 keytool -import -alias certsign -file CA_certfile - keystore cacerts
 - then i imported the client certificate with: keytool - import -alias
 client -file client_certfile - keystore client.keystore
 - the i edited the server.xml file with the lines:

 Http10Connector
   port=443
   secure=true
   keystore=C:\j2sdk1.4.1_01\jre\lib\security\client.keystore
   keypass=client /


 Is there anything wrong Any misconfiguration

 I've tried to install the same certificate on apache and it worked fine.

 Thanks in advance,
 Wagner Garcia Campagner.
 


 -
 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]




RES: SSL Error: no cipher suites in commom

2003-02-12 Thread Wagner
Hello Tony,

I am using Tomcat 3.3.1a...

The factory declaration is used only in version 4... am i wrong??

Thanks a lot,
Wagner Garcia Campagner.


-Mensagem original-
De: Tony Dahbura [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 11 de fevereiro de 2003 20:41
Para: Tomcat Users List
Assunto: Re: SSL Error: no cipher suites in commom


Wagner:

The keystorefile and pass are part of the factory declaration not the
connector:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
  acceptCount=100 debug=99 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true

  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
 keystoreFile=conf/keystore
 keystorePass=changeit /
/Connector


Tony


Wagner wrote:

  Hello,I'm trying to set a SSL for Tomcat standalone... but i'm
 getting the error:PoolTcpEndpoint: Handshake failed
 javax.net.ssl.SSLHandshakeException: no cipher suites in commonWhen i
 try to open a SSL conection...What i did was:- generate a RSA request
 using Openssl,- after the certificate arrived, i did the command:
 openssl pkcs7 -inform PEN -in cert.p7c -print_certs to separate the CA
 certificate and the client certificate,- then i imported the CA
 certificate to cacerts file with: keytool -import -alias certsign
 -file CA_certfile - keystore cacerts- then i imported the client
 certificate with: keytool - import -alias client -file client_certfile
 - keystore client.keystore- the i edited the server.xml file with the
 lines:Http10Connector
   port=443
   secure=true
   keystore=C:\j2sdk1.4.1_01\jre\lib\security\client.keystore

   keypass=client /
 Is there anything wrong Any misconfigurationI've tried to
 install the same certificate on apache and it worked fine.Thanks in
 advance,Wagner Garcia Campagner.


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

--
Tony Dahbura
Deployment Director
Opsware Business Practice
EDS Inc.
13900 Lincoln Park Drive
Suite 405/WH-OPS
Herndon, VA  20171
voice: 703.742.1280
fax: 703.742.1163
[EMAIL PROTECTED]



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




RES: SSL Error: no cipher suites in commom

2003-02-12 Thread Wagner
Hello Tony,

I tested on Tomcat 4.1... and still couldn't make a SSL cennection...

I think that the problem is with Keytool...

Because i have a v1 selfsigned certificate that worked with version 3 and 4
of Tomcat...

But my verisign v3 certificate just don't work...

Does anybody know something about keytool and importing v3 certificates??

I tested the certificate on apache and it worked fine...

Thanks a lot,
Wagner.

-Mensagem original-
De: Wagner [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 12 de fevereiro de 2003 09:10
Para: 'Tomcat Users List'
Assunto: RES: SSL Error: no cipher suites in commom


Hello Tony,

I am using Tomcat 3.3.1a...

The factory declaration is used only in version 4... am i wrong??

Thanks a lot,
Wagner Garcia Campagner.


-Mensagem original-
De: Tony Dahbura [mailto:[EMAIL PROTECTED]]
Enviada em: terca-feira, 11 de fevereiro de 2003 20:41
Para: Tomcat Users List
Assunto: Re: SSL Error: no cipher suites in commom


Wagner:

The keystorefile and pass are part of the factory declaration not the
connector:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443 minProcessors=5 maxProcessors=75
   enableLookups=true
  acceptCount=100 debug=99 scheme=https secure=true
   useURIValidationHack=false disableUploadTimeout=true

  Factory
className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
   clientAuth=false protocol=TLS
 keystoreFile=conf/keystore
 keystorePass=changeit /
/Connector


Tony


Wagner wrote:

  Hello,I'm trying to set a SSL for Tomcat standalone... but i'm
 getting the error:PoolTcpEndpoint: Handshake failed
 javax.net.ssl.SSLHandshakeException: no cipher suites in commonWhen i
 try to open a SSL conection...What i did was:- generate a RSA request
 using Openssl,- after the certificate arrived, i did the command:
 openssl pkcs7 -inform PEN -in cert.p7c -print_certs to separate the CA
 certificate and the client certificate,- then i imported the CA
 certificate to cacerts file with: keytool -import -alias certsign
 -file CA_certfile - keystore cacerts- then i imported the client
 certificate with: keytool - import -alias client -file client_certfile
 - keystore client.keystore- the i edited the server.xml file with the
 lines:Http10Connector
   port=443
   secure=true
   keystore=C:\j2sdk1.4.1_01\jre\lib\security\client.keystore

   keypass=client /
 Is there anything wrong Any misconfigurationI've tried to
 install the same certificate on apache and it worked fine.Thanks in
 advance,Wagner Garcia Campagner.


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

--
Tony Dahbura
Deployment Director
Opsware Business Practice
EDS Inc.
13900 Lincoln Park Drive
Suite 405/WH-OPS
Herndon, VA  20171
voice: 703.742.1280
fax: 703.742.1163
[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]




SSL Error: no cipher suites in commom

2003-02-11 Thread Wagner



Hello,

I'm trying to set a 
SSL for Tomcat standalone... but i'm getting the error:

PoolTcpEndpoint: 
Handshake failedjavax.net.ssl.SSLHandshakeException: no cipher suites in 
common

When i try to open a 
SSL conection...



What i did 
was:

- generate a RSA 
request using Openssl,
- after the 
certificate arrived, idid the command: openssl pkcs7 
-informPEN -in cert.p7c -print_certs to separate the CA 
certificate and the client certificate,
- then i imported 
the CA certificate to cacerts file with: keytool -import -alias 
certsign -file CA_certfile - keystore cacerts
- then i imported 
the client certificate with: keytool - import -alias client -file 
client_certfile - keystore client.keystore
- the i edited the 
server.xml file with the lines:

Http10Connector 
port="443" 
secure="true" 
keystore="C:\j2sdk1.4.1_01\jre\lib\security\client.keystore" 
keypass="client" /

Is there anything 
wrong Any misconfiguration

I've tried to 
install the same certificate on apache and it worked fine.

Thanks in 
advance,
Wagner Garcia 
Campagner.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ENC: SSL Error: no cipher suites in commom

2003-02-11 Thread Wagner



Hello,

Nobody 
knows what can be wrong with my configuration??

I 
really need this SSL connection to work...

The 
certificate is a v3 verisign and i'm using tomcat 3.3.1a

Thanks 
again in advance,
Wagner.


-Mensagem original-De: Wagner 
[mailto:[EMAIL PROTECTED]]Enviada em: terça-feira, 11 de 
fevereiro de 2003 11:39Para: 
[EMAIL PROTECTED]Assunto: SSL Error: no cipher suites in 
commom
Hello,

I'm trying to set a 
SSL for Tomcat standalone... but i'm getting the error:

PoolTcpEndpoint: 
Handshake failedjavax.net.ssl.SSLHandshakeException: no cipher suites in 
common

When i try to open a 
SSL conection...



What i did 
was:

- generate a RSA 
request using Openssl,
- after the 
certificate arrived, idid the command: openssl pkcs7 
-informPEN -in cert.p7c -print_certs to separate the CA 
certificate and the client certificate,
- then i imported 
the CA certificate to cacerts file with: keytool -import -alias 
certsign -file CA_certfile - keystore cacerts
- then i imported 
the client certificate with: keytool - import -alias client -file 
client_certfile - keystore client.keystore
- the i edited the 
server.xml file with the lines:

Http10Connector 
port="443" 
secure="true" 
keystore="C:\j2sdk1.4.1_01\jre\lib\security\client.keystore" 
keypass="client" /

Is there anything 
wrong Any misconfiguration

I've tried to 
install the same certificate on apache and it worked fine.

Thanks in 
advance,
Wagner Garcia 
Campagner.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HELP, PLEASE! Tomcat creates too many threads!

2003-01-07 Thread Wagner José Queiroz de Santana

Hello all,

Im running Apache and Tomcat in  a Linux machine, after a couple
days and several accesses
to my applications, Tomcat creates several threads/processes that stay
sleeping, as you can see at the end of
this e-mail.
Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java
1.4.0_01.
If I don't restart my tomcat, it will exceed the maximum number of
processes the user can execute and
it will block, turning my applications offline.
Is there any solution to this problem? How is it possible to avoid
the creation of so many processes?

I really appreciate any help you can give me.

These lines are only a few ones I get when I run the ps -elf command:

040 S root 13849  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 13850  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19616  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19619  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19628  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26732  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26754  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 31033  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  4677  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  4687  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  5470  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:01 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6154  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6161  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  6165  8678  0  60   0- 58223 tcp_re Jan06 ?00:00:00 
/usr/local/j2sdk1.4.0_01/bin/java -Djava.endorsed.dirs=/usr/local/jakarta-tomcat








--
Wagner Santana
Analista de Sistemas - TIM
Av. Conde da Boa Vista, 800
081 3216-2713081 99136661




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




Re: Tomcat 4.x and Java Processes

2003-01-07 Thread Wagner José Queiroz de Santana

Dear friends,

I think its valuable to mention that when you use green threads you'll loose
the
benefits of SMP processing, I mean, your threads will run in a single processor
even
if your machine has more than one.

Troy J. Kelley wrote:

 Yes, sorry, I forgot to mention that.  Are there options for threading
 on linux?  I think on Solaris, you can do green or native threads.  If
 so, would a change in this setting reduce the JVM to a single pid?

 Thanks for the quick reply!

 -Troy

 -Original Message-
 From: Ben Ricker [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 07, 2003 3:13 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.x and Java Processes

 Are you using Linux? Linux shows in-process threads as processes. If you
 are running Linux, then you are seeing threads within the Java process.
 You would expect to see a number of threads even with your simple
 config.

 Ben Ricker

 On Tue, 2003-01-07 at 14:07, Troy J. Kelley wrote:
  I've been looking all over for the answer to this and can't seem to
 find
  a good answer.
 
  My basic question is that when I start up a *very* basic tomcat config
  (JMX Support, HTTP Listener, one engine, one host, once context) I get
  several java processes that look the same:
 
 
  root  5865  0.0  5.7 227380 29548 ?  S15:02   0:02
  /usr/java/jdk/bin/java -Djava.endorsed.dirs= -classpath
  /usr/java/jdk/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
  -Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
  -Djava.io.tmpdir=/var/tomcat4/temp
 org.apache.catalina.startup.Bootstrap
  start
 
  So, why are there so many processes?  I set minProcessors=1
  maxProcessors=1 for the Coyote HTTP connector to reduce the number
 of
  JVMs related to this...
 
  In the WebSphere world a JVM is synonymous with an Application
 Server,
  which services the requests for the modules (WAR/EAR) installed into
  the appserver.
 
  Any insight would be greatly appreciated.
 
  -Troy
  [EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 --
 Ben Ricker [EMAIL PROTECTED]
 Wellinx.com

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

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

--
Wagner Santana
Analista de Sistemas - TIM
Av. Conde da Boa Vista, 800
081 3216-2713081 99136661




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




Apache is buffering Tomcat' Responses?

2002-10-24 Thread Hanno Wagner
Hi,

I am quite new to the thematic of Tomcat together with Apache. I am
running a project where in the first step a Tomcat-Configuration
standalone was used to have a WebApplication running.

To be able to use the .htaccess-Feature from Apache (since I really
know only apache and not tomcat), I switched the
Tomcat-Configuration from Tomcat-Standalone to Apache-Tomcat and
configured the Apache to use the Tomcat-Connector for one directory
(/wow/).

The application running on the Tomcat shall send a (more or less)
continuous stream of data to the Browser of the user, a
java-application is receiving the data and displays it in its
window.

Since I use the Apache between the Browser and Tomcat, something
seems to buffer the data Tomcat is sending out: I see in the
catalina.out that it is sending out data (DEBUG: message #3222
delivered), but with a snoop/tcpdump I see that no data is send out
from my Webserver to the client. Therefore, I assume that Apache is
buffering there.

Does anyone else know this behaviour and can tell me how to fix it?

Ciao, Hanno
-- 



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Tomcat Hangs-UP...

2002-05-29 Thread Wagner Danda

Hello,
Hi,

my comments are below.

-
Okay, a simple answer from a simple mind:
Check that you are closing resources in your java code appropriately. Don't rely on 
garbage collection!

Are you closing any files opened by your Java code?
Yes, I am.


Are you always closing your jdbc SQL statements/result sets, etc...?
Yes, I am. If I don´t close-it, I will get TooMayOpenCursors errors. I´ve already 
fixed this problem.


Are you closing your Oracle connections? Are there too many open connections?
I am using an Oracle implementation of connection pool. Every user that log on system 
get an connection from that pool. The connection will not br released until this user 
close the browser window, or
the tomcat session gets timeout (30 minutes).
Tomcat is hanging with 130 (more or less) connections out of the pool (about 110 
users).


Are there any blocking db locks?
No, there are not.



I have had this problem before where my db connected application had not committed 
it's transaction and ended up hanging tomcat. Always check to see that your resources 
are being released and
not halting other requests.
Our methods that use/need transaction (doing updates or deletes) always do commit or 
rollback, BUT, for connections that only do select querys, commit or rollback are 
never called. MAY THIS BE
A PROBLEM Remember that an connection is associated with the user (browser) 
session...




Since you're using Oracle, check the V$SESSION view  to make sure you don't have more 
active connections than you believe you should have. Check the v$session_wait to make 
sure nothing is
blocked. I'll bet a t-shirt that it's a db problem. If you can't get to those views, 
ask your friendly dba to help.
I am already doing this for a long time, and we are not having this problem.



Well, just to inform about our situation:
our application is already in production, and there is about 300 users TRYING to 
use-it... Another thing, our company depends 100% of this software.

More about our structure:
we are using an arrowpoint cluster with 2 Sun UltraSparc (see descriptions below). And 
fortunetly, wen tomcat hangs in one machine, the users can go the another tomcat. BUT, 
at every tomcat stop,
all users of that machine have to re-login into the another tomcat (because the user 
loose his session).


Any other help? Any idea??

Please, we are almost givin up of tomcat and changing to another payed solution (like 
Websphere, JRun, ...)

PS: we are trying to solve this problem since 4 months ago!!! We arealdy tried A LOT 
of alternatives solutions... We neen and serius help.



thank you all in advance,


Wagner Danda
[EMAIL PROTECTED]
Sun Java Certified Programmer for the Java 2 [tm]


 [EMAIL PROTECTED] 05/28/02 07:24PM 
Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the classic OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

 -- Mensagem original ---

 De  : Rui Oliveira [EMAIL PROTECTED]
 Para: [EMAIL PROTECTED]
 Cc  :
 Data: Tue, 28 May 2002 18:54:36 +0100
 Assunto : Tomcat Hangs-UP...

 Hello,



 I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
 executing for a while, the Tomcat just Hangs-UP and the only way of
 restarting it is to kill the Tomcat process.



 My configuration is the following:



 - SunOS 5.8

 - Solaris 8

 - JRE 1.3.1_03

 - Tomcat 4.0.3



 Does anyone have a clue on what is the problem?





 Regards

 Rui Oliveira





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



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




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




Re: Tomcat Hangs-UP...

2002-05-28 Thread Wagner Danda S. Filho

Here, we have the same problem!!! What can it be?

Our configuration:

 - SunOS 5.8;
 - Solaris 8;
 - Dual UltraSparc 400Mhz;
 - J2SE SUN 1.4;
 - Tomcat 4.0.3;
 - We are using -Xmx1024 -Xms512;
 - MaxProcessors=250, MinProcessors=10, acceptCount=250;
 - Oracle Thin JDBC;

PS 1: we are not having the classic OutOfMemory error. Tomcat just
hangs-up with no reason.
PS 2: We already used OptimizeIt to tune the application.
PS 3: Tomcat stops even with a low rate of usage.

Wagner Danda

 -- Mensagem original ---

 De  : Rui Oliveira [EMAIL PROTECTED]
 Para: [EMAIL PROTECTED]
 Cc  :
 Data: Tue, 28 May 2002 18:54:36 +0100
 Assunto : Tomcat Hangs-UP...

 Hello,



 I have a Tomcat Server running on Solaris as JSP and WEB server. Aft
er
 executing for a while, the Tomcat just Hangs-UP and the only way of
 restarting it is to kill the Tomcat process.



 My configuration is the following:



 - SunOS 5.8

 - Solaris 8

 - JRE 1.3.1_03

 - Tomcat 4.0.3



 Does anyone have a clue on what is the problem?





 Regards

 Rui Oliveira





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




Re: Stdout and Stderr

2002-05-18 Thread Wagner Danda

Hello,

I already find these configuration, at catalinha.sh:

  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 21 

I changed to:
  org.apache.catalina.startup.Bootstrap $@ start \
   $CATALINA_BASE/logs/catalina.out 2 
$CATALINA_BASE/logs/catalina.err 

Thanks!

Wagner Danda

Jeff Macomber wrote:

Generally these messages are in catalina.out or localhost_log...  

Jeff

-Original Message-
From: Wagner Danda [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:52 PM
To: Tomcat Users List
Subject: Stdout and Stderr


Hello,

in tomcat 4, where can I get the stderr and the stdout? Better, where 
can I see the tomcat errors (like OutOfMemory and others)?

Thanks in advance,
Wagner Danda


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

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






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




Re: Heap Size for Tomcat

2002-05-16 Thread Wagner Danda

Hello,


is it important to use the -Xms and -Xmx with tomcat? Doesn´t he already 
manage the heap? When I should use this and when I should not?

Thanks.

Wagner Danda

Phillip Morelock wrote:

The official way to do it is to set a
TOMCAT_OPTS
or
CATALINA_OPTS

variable with the string that you would normally feed the VM.  (like -Xms or
whatever).  TOMCAT is for 3.x, CATALINA is for 4.x

cheers
fillup



On 5/16/02 3:57 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

my understanding is that any parameters you pass to bin/startup.bat or
bin/startup.sh on the command line will be passed through to the java vm,
such as mx128m or -D property=something .





 
Jacob Hookom
[EMAIL PROTECTED] To:  'Tomcat Users List'
[EMAIL PROTECTED]
du  cc:
 Subject: Heap Size for Tomcat
05/16/2002 01:57
PM
Please respond
to Tomcat Users
List
 
 




Hello All,

I was wondering where I can modify the initial heap size settings for
tomcat to use.  Or more primarily, where the command line is that tomcat
uses to initialize its VM.

Thanks,
Jake Hookom

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002



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






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



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







Stdout and Stderr

2002-05-16 Thread Wagner Danda

Hello,

in tomcat 4, where can I get the stderr and the stdout? Better, where 
can I see the tomcat errors (like OutOfMemory and others)?

Thanks in advance,
Wagner Danda


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




Re: VM size increases.

2002-05-14 Thread Wagner Danda

Hi Philip,

do you know any memory leak associated with the Oracle Thin JDBC driver?

Thank you in advance.

-
Wagner Danda
Sun Certified Programmer for JavaT 2 Platform

- Original Message -
From: Phillip Morelock [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 4:33 AM
Subject: Re: VM size increases.


 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

That's your problem

This is NOT a production quality driver, it's a JDBC type 1 hack.  It's got
known problems and Sun specifically tells you to use it for testing only.

I recommend MS's beta SQL Server driver (which I believe but don't know
for sure is mostly a repackaging of a commercial product from Merant)...it's
quite good, robust, and fast for most purposes, although it may have some
hidden problems that I personally have not run across.

Wait, I just checked -- evidently it is no longer beta!
 http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u
rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml

good luck -- this is what I use -- now I will have to upgrade my customers
to the release version.
fillup

On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote:

 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 10:45 AM
 To: Tomcat Users List
 Subject: Re: VM size increases.


 Hi Rajesh,

 Let me know about your JDBC.
 I suppose you are using JNI for Database connectivity.

 Regards,
 Watanabe

 In the message VM size increases.

 [EMAIL PROTECTED]
 Rajesh Mishra [EMAIL PROTECTED] wrote:


 Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
 Rajesh problems mentioned below..

 Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
 Rajesh and it doesn't come down. As a result machine hangs.I've
 Rajesh closed database connections and Resultset's everywhere I
 Rajesh accessed database.

 Rajesh 2. On running Web Application Stress testing tool for 2 days
 Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh Rajesh

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


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

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



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




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




HOWTO: Multiple tomcat instances: Apache 1.3.x - Tomcat 4.x - mod_webapp

2001-12-26 Thread Joseph Wagner

Hello everybody,

I recently spent some time setting up a server with a single apache instance and 
multiple tomcat instances - for use as a shared hosting environment. I wasn't able to 
find much official documentation on this topic, so I put together a short HOWTO on the 
subject:

http://www.javadyne.com/HOWTO-tomcat-shared.html

Please send any comments, suggestions, corrections, etc. to [EMAIL PROTECTED]

Joe



ldap authentication with tomcat

2001-08-22 Thread Astrid Wagner

Hi,

I am new to the subject:
How can I enforce ldap authentication for certain resources
using tomcat - similar to the

Directory  toProtectResourcePath 
Options FollowSymLinks
AllowOverride None
AuthType Basic
AuthName Authentication
AuthLDAPURL ldap://ldapUrl
require valid-user
/Directory

for apache in order to be able to get user information via
e.g. getRemoteUser() etc. ?

And by the way: Where is a valuable description of the configuration
with server.xml and web.xml?

Thanks.

Astrid





Antwort: Re: what are war files?

2001-08-14 Thread bastian . wagner

i am developing jsp sites, but i never had to use war files. do i need them
really - what is the function of that files?

greets

bastian


 -- 
   Externe MailDmitri Colebatch [EMAIL PROTECTED]
   14.08.200108:58  
 -- 




An:   [EMAIL PROTECTED]
cc:

Thema:Re: what are war files?

a jar file containing the directory structure:

/WEB-INF/
/WEB-INF/web.xml
/WEB-INF/classes/
/WEB-INF/lib/

and named .war instead of .jar

compare examples.war (jar -tf examples.war) with the examples directory
inside webapps in the install.

hth
dim

On Tue, 14 Aug 2001 [EMAIL PROTECTED] wrote:

 sorry for that question, but i dont know it

 thx

 bastian











what are war files?

2001-08-13 Thread bastian . wagner

sorry for that question, but i dont know it

thx

bastian




how many visits can tomcat deal with

2001-08-09 Thread bastian . wagner

hi

how many visits can tomcat deal with at the same time? in other words: on
how many visit should i use load balancing to increase performance?
how many hits (or visits) is your tomcat dealing with every day?

greets

bastian




two tomcats on one pc

2001-08-09 Thread bastian . wagner

hi,

is it possible to run two instances of tomcat on one pc. one instance for
internals and one for the www. i thought of using two different ports...
ist this possible?

greets

bastian




tomcat default page

2001-08-07 Thread bastian . wagner

hi,

if  i link onto a directory wihtout a index.html, tomcat uses a default
page to display the containing files of the directory. is it possible to
edit this page? if yes, where can i find it?

thx

bastian




jasper exeption

2001-08-06 Thread bastian . wagner

hi,

i have a problem with a simple if clause in my jsp. the syntax of the code
is correct, but tomcat will not compile the page. here is the alert:
plz can u help me

greets

bastian

Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSPC:
\tomcat\work\localhost_8080%2Fbechtle\_0002ftext_0002ftext_0005fuebersicht_0002ejsptext_0005fuebersicht_jsp_15.java:227:

';' expected.
 If (1  2) {
   ^
1 error

   at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
   at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
   at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
   at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)

   at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)

   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)

   at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)





Antwort: RE: jasper exception

2001-08-06 Thread bastian . wagner

thats it - thx...





 -- 
  Externe MailLEACH, Alison [EMAIL PROTECTED] 
  06.08.200111:28   
 -- 




An:   '[EMAIL PROTECTED]' [EMAIL PROTECTED]
cc:

Thema:RE: jasper exception


Java / JSP is case-sensitive. You're starting your If with a capital I.

Alison.


___
This email is confidential and intended solely for the use of the
individual to whom it is addressed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
Sema.
If you are not the intended recipient, be advised that you have received
this
email in error and that any use, dissemination, forwarding, printing, or
copying of this email is strictly prohibited.

If you have received this email in error please notify the Sema UK
Helpdesk by telephone on +44 (0) 121 627 5600.
___








do i need ant to develop jsp pages with tomcat?

2001-07-19 Thread bastian . wagner

hi,

i am new to tomcat. i want to develop jsp pages that should interact with
databases like mysql e.g. what is ant needed for? do i need it for simple
jsp development. i just downloaded the tomcat binary and installed it. is
that all i have to do?

thx for help

cu

bastian




Email troubles

2001-04-07 Thread Niels Wagner

Hi ,

I'm sorry, but I receive al lot of mail where the mail delivery programm
complains with 


Diagnostic-Code: 501 5.1.8 [EMAIL PROTECTED]... Domain of sender
address [EMAIL PROTECTED] does not exist

I receive only the status text and not the message, which i'm interested in.

I could also help you solving this problem. But since i cannot receive your
email here, you could contact me  over [EMAIL PROTECTED]

Thank you
Niels



Building Tomcat-3.2.1

2001-03-18 Thread Niels Wagner

Hi everybody,

i downloaded the source of tomcat 3.2.1 and tried to build it. I followed the
README and got ant, jaxp (1.0.1), jsse ...

My setup:

SuSE Linux 7.0, IBMJava2-13.

Environment variables
export JAKARTA_HOME=/opt
export TOMCAT_HOME=/opt/jakarta-tomcat-3.2.1
export JAVA_HOME=/opt/IBMJava2-13
export JNDI_HOME=/usr/lib
export JSSE_HOME=/usr/lib
export JMX_HOME=/usr/lib
export REGEXP_HOME=/usr/src/packages/SOURCES/jakarta-regexp-1.2/build
export SERVLETAPI_HOME=/opt/dist/servletapi
export JAXP_HOME=/opt/jaxpi-1.0.1
export
CLASSPATH=/opt/IBMJava2-13/:/opt/IBMJava2-13/lib:/usr/lib:/opt/IBMJava2-13/lib/tools.jar:/opt/jaxp-1.0.1/jaxp.jar:/opt/dist/ant/lib/ant.jar:/opt/IBMJava2-13/jre/lib/rt.jar:/opt/jaxp-1.0.1/parser.jar:/usr/lib/jsse.jar:/opt/dist/servletapi/lib/serlvet.jar
export COCOON_HOME=/var/cocoon

The error i get when building:

Buildfile: /opt/jakarta-tomcat-3.2.1-src/build.xml

prepare:
 [copy] Copying 1 files to /opt/build/tomcat/conf
 [copy] Copying 1 files to /opt/build/tomcat/lib

tomcat:
[javac] Compiling 6 source files to /opt/build/tomcat/classes
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/net/SSLSocketFactory.java:67:
Class javax.net.ServerSocketFactory not found in import.
[javac] import javax.net.ServerSocketFactory;
[javac]^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletResponseFacade.java:84:
class org.apache.tomcat.facade.HttpServletResponseFacade must be declared
abstract. It does not define void resetBuffer() from interface
javax.servlet.ServletResponse.
[javac] final class HttpServletResponseFacade  implements
HttpServletResponse
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82:
class org.apache.tomcat.facade.ServletContextFacade must be declared abstract.
It does not define java.util.Set getResourcePaths() from interface
javax.servlet.ServletContext.
[javac] final class ServletContextFacade implements ServletContext {
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/ServletContextFacade.java:82:
class org.apache.tomcat.facade.ServletContextFacade must be declared abstract.
It does not define java.lang.String getServletContextName() from interface
javax.servlet.ServletContext.
[javac] final class ServletContextFacade implements ServletContext {
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83:
class org.apache.tomcat.facade.HttpServletRequestFacade must be declared
abstract. It does not define java.lang.StringBuffer getRequestURL() from
interface javax.servlet.http.HttpServletRequest.
[javac] final class HttpServletRequestFacade implements HttpServletRequest {
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83:
class org.apache.tomcat.facade.HttpServletRequestFacade must be declared
abstract. It does not define void setCharacterEncoding(java.lang.String) from
interface javax.servlet.ServletRequest.
[javac] final class HttpServletRequestFacade implements HttpServletRequest {
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/tomcat/facade/HttpServletRequestFacade.java:83:
class org.apache.tomcat.facade.HttpServletRequestFacade must be declared
abstract. It does not define java.util.Map getParameterMap() from interface
javax.servlet.ServletRequest.
[javac] final class HttpServletRequestFacade implements HttpServletRequest {
[javac] ^
[javac]
/opt/jakarta-tomcat-3.2.1-src/src/share/org/apache/jasper/runtime/PageContextImpl.java:99:
class org.apache.jasper.runtime.PageContextImpl must be declared abstract. It
does not define void handlePageException(java.lang.Throwable) from class
javax.servlet.jsp.PageContext.
[javac] public class PageContextImpl extends PageContext {
[javac]  ^
[javac] Note: 2 files use or override a deprecated API.  Recompile with
"-deprecation" for details.[javac] 8 errors, 1 warning

BUILD FAILED

/opt/jakarta-tomcat-3.2.1-src/build.xml:94: Compile failed, messages should have
been provided.

Total time: 28 seconds


I suppose the javax stuff is in the jaxp/parser jars. I tried Version 1.1 and
1.0.1 from sun.


Any ideas ?

Thanks in advance


Niels



help! getting it to work with MS PWS4

2001-03-11 Thread Jan Wagner

Hi,

I just don't seem to get it up and working in windows 98 with PWS 4. I
installed the JDK 1.2.2 first, then Tomcat, and set up the windows
registry according to instructions. The ISAPI redirector works, but
trying to open the example page gives an "server or dns not found"
error. HTTP log says erro 500 0. The Tomcat log contains

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed

And yes, I did go through all files in \conf\ and replaced did set the
Tomcat base home directory and JDK 1.2.2 base home directory in each.
JDK 1.2.2 directory contains \lib\tools.jar , and CLASSPATH points to
E:\Java\JDK122\LIB\ too.

Please, why doesn't it work?
The documentation seems to be awfully sparse and uninformative...

 - Jan


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




Re: MySQL driver - java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

2001-02-26 Thread Niels Wagner

Hi,
 I try to use MySQL to access the database.
 I set the drivername = "org.gjt.mm.mysql.Driver";
 and set   URL = "jdbc:odbc:test";
I'm not using exactly the same configuration (Tomcat 4.0,cocoon) but my urls
look like url=jdbc:mysql://localhost/db_name

 and I included the "c:\mm.mysql-2.0.2-bin.jar" in the CLASSPATH, I got
 the classNotFoundException.
I'm using Linux, but I had to 'jar -xf ... ' the downloaded jar-file and copy
the mysql.jar (in the extracted directory) to the lib-directory of tomcat and
cocoon and put it in my classpath. I hope this helps you, but I installed the
driver only yesterday and didn't have time to find the exact location. Maybe
this is a little overkill, but it works.


Bye

Niels Wagner

-------
ping-tec
N. Wagner

Saumarkt 8a

91781 Weienburg

Tel.: 09141/923721
Fax.: 09141/923722
Mobil: 0177/6329448
[EMAIL PROTECTED]

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