WebDAV characters bug?

2005-10-03 Thread Roland Rabben
I am using Tomcat 5.5.9 (on Windows XP) and WebDAV to upload files to my
server. However it seems to be a bug or limitation in the Tomcat WebDAV
that limits the use of some characters I frequently use.

Unsupported characters are :
; (semicolon)
+ (plus)
# (pound)

I know these are reserved characters, so I have tried to URL encode
them, but Tomcat ignores the URL encoding and writes the URL encoded
filenames to disk. Eg. myfile;01.txt is saved like myfile%B301.txt
on the server. Tomcat is configured to do URL Encoding. If I don't do
URL Encoding it simply cuts the end of the filename from semicolon like
myfile.

This is my Connector configuration in server.xml:
 Connector port=80 
 maxHttpHeaderSize=8192 useBodyEncodingForURI=true
URIEncoding=UTF-8
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /

I also tested this in Tomcat 5.5.12 with same problems. I have tested
several clients. IE 6.0, DavExplorer and own code.

The reason I think this is a bug is because these characters are
supported by Apache/mod_dav. 
Anyone know of a fix to this problem, or if it is a known bug?

Regards
Roland Rabben
Technical Director
Scala Nordic AS
[EMAIL PROTECTED]

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



RE: How to logout after login with JDBCRealm?

2005-10-03 Thread Raghupathy,Gurumoorthy
What type of authentication are you using ? FORM / BASIC ?


If Basic then no you cant 
If form based then ( sesssion.invalidate() ) 

Guru

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 03 October 2005 03:08
To: Tomcat Users List
Subject: How to logout after login with JDBCRealm?


The webapp is enabled with JDBCRealm.
After login, how to logout without closing the browser?

Thnx

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



http connector secure=true

2005-10-03 Thread Reynir Hubner
Hi,

I'm trying to have one connector on tomcat open with secure=true with
out it being SSL or https. I just want request.isSecure() return true.
This is the setup for the connector :

  Connector port=9020

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   debug=99 connectionTimeout=2

   disableUploadTimeout=true secure=true scheme=http  /

The port is opened with out errors, but does never return anything, and
I see no errors in my log.
Am I missing out on something or is this a bug ?, It works fine with
tomcat 4.1.x.

Any suggestions ?
thanx
[EMAIL PROTECTED]


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



Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
I'm getting a NoClassDefFoundError in a FOP class,
PageViewport.  At line 89, the code is attempting to
do
'new Rectangle()'.

The same code works fine on 3 other systems (2
Windows,
and one Linux).  It does not work on a Linux box.
The two linux boxes have the same version of Java
(1.4.2_08-b03) and the same version of Tomcat 5.0.28).
The versions of RedHat *are* different.  I even
compiled
the code on the target Linux system.

Any ideas?

- Bob



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Jon Wingfield

Yep. It's a FAQ, but not in the FAQ.

Tomcat not quitting generally means your webapp has started a non-daemon 
thread which does not exit when the webapp is destroyed. If so, shut 
them down in a ServletContextListener.


If you aren't explicitly creating threads in your webapp then the usual 
culprits are database connections that haven't been closed (or any other 
client api to remote services that uses asynchronous messaging and/or 
keepalive semantics).


To see a dump of the threads still active after you've run shutdown.bat 
do a CTRL-BREAK in the tomcat dos console.


HTH,

Jon

Charles Fineman wrote:

I started Tomcat using startup.bat. Everything goes fine. I use
shutdown.batto bring it down. The server fields the request and shuts
down a bunch of
services (as evidenced by the messages I see). Sure enough, the server no
longer responds to any requests. Unfortunately, the java process does not
die.

I have this problem whether I start Tomcat by hand or if I use the Sysdeo
Eclipse plugin.

This problem has been a thorn in my side for some time but since it only
affects my development environment (we use it as a service in production and
there are no problems) and I can kill the process by hand, I've not worried
about it. It's annoying as heck though and I'm wondering if someone can shed
some light.

I searched around but (surprisingly!!) I didn't find anything similar to my
situation.





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



Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
May i mention also the use of *java.util.Timer in forms other than
new **java.util.Timer*(true);

If used in any other form, it silently creates a non daemon thread.

Jon Wingfield a écrit :

 Yep. It's a FAQ, but not in the FAQ.

 Tomcat not quitting generally means your webapp has started a
 non-daemon thread which does not exit when the webapp is destroyed. If
 so, shut them down in a ServletContextListener.

 If you aren't explicitly creating threads in your webapp then the
 usual culprits are database connections that haven't been closed (or
 any other client api to remote services that uses asynchronous
 messaging and/or keepalive semantics).

 To see a dump of the threads still active after you've run
 shutdown.bat do a CTRL-BREAK in the tomcat dos console.

 HTH,

 Jon

 Charles Fineman wrote:

 I started Tomcat using startup.bat. Everything goes fine. I use
 shutdown.batto bring it down. The server fields the request and shuts
 down a bunch of
 services (as evidenced by the messages I see). Sure enough, the
 server no
 longer responds to any requests. Unfortunately, the java process does
 not
 die.

 I have this problem whether I start Tomcat by hand or if I use the
 Sysdeo
 Eclipse plugin.

 This problem has been a thorn in my side for some time but since it only
 affects my development environment (we use it as a service in
 production and
 there are no problems) and I can kill the process by hand, I've not
 worried
 about it. It's annoying as heck though and I'm wondering if someone
 can shed
 some light.

 I searched around but (surprisingly!!) I didn't find anything similar
 to my
 situation.




 -
 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: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread David Delbecq
if it's *java.awt.Rectangle*
and the computer you are trying to run fop on does not have
graphical environment, maybe you should wonsider using headless java
see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless

Bob Hall a écrit :

I'm getting a NoClassDefFoundError in a FOP class,
PageViewport.  At line 89, the code is attempting to
do
'new Rectangle()'.

The same code works fine on 3 other systems (2
Windows,
and one Linux).  It does not work on a Linux box.
The two linux boxes have the same version of Java
(1.4.2_08-b03) and the same version of Tomcat 5.0.28).
The versions of RedHat *are* different.  I even
compiled
the code on the target Linux system.

Any ideas?

- Bob


   
__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-
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: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Larry Meadors
So, once you know the threads that are left, what is the cleanest way
to kill them?

I have had this problem too, but since it was on a *nix platform, and
just used 'kill' to get rid of the parent process.

Larry


On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:
 Yep. It's a FAQ, but not in the FAQ.

 Tomcat not quitting generally means your webapp has started a non-daemon
 thread which does not exit when the webapp is destroyed. If so, shut
 them down in a ServletContextListener.

 If you aren't explicitly creating threads in your webapp then the usual
 culprits are database connections that haven't been closed (or any other
 client api to remote services that uses asynchronous messaging and/or
 keepalive semantics).

 To see a dump of the threads still active after you've run shutdown.bat
 do a CTRL-BREAK in the tomcat dos console.

 HTH,

 Jon

 Charles Fineman wrote:
  I started Tomcat using startup.bat. Everything goes fine. I use
  shutdown.batto bring it down. The server fields the request and shuts
  down a bunch of
  services (as evidenced by the messages I see). Sure enough, the server no
  longer responds to any requests. Unfortunately, the java process does not
  die.
 
  I have this problem whether I start Tomcat by hand or if I use the Sysdeo
  Eclipse plugin.
 
  This problem has been a thorn in my side for some time but since it only
  affects my development environment (we use it as a service in production and
  there are no problems) and I can kill the process by hand, I've not worried
  about it. It's annoying as heck though and I'm wondering if someone can shed
  some light.
 
  I searched around but (surprisingly!!) I didn't find anything similar to my
  situation.
 



 -
 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: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread David Delbecq
That's quite a problem ;)
Actually  your threads should be coded in such a way
you may a send a notification in java telling him to finish his job.

eg:

myNonDaemonThreadICreatedMySelf.stopWorking();
which would set some flag in Thread and then code in your
Thread reading the flag knows it has to stop in a clean way.

In the past there was a way in java to 'kill' a Thread but this has
been deprecated in the Thread api. Tomcat sends a ThreadDeathError
to the thread if it tries to interact with its classloader after shutdown,
unfortunately, this is not always enough has some Threads do a
catch(Error) and then continue their job.

The best thing you can do when you have the list of threads still alive
after shutdown is to locate the irresponsible threads and fix their code :D



Larry Meadors a écrit :

So, once you know the threads that are left, what is the cleanest way
to kill them?

I have had this problem too, but since it was on a *nix platform, and
just used 'kill' to get rid of the parent process.

Larry


On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:
  

Yep. It's a FAQ, but not in the FAQ.

Tomcat not quitting generally means your webapp has started a non-daemon
thread which does not exit when the webapp is destroyed. If so, shut
them down in a ServletContextListener.

If you aren't explicitly creating threads in your webapp then the usual
culprits are database connections that haven't been closed (or any other
client api to remote services that uses asynchronous messaging and/or
keepalive semantics).

To see a dump of the threads still active after you've run shutdown.bat
do a CTRL-BREAK in the tomcat dos console.

HTH,

Jon

Charles Fineman wrote:


I started Tomcat using startup.bat. Everything goes fine. I use
shutdown.batto bring it down. The server fields the request and shuts
down a bunch of
services (as evidenced by the messages I see). Sure enough, the server no
longer responds to any requests. Unfortunately, the java process does not
die.

I have this problem whether I start Tomcat by hand or if I use the Sysdeo
Eclipse plugin.

This problem has been a thorn in my side for some time but since it only
affects my development environment (we use it as a service in production and
there are no problems) and I can kill the process by hand, I've not worried
about it. It's annoying as heck though and I'm wondering if someone can shed
some light.

I searched around but (surprisingly!!) I didn't find anything similar to my
situation.

  


-
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: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Larry Meadors
Heh, I'll call IBM and have them do just that. ;-)

It happens in their JT400 classes.

Larry


On 10/3/05, David Delbecq [EMAIL PROTECTED] wrote:
 That's quite a problem ;)
 Actually  your threads should be coded in such a way
 you may a send a notification in java telling him to finish his job.

 eg:

 myNonDaemonThreadICreatedMySelf.stopWorking();
 which would set some flag in Thread and then code in your
 Thread reading the flag knows it has to stop in a clean way.

 In the past there was a way in java to 'kill' a Thread but this has
 been deprecated in the Thread api. Tomcat sends a ThreadDeathError
 to the thread if it tries to interact with its classloader after shutdown,
 unfortunately, this is not always enough has some Threads do a
 catch(Error) and then continue their job.

 The best thing you can do when you have the list of threads still alive
 after shutdown is to locate the irresponsible threads and fix their code :D



 Larry Meadors a écrit :

 So, once you know the threads that are left, what is the cleanest way
 to kill them?
 
 I have had this problem too, but since it was on a *nix platform, and
 just used 'kill' to get rid of the parent process.
 
 Larry
 
 
 On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:
 
 
 Yep. It's a FAQ, but not in the FAQ.
 
 Tomcat not quitting generally means your webapp has started a non-daemon
 thread which does not exit when the webapp is destroyed. If so, shut
 them down in a ServletContextListener.
 
 If you aren't explicitly creating threads in your webapp then the usual
 culprits are database connections that haven't been closed (or any other
 client api to remote services that uses asynchronous messaging and/or
 keepalive semantics).
 
 To see a dump of the threads still active after you've run shutdown.bat
 do a CTRL-BREAK in the tomcat dos console.
 
 HTH,
 
 Jon
 
 Charles Fineman wrote:
 
 
 I started Tomcat using startup.bat. Everything goes fine. I use
 shutdown.batto bring it down. The server fields the request and shuts
 down a bunch of
 services (as evidenced by the messages I see). Sure enough, the server no
 longer responds to any requests. Unfortunately, the java process does not
 die.
 
 I have this problem whether I start Tomcat by hand or if I use the Sysdeo
 Eclipse plugin.
 
 This problem has been a thorn in my side for some time but since it only
 affects my development environment (we use it as a service in production 
 and
 there are no problems) and I can kill the process by hand, I've not worried
 about it. It's annoying as heck though and I'm wondering if someone can 
 shed
 some light.
 
 I searched around but (surprisingly!!) I didn't find anything similar to my
 situation.
 
 
 
 
 -
 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: Getting tomcat instance information into webapp

2005-10-03 Thread Kyle



David Kerber wrote:



Then how do I isolate the instances of tomcat (and their respective 
server.xml's?  Do I need multiple installations of tomcat on my disk?


Start each 'instance' of tomcat with separate CATALINA_BASE env. vars. 
This enables a different server.xml for each instance thereby allowing a 
different connector port for each instance. As for the webapp, you can 
still re-use the same code via the docBase and appBase variables by 
specifiying absolute paths. (read RUNNING.TXT with your install)


Does that work?

Alternatively, IF you can use the scenario where the users are 
connecting to the same app, but under different sub-directories of your 
domain, e.g.;


www.example.com/appA
www.example.com/appB
www.example.com/appC

Then, you can still have different contexts and/or realms (if 
necessary). But in this scenario, you wouldn't need multiple instances 
running on different ports would you? Just the one instance listening on 
the one port, with TC (as far as TC is concerned) serving up different 
webapps which all happen to point to the same absolute docBase/appBase, 
just with different jdbc connection params in their respective contexts 
connecting them to their relevant database. Surely, that's an acceptable 
solution if the only difference in your scenario is to have them 
connecting on different ports. This way there are also less ports open 
if in a secure environment.



USUAL DISCLAIMER: etc. etc. etc. i.e. I may not have the faintest idea 
of what I'm talking about and everything written above should be taken 
with a pinch of salt until proven to work AND perform in your environment.


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



Re: Getting tomcat instance information into webapp

2005-10-03 Thread David Kerber
Thanks for the suggestions, Kyle!  I think either one of those 
suggestions would be workable; I'll have to do some reading and testing 
to see which I like better.  The only reason I wanted them to run on 
different ports is so that I don't have to change the url's they connect 
to during this server migration.  The only mandatory difference between 
the apps is the different back-end databases.


I think I've got enough to work with now; thanks again.


Kyle wrote:



David Kerber wrote:



Then how do I isolate the instances of tomcat (and their respective 
server.xml's?  Do I need multiple installations of tomcat on my disk?


Start each 'instance' of tomcat with separate CATALINA_BASE env. vars. 
This enables a different server.xml for each instance thereby allowing a 
different connector port for each instance. As for the webapp, you can 
still re-use the same code via the docBase and appBase variables by 
specifiying absolute paths. (read RUNNING.TXT with your install)


Does that work?

Alternatively, IF you can use the scenario where the users are 
connecting to the same app, but under different sub-directories of your 
domain, e.g.;


www.example.com/appA
www.example.com/appB
www.example.com/appC

Then, you can still have different contexts and/or realms (if 
necessary). But in this scenario, you wouldn't need multiple instances 
running on different ports would you? Just the one instance listening on 
the one port, with TC (as far as TC is concerned) serving up different 
webapps which all happen to point to the same absolute docBase/appBase, 
just with different jdbc connection params in their respective contexts 
connecting them to their relevant database. Surely, that's an acceptable 
solution if the only difference in your scenario is to have them 
connecting on different ports. This way there are also less ports open 
if in a secure environment.



USUAL DISCLAIMER: etc. etc. etc. i.e. I may not have the faintest idea 
of what I'm talking about and everything written above should be taken 
with a pinch of salt until proven to work AND perform in your environment.


You don't claim to be an expert, but you definitely know more of what 
you're talking about than I do, and I appreciate the time you've taken 
to help me out.



Dave

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



Why getting this error?

2005-10-03 Thread Ritchie Gillam
Do anyone out there know why I am getting this Tomcat error?

SEVERE: Servlet.service() for servlet jsp threw exception
javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: PermGen space
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154)
at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:191)
at 
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:169)
at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
at 
com.sun.faces.taglib.html_basic.OutputTextTag.doEndTag(OutputTextTag.java:173)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_h_outputText_1(org.apache.jsp.dialSummary_jsp:271)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_h_form_0(org.apache.jsp.dialSummary_jsp:220)
at 
org.apache.jsp.dialSummary_jsp._jspx_meth_f_view_0(org.apache.jsp.dialSummary_jsp:161)
at 
org.apache.jsp.dialSummary_jsp._jspService(org.apache.jsp.dialSummary_jsp:120)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:673)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:464)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at 
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
at 
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
ca.halifax.internal.utils.HRMJGatekeeper.doFilter(HRMJGatekeeper.java:56)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.OutOfMemoryError: PermGen space


Sun Solaris 9
Tomcat 5.5.7

Thanks in advance.

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583


Tomcat + SSL problems!

2005-10-03 Thread Raueber Hotzenplotz
Hello

I need my client to communicate with a servlet using secure xmlrpc. Using
Apache's SecureWebServer works (got my own TrustManager, HostnameVerifier,
selfsigned certificates/keystores for server/client). Accessing Tomcat with a
browser (https://localhost:8443) works too (selfsigned certificate/keystore for
tomcat). But when I try to make a secure XMLRPC call to the servlet
(https://localhost:8443/myservlets/myservlet), I just get a certificate unknown
exception. When adding the selfsigned Tomcat certificate to
$JAVA_HOME/jre/lib/security/cacerts, I get this: java.io.IOException: HTTPS
hostname wrong:  should be localhost.

I guess Tomcat does not know of my certificate. With the
SecureWebServer/SecureXmlRpcClient implemenation I use an open (trust anyone)
TrustManager, HostnameVerifier.

What do I need to do?

Thanks!



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



RE: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

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



RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
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: Why getting this error?

2005-10-03 Thread Peter Crowther
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 Thanks Peter!  Can you provide an example please?   Is this 
 defined somewhere in the server.xml file?

You should be able to set JAVA_OPTS, either within
$CATALINA_HOME/bin/catalina (from memory - CHECK! - it's too long since
I had to configure Tomcat on UNIX) or from the command line before
starting Tomcat:

export JAVA_OPTS=-XX:MaxPermSize=128m

Put it in the same place as the options to set your heap size.  If you
aren't already setting the heap size by some means, my guess is that
that'll be the next out-of-memory error you get!

- Peter

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



RE: Why getting this error?

2005-10-03 Thread Trung Nguyen
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
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: Why getting this error?

2005-10-03 Thread Ritchie Gillam
Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

-
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: Why getting this error?

2005-10-03 Thread Trung Nguyen
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

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


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



Re: log4j log viewer for tomcat

2005-10-03 Thread Partheeban Boopathy
You can specify your path to write your in log4j.properties file.
 Parthi

 On 10/1/05, matador [EMAIL PROTECTED] wrote:

 win200x
 tomcat 5.5.9
 jdk 1.5.x
 log4j 1.2.9 (i think)

 standard log4j setup with logs going into logs dir under tomcat install.

 does anyone have any recommendations for a webapp or workaround that
 allows
 me to view these files. the obvious ways (e.g. ftp, ssh, etc) are not an
 option.

 thx


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




Aliases for JNDI (JDBC) resources?

2005-10-03 Thread Lisa L. Woodring
I would like to create aliases for a JNDI (specifically, a JDBC)
resource, such that I can use multiple names to connect to the same
database -- and be able to use the same (i.e. only 1) connection pool
for that database.  I haven't been able to find anything on how/if this
is possible.  (I would like to be able to specify it all in context.xml
 not touch server.xml if possible.)  Any suggestions??

In other words, be able to do something to this effect (in context.xml):

Resource name=jdbc/actual_db_name auth=Container
type=javax.sql.DataSource
  driverClassName=org.postgresq.Driver   
  url=jdbc:postgresql://machine/actual_db_name
  maxActive=100 maxIdle=5  ...other parms...  /

alias link=jdbc/alias1 resource=jdbc/actual_db_name /
alias link=jdbc/alias2 resource=jdbc/actual_db_name /

Then use the jdbc/alias1 and jdbc/alias2 names in my code.


Lisa Woodring
Software Engineer, iGLASS Networks





RE: Why getting this error?

2005-10-03 Thread Ritchie Gillam
This command don't seem to work?  Is there another way to see all of the 
Parameters for the JVM?

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults to 
64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the Size 
is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line 
below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org 
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere 
in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED] 
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

- Peter

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


-
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: Aliases for JNDI (JDBC) resources?

2005-10-03 Thread David Smith
To be honest, I think touching the server.xml is the only way to do
this.  Declare it as a global resource in server.xml and then declare a
resource link in all the contexts that need access.

--David

Lisa L. Woodring wrote:

I would like to create aliases for a JNDI (specifically, a JDBC)
resource, such that I can use multiple names to connect to the same
database -- and be able to use the same (i.e. only 1) connection pool
for that database.  I haven't been able to find anything on how/if this
is possible.  (I would like to be able to specify it all in context.xml
 not touch server.xml if possible.)  Any suggestions??

In other words, be able to do something to this effect (in context.xml):

Resource name=jdbc/actual_db_name auth=Container
type=javax.sql.DataSource
  driverClassName=org.postgresq.Driver   
  url=jdbc:postgresql://machine/actual_db_name
  maxActive=100 maxIdle=5  ...other parms...  /

alias link=jdbc/alias1 resource=jdbc/actual_db_name /
alias link=jdbc/alias2 resource=jdbc/actual_db_name /

Then use the jdbc/alias1 and jdbc/alias2 names in my code.


Lisa Woodring
Software Engineer, iGLASS Networks




  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Does anybody have a script to create a tomcat service on windows 2000? 
I'm trying to set my system up to run multiple copies of tomcat at the 
same time (on different ports, obviously), and can't get the service to 
create properly.


Thanks!
Dave

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



RE: Why getting this error?

2005-10-03 Thread Lisa Woodring
I get the java.lang.OutOfMemoryError: PermGen space error periodically
when I use Tomcat Manager to deploy my web application (as opposed to
re-starting Tomcat).  It eventually runs out of memory on the deploy.
However, since I only use the manager for development -- I just restart
Tomcat when the error happens.


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 03, 2005 11:04 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?

This command don't seem to work?  Is there another way to see all of the
Parameters for the JVM?

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:55 am 
If you haven't set this variable elsewhere within the box, PermGen defaults
to 64MB, otherwise, you can see the size by using ps -avx command

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:48 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks, I will set the JAVA_OPTS variable. Is there a way to see what the
Size is now before I change it?

Thanks,

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:45 am 
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this
line below:

JAVA_OPTS=-server -XX:MaxPermSize=256m

Hope this help

--Trung


-Original Message-
From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined
somewhere in the server.xml file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: [EMAIL PROTECTED]
Phone: (902) 490-6167
Fax: (902) 490-6583

 [EMAIL PROTECTED] 10/03/05 10:29 am 
 From: Ritchie Gillam [mailto:[EMAIL PROTECTED]
 java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation to
fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m to
double it.

- Peter

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


-
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: Limiting the number of threads Tomcat 4.1 creates

2005-10-03 Thread Bovy, Stephen J
set sparethreads  


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]
-Original Message-
From: Rob Shields [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 2:31 PM
To: Tomcat Users List
Subject: RE: Limiting the number of threads Tomcat 4.1 creates

Hi Chuck,

On Fri, 2005-09-30 at 16:08 -0500, Caldarale, Charles R wrote:
snip
  Is there a way to limit the number of threads that Tomcat 4.1 
  creates in its thread pool?
 
 Reading the doc never hurts:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
 
 Look at the maxProcessors attribute.

I've tried setting that to 10 and restarting Tomcat, but when I do a ps
auxm I see 20 threads running under the Sun VM:

rshields 24058 15.0  8.3 310936 42832 pts/0-22:22
0:03 /var/tomcat/jdk1.5.0/bin/java -server -Xmx96m
-Dfile.encoding=ISO8859-15 -Xdebug -Xrunjdwp:transport=dt_soc
rshields -  5.1-  - - -Sl   22:22   0:01 -
rshields -  0.4-  - - -Sl   22:22   0:00 -
rshields -  0.0-  - - -Sl   22:22   0:00 -

etc, 17 threads more.

In my conf/server.xml, the only connector defined is:

  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8080
 minProcessors=5
 maxProcessors=10
 enableLookups=true
 redirectPort=8443
 acceptCount=10
 debug=0
 connectionTimeout=2
 useURIValidationHack=false /

  - Chuck

Regards
Rob

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

-
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: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
 From: David Kerber [mailto:[EMAIL PROTECTED] 
 Subject: Script to create tomcat service on windows?
 
 Does anybody have a script to create a tomcat service on 
 windows 2000? 

Have you tried the service.bat script that's part of the standard
download?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber

Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Script to create tomcat service on windows?


Does anybody have a script to create a tomcat service on 
windows 2000? 



Have you tried the service.bat script that's part of the standard
download?


No, I didn't see it.  I'll give it a try...




 - Chuck


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



Re: WebDAV characters bug?

2005-10-03 Thread Mark Thomas
Looks like a bug to me. Create a bugzilla entry for it and I'll try 
and take a look before the next release.


Mark

Roland Rabben wrote:

I am using Tomcat 5.5.9 (on Windows XP) and WebDAV to upload files to my
server. However it seems to be a bug or limitation in the Tomcat WebDAV
that limits the use of some characters I frequently use.

Unsupported characters are :
; (semicolon)
+ (plus)
# (pound)

I know these are reserved characters, so I have tried to URL encode
them, but Tomcat ignores the URL encoding and writes the URL encoded
filenames to disk. Eg. myfile;01.txt is saved like myfile%B301.txt
on the server. Tomcat is configured to do URL Encoding. If I don't do
URL Encoding it simply cuts the end of the filename from semicolon like
myfile.

This is my Connector configuration in server.xml:
 Connector port=80 
 maxHttpHeaderSize=8192 useBodyEncodingForURI=true

URIEncoding=UTF-8
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false redirectPort=8443 acceptCount=100
 connectionTimeout=2 disableUploadTimeout=true /

I also tested this in Tomcat 5.5.12 with same problems. I have tested
several clients. IE 6.0, DavExplorer and own code.

The reason I think this is a bug is because these characters are
supported by Apache/mod_dav. 
Anyone know of a fix to this problem, or if it is a known bug?


Regards
Roland Rabben
Technical Director
Scala Nordic AS
[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: http connector secure=true

2005-10-03 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a 
new topic) please do not reply to an existing message and change the 
subject line. To many of the list archiving services and mail clients 
used by list subscribers this  makes your new message appear as part 
of the old thread. This makes it harder for other users to find 
relevant information when searching the lists.


This is known as thread hijacking and is behaviour that is frowned 
upon on this list. Frequent offenders will be removed from the list. 
It should also be noted that many list subscribers automatically 
ignore any messages that hijack another thread.


The correct procedure is to create a new message with a new subject. 
This will start a new thread.


Mark
tomcat-user-owner


Reynir Hubner wrote:

Hi,

I'm trying to have one connector on tomcat open with secure=true with
out it being SSL or https. I just want request.isSecure() return true.
This is the setup for the connector :

  Connector port=9020

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   debug=99 connectionTimeout=2

   disableUploadTimeout=true secure=true scheme=http  /

The port is opened with out errors, but does never return anything, and
I see no errors in my log.
Am I missing out on something or is this a bug ?, It works fine with
tomcat 4.1.x.

Any suggestions ?
thanx
[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]



Catalina.out Message

2005-10-03 Thread Partheeban Boopathy
Hi

I have two tomcat5.0.27 instance running in different machine(unix box).

After i started my server i opened my catalina.out and i can see the
difference in catalina.out file.

I am not able to see the timestamp and class name(Bold messages) in one of
the machine.

I am not sure why its happening and not able to get any answer ,i was badly
in needed of solution for this and my job is in under fire,please help me in
this.

Following is the initial few lines of catalina.out of both the machines.

 bash-2.03$ more catalina.out
*

Jun 21, 2005 8:43:49 AM org.apache.coyote.http11.Http11Protocol init

INFO:* Initializing Coyote HTTP/1.1 on http-8083
*

Jun 21, 2005 8:43:49 AM org.apache.catalina.startup.Catalina load

INFO: *Initialization processed in 7793 ms
*

Jun 21, 2005 8:43:50 AM org.apache.catalina.core.StandardService start

INFO: *Starting service Catalina
*

Jun 21, 2005 8:43:50 AM org.apache.catalina.core.StandardEngine start

INFO: *Starting Servlet Engine: Apache Tomcat/5.0.27

**

# more catalina.out

- Initializing Coyote HTTP/1.1 on http-8014

- Initialization processed in 3938 ms

- Starting service Catalina

- Starting Servlet Engine: Apache Tomcat/5.0.27

- XML validation disabled

- Create Host deployer for direct deployment ( non-jmx )
***
 Thanks
Parthi


Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
service.bat doesn't seem to be installed with 5.5.9.  I searched the 
entire HD of two different machines which have that it installed, and 
that file was not found.  I did find the html files with the description 
of service.bat, but not service.bat itself.




Caldarale, Charles R wrote:
From: David Kerber [mailto:[EMAIL PROTECTED] 
Subject: Script to create tomcat service on windows?


Does anybody have a script to create a tomcat service on 
windows 2000? 



Have you tried the service.bat script that's part of the standard
download?

 - Chuck



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



RE: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
 From: David Kerber [mailto:[EMAIL PROTECTED] 
 Subject: Re: Script to create tomcat service on windows?
 
 service.bat doesn't seem to be installed with 5.5.9.

Get the .zip download, not the emasculated .exe version.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Phillip Qin
Why bother IBM. In my startup script, I clean up any java process:

for i in `ps ax --format ppid,pid,cmd |grep java |egrep
^[[:space:]]*1[[:space:]] |tr -s ' ' |cut -f3 -d `
do
echo killing $i...
kill -9 $i
done

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED] 
Sent: October 3, 2005 8:09 AM
To: Tomcat Users List
Subject: Re: FAQ? shutdown.bat not killing java process on Windows

Heh, I'll call IBM and have them do just that. ;-)

It happens in their JT400 classes.

Larry


On 10/3/05, David Delbecq [EMAIL PROTECTED] wrote:
 That's quite a problem ;)
 Actually  your threads should be coded in such a way
 you may a send a notification in java telling him to finish his job.

 eg:

 myNonDaemonThreadICreatedMySelf.stopWorking();
 which would set some flag in Thread and then code in your
 Thread reading the flag knows it has to stop in a clean way.

 In the past there was a way in java to 'kill' a Thread but this has
 been deprecated in the Thread api. Tomcat sends a ThreadDeathError
 to the thread if it tries to interact with its classloader after shutdown,
 unfortunately, this is not always enough has some Threads do a
 catch(Error) and then continue their job.

 The best thing you can do when you have the list of threads still alive
 after shutdown is to locate the irresponsible threads and fix their code
:D



 Larry Meadors a écrit :

 So, once you know the threads that are left, what is the cleanest way
 to kill them?
 
 I have had this problem too, but since it was on a *nix platform, and
 just used 'kill' to get rid of the parent process.
 
 Larry
 
 
 On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:
 
 
 Yep. It's a FAQ, but not in the FAQ.
 
 Tomcat not quitting generally means your webapp has started a non-daemon
 thread which does not exit when the webapp is destroyed. If so, shut
 them down in a ServletContextListener.
 
 If you aren't explicitly creating threads in your webapp then the usual
 culprits are database connections that haven't been closed (or any other
 client api to remote services that uses asynchronous messaging and/or
 keepalive semantics).
 
 To see a dump of the threads still active after you've run shutdown.bat
 do a CTRL-BREAK in the tomcat dos console.
 
 HTH,
 
 Jon
 
 Charles Fineman wrote:
 
 
 I started Tomcat using startup.bat. Everything goes fine. I use
 shutdown.batto bring it down. The server fields the request and shuts
 down a bunch of
 services (as evidenced by the messages I see). Sure enough, the server
no
 longer responds to any requests. Unfortunately, the java process does
not
 die.
 
 I have this problem whether I start Tomcat by hand or if I use the
Sysdeo
 Eclipse plugin.
 
 This problem has been a thorn in my side for some time but since it
only
 affects my development environment (we use it as a service in
production and
 there are no problems) and I can kill the process by hand, I've not
worried
 about it. It's annoying as heck though and I'm wondering if someone can
shed
 some light.
 
 I searched around but (surprisingly!!) I didn't find anything similar
to my
 situation.
 
 
 
 
 -
 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]


!DSPAM:43411f6a315711908041642!


Re: Script to create tomcat service on windows?

2005-10-03 Thread Seak, Teng-Fong
Yup, 5.5 is very different from 5.0 in that those *.bat files aren't
needed/included.  And 5.5 no longer needs JAVA_HOME environment variable.

David Kerber wrote:

 service.bat doesn't seem to be installed with 5.5.9.  I searched the
 entire HD of two different machines which have that it installed, and
 that file was not found.  I did find the html files with the
 description of service.bat, but not service.bat itself.



 Caldarale, Charles R wrote:

 From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to
 create tomcat service on windows?

 Does anybody have a script to create a tomcat service on windows 2000? 



 Have you tried the service.bat script that's part of the standard
 download?

  - Chuck



 -
 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: What to put into JAVA_HOME on Windows xp

2005-10-03 Thread Seak, Teng-Fong
It's necessary to stop and restart the service when Java home path
is changed.  Reboot the PC doesn't help either.  I had talked about this
in a previous mail but seems like it got passed without catching any
attention:
http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user/200509.mbox/[EMAIL 
PROTECTED]

Giuseppe Briotti wrote:

==
Date: Wed, 28 Sep 2005 12:47:07 +0200 (MEST)
From: Markus Hapke [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: What to put into JAVA_HOME on Windows xp
==


Hello All,

 now it works ! when runing
 tomcat_root\bin\startup.bat
 instead of
 tomcat_root\\bin\tomcat5w.exe //ES//Tomcat5
 and then pressing START.

 For what the tomcat5w.exe should be used ?

 Markus



In tomcat bin directory there are several batchs that perform all the 
environment settings, THEN
execute tomcat.exe... The startup is the first one of the chain...

G.

  



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



Re: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Charles Fineman
Thanks (to all). I had suspected this but all of the threads that were left
over (used eclipse) seemed like system threads. Turns out the culprit was an
RMI server object that was being exported by the webapp (you can browbeat me
over that in a different thread... I kept it for backwards compatibility).

At any rate, it turns out that Sun's RMI Distributed GC timer thread was
getting created as a non-daemon thread. There is, as you might expect, no
way to make this a daemon thread however I was able to unexport the Remote
object (indirectly of course :-) when the webapp get's shutdown.

This raises a question in my mind about the right way to do something in
tomcat/jws. I use a manager servlet that has an init (and now a destroy)
method to setup (tear down) resources for a webapp. I did it this way
because I wanted non-lazy initialization of the webapp's resources (i.e.
rather than waiting for the init method of one of the other servlets to be
called). I set the load-on-startup attribute to zero to ensure these get
loaded as soon as the webapp is loaded.

Is there another mechanism I ought to be using to initialize (arbitrary)
resources for my webapp?

On 10/3/05, Jon Wingfield [EMAIL PROTECTED] wrote:

 Yep. It's a FAQ, but not in the FAQ.

 Tomcat not quitting generally means your webapp has started a non-daemon
 thread which does not exit when the webapp is destroyed. If so, shut
 them down in a ServletContextListener.

 If you aren't explicitly creating threads in your webapp then the usual
 culprits are database connections that haven't been closed (or any other
 client api to remote services that uses asynchronous messaging and/or
 keepalive semantics).

 To see a dump of the threads still active after you've run shutdown.bat
 do a CTRL-BREAK in the tomcat dos console.

 HTH,

 Jon

 Charles Fineman wrote:
  I started Tomcat using startup.bat. Everything goes fine. I use
  shutdown.batto bring it down. The server fields the request and shuts
  down a bunch of
  services (as evidenced by the messages I see). Sure enough, the server
 no
  longer responds to any requests. Unfortunately, the java process does
 not
  die.
 
  I have this problem whether I start Tomcat by hand or if I use the
 Sysdeo
  Eclipse plugin.
 
  This problem has been a thorn in my side for some time but since it only
  affects my development environment (we use it as a service in production
 and
  there are no problems) and I can kill the process by hand, I've not
 worried
  about it. It's annoying as heck though and I'm wondering if someone can
 shed
  some light.
 
  I searched around but (surprisingly!!) I didn't find anything similar to
 my
  situation.
 



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




RE: FAQ? shutdown.bat not killing java process on Windows

2005-10-03 Thread Caldarale, Charles R
 From: Charles Fineman [mailto:[EMAIL PROTECTED] 
 Subject: Re: FAQ? shutdown.bat not killing java process on Windows
 
 Is there another mechanism I ought to be using to initialize 
 (arbitrary) resources for my webapp?

A context listener might be what you're looking for.  See the Lifecycle
Listeners section of:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



ClassCastException while sharing objects accross applications

2005-10-03 Thread Surya Mishra
Hi,

I am trying to share an object between 2 applications deployed on the same
tomcat server. I have put the object in the ServletContext in my first
application. I access the object using
ServletContext.getContext(firstApp).getAttribute(object);.
The object comes in fine but it won't let me cast it to the actual Object
Type. I get a ClassCastException. I tried printing the name of the class.
That also came fine (same class name).

Thanks in advance.
-Surya


RE: NoSuchElementException in DeltaRequest

2005-10-03 Thread Steve Mactaggart
When do we expect 5.0.30 to be release as final?

I need to deploy the fix to production and I'm a not able to deploy beta
versions.

Steve

 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, 10 September 2005 8:41 PM
 To: Tomcat Users List
 Subject: Re: NoSuchElementException in DeltaRequest
 
 Hi,
 
 that should be fixed in 5.0.30 and in 5.5. Compare
 
 http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/modu
les/cluster/src/share/org/apache/catalina/cluster/session/DeltaR
equest.java?r1=1.7r2=1.7.2.1diff_format=h
 
 and
 
 http://issues.apache.org/bugzilla/show_bug.cgi?id=31328.
 
 We use a very similar fix on top of 5.0.28 without further problems.
 
  Hi all,
 
  We have just moved to using Tomcat in a clustered 
 environment, and now on
  a
  farily regular basis we are getting the following error 
 occur from within
  the clustering logic.
 
  java.util.NoSuchElementException
   at java.util.LinkedList.remove(LinkedList.java:579)
   at java.util.LinkedList.removeFirst(LinkedList.java:131)
   at
  
 org.apache.catalina.cluster.session.DeltaRequest.addAction(Del
 taRequest.java
  :102)
   at
  
 org.apache.catalina.cluster.session.DeltaRequest.setAttribute(
 DeltaRequest.j
  ava:69)
   at
  
 org.apache.catalina.cluster.session.DeltaSession.setAttribute(
 DeltaSession.j
  ava:1265)
   at
  
 org.apache.catalina.cluster.session.DeltaSession.setAttribute(
 DeltaSession.j
  ava:1246)
   at
  
 org.apache.catalina.cluster.session.DeltaSessionFacade.setAttr
 ibute(DeltaSes
  sionFacade.java:130)
   at
  
 au.com.bestbets.central.command.user.BaseUserLoginCmd.innerExe
 cute(BaseUserL
  oginCmd.java:111)
 
  I believe we are using tomcat 5.0.29 running under Linux.
 
  Any ideas on what is causing this one?
 
  
  Steve Mactaggart
  Best Bets
 
 
  
 -
  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: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
Thanks, David.  I'll try that.

If that doesn't do the trick I plan to build fop.jar
from source on the target machine.

- Bob

--- David Delbecq [EMAIL PROTECTED] wrote:

 if it's *java.awt.Rectangle*
 and the computer you are trying to run fop on does
 not have
 graphical environment, maybe you should wonsider
 using headless java
 see

http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
 
 Bob Hall a écrit :
 
 I'm getting a NoClassDefFoundError in a FOP class,
 PageViewport.  At line 89, the code is attempting
 to
 do
 'new Rectangle()'.
 
 The same code works fine on 3 other systems (2
 Windows,
 and one Linux).  It does not work on a Linux box.
 The two linux boxes have the same version of Java
 (1.4.2_08-b03) and the same version of Tomcat
 5.0.28).
 The versions of RedHat *are* different.  I even
 compiled
 the code on the target Linux system.
 
 Any ideas?
 
 - Bob
 
 
  
 __ 
 Yahoo! Mail - PC Magazine Editors' Choice 2005 
 http://mail.yahoo.com
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Script to create tomcat service on windows?

2005-10-03 Thread David Kerber
Do they still work?  I want to create a separate tomcat service so I can 
run two instances at once (on different ports, obviously).


Dave


Seak, Teng-Fong wrote:


   Yup, 5.5 is very different from 5.0 in that those *.bat files aren't
needed/included.  And 5.5 no longer needs JAVA_HOME environment variable.

David Kerber wrote:

 


service.bat doesn't seem to be installed with 5.5.9.  I searched the
entire HD of two different machines which have that it installed, and
that file was not found.  I did find the html files with the
description of service.bat, but not service.bat itself.



Caldarale, Charles R wrote:

   


From: David Kerber [mailto:[EMAIL PROTECTED] Subject: Script to
create tomcat service on windows?

Does anybody have a script to create a tomcat service on windows 2000? 
   



Have you tried the service.bat script that's part of the standard
download?

- Chuck
 





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



JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
Hi all,

I've got Tomcat 5.5.9 running on SUSE Linux 9.2, followed tutorial at
http://www.coreservlets.com/Apache-Tomcat-Tutorial/ and got it up and
running, can see the Tomcat mainpage and run all bundled examples.
However when I try a trivial example with HTML forms Tomcat barfs:

===
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 1 in the jsp file: /name.jsp
Generated servlet error:
UserData cannot be resolved or is not a type
===

Files webapps/tut/name.jsp and
webapps/tut/WEB-INF/classes/UserData.java are attached. Of course I've
got UserData.java compiled into .class at the same directory and
everything is readable for Tomcat.

What can be a reason for this error? Do I need to configure something
to let Tomcat know about this class?

I'm sorry for this newbie question - I'm sure it's something trivial
but I have experience with neither Tomcat nor JSP/servlets and am
basically stuck.

Thanks!

Goo

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

Easy Servlet Question

2005-10-03 Thread Andrew Pierce
Hello. I realize this is about the stupidest question I could ask but, 
I've scoured the web, etc. and cannot get an easy example of making 
servlets actually work with Tomcat.


I have written a few Hello World servlets and gotten them to work with 
Resin but I cannot get even the most simple servlet to work with Tomcat.


I create the servlet code such as the one found here:

http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp

I compile the servlet and place the .class file in the 
$CATALINA_HOME/webapps/app/WEB-INF/classes directory.


Then I modify the $CATALINA_HOME/webapps/app/WEB-INF/web.xml to include 
the declarations for the servlet.


I stop and restart Tomcat and alas, all I get is 404 when I try to 
access the servlet with a url like 
http://localhost:8080/app/HelloServlet.


I know this has got to VERY simple. Thanks in advance.
Andrew

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



Re: JasperException: Unable to compile class for JSP

2005-10-03 Thread Goo GGooo
On 10/4/05, Wendy Smoak wrote:
 From: Goo GGooo [EMAIL PROTECTED]

  An error occurred at line: 1 in the jsp file: /name.jsp
  Generated servlet error:
  UserData cannot be resolved or is not a type
  ===
 
  Files webapps/tut/name.jsp and
  webapps/tut/WEB-INF/classes/UserData.java are attached.

 Try putting UserData in a package.

That works, cool! What's the reason for that? Can I make it running
without packages? (just interested, not that I'm unhappy with having
it in a package :-)

Thanks

Goo

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



Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)

2005-10-03 Thread Bob Hall
No joy with -Djava.awt.headless=true; looks a
rebuild of FOP on the target system... though that
*really* does not make sense.

- Bob

--- Bob Hall [EMAIL PROTECTED] wrote:

 Thanks, David.  I'll try that.
 
 If that doesn't do the trick I plan to build fop.jar
 from source on the target machine.
 
 - Bob
 
 --- David Delbecq [EMAIL PROTECTED] wrote:
 
  if it's *java.awt.Rectangle*
  and the computer you are trying to run fop on does
  not have
  graphical environment, maybe you should wonsider
  using headless java
  see
 

http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
  
  Bob Hall a écrit :
  
  I'm getting a NoClassDefFoundError in a FOP
 class,
  PageViewport.  At line 89, the code is attempting
  to
  do
  'new Rectangle()'.
  
  The same code works fine on 3 other systems (2
  Windows,
  and one Linux).  It does not work on a Linux box.
  The two linux boxes have the same version of Java
  (1.4.2_08-b03) and the same version of Tomcat
  5.0.28).
  The versions of RedHat *are* different.  I even
  compiled
  the code on the target Linux system.
  
  Any ideas?
  
  - Bob
  
  
 
  __ 
  Yahoo! Mail - PC Magazine Editors' Choice 2005 
  http://mail.yahoo.com
  
 

-
  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]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: Easy Servlet Question

2005-10-03 Thread Andrew Pierce
OK. This was a bit of a simple one. Found my answer with the help of a 
couple of folks on IRC.


Please disregard.

Andrew Pierce wrote:

Hello. I realize this is about the stupidest question I could ask but, 
I've scoured the web, etc. and cannot get an easy example of making 
servlets actually work with Tomcat.




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



RE: Script to create tomcat service on windows?

2005-10-03 Thread Caldarale, Charles R
 From: David Kerber [mailto:[EMAIL PROTECTED] 
 Subject: Re: Script to create tomcat service on windows?
 
 Do they still work?

Yes, they still work.  (It probably would have taken you less time to
try it than to e-mail the question.)  I've never seen a justifiable
explanation of why the scripts were left out of the .exe download.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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