Re: tomcat and xslt 2.0

2006-03-01 Thread Zohar Amir

I've tried putting it right before TransformerFactory.newInstance() .
now, when I invoke the transform method I get NPE at 
net.sf.saxon.Controller.transform(Controller.java:1319)

Any help?

- Original Message - 
From: Zohar Amir [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Richard Toren 
[EMAIL PROTECTED]

Sent: Wednesday, March 01, 2006 9:25 AM
Subject: Re: tomcat and xslt 2.0



Thanks.
Where do I put the System.setProperty(...)?

- Original Message - 
From: Richard Toren [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, February 27, 2006 7:28 PM
Subject: Re: tomcat and xslt 2.0


I think there are not that many xslt 2.0 engines out there to choose from. 
In any case saxon is xslt 2.0 and very fast.  You have to include the
jar (obvious, but) and before you instantiate a TransformerFactory 
set the System property:


System.setProperty( javax.xml.transform.TransformerFactory, 
net.sf.saxon.TransformerFactoryImpl);


You will get a warning if the xslt is 1.0, but it will still compile and 
function.


Richard Toren

Zohar Amir wrote:

Correct me if I'm wrong here: as I understand it, tomcat uses Xalan as 
its XSLT engine. Xalan does not support XSLT 2.0 .
Is there any other XSLT engine I can use with tomcat (I read something 
about Saxon)? If so, how do I do that?

Thanks,
Zohar.
-
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: Apache and Tomcat

2006-03-01 Thread foo shyn
Hi,

I'd tried connecting Apache 2.0 with Tomcat 4.1 for a few times and no
problem occur so far.
I'm using jk2 package though.

Steps involve:
1) Copy the apache mod_jk module into the modules folder.
2) Change the httpd.conf file and add in the module in 'LoadModule' section
3) Paste the workers2.properties file into the Apache conf folder
4) Ammend the properties file with the webapps that i need to access from
Apache
5) Stop Tomcat, restart Apache and start Tomcat

Hope this helps

FooShyn

- Original Message - 
From: Gaël Lams [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 01, 2006 3:26 PM
Subject: Re: Apache and Tomcat


 Hi,

  I'm trying to make Apache 2.0.55 connect to Tomcat 5, using mod_jk.
  I'm getting cannot find worker, and my config files seems to be ok.
 
  Is there other way to make Apache and Tomcat talk?
  I read that it's recommended to use mod_proxy_ajp, but it's only
  available on Apache 2.2, and there is no stable build of Apache 2.2
  for Windows (my server is windows 2003).

 I've no experience of using Tomcat  Apache on windows but mod_jk is
 for sure the way to go. i.e the connector to be used.
 Are you sure there is no error in your configuration files, maybe a
 misspelling in the workers.properties? Could you post your
 configuration files?

 Regards,

 Gaël



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



RE: Problem with Tomcat upgrade to 5.0.28 from 4.x

2006-03-01 Thread Awaneesh Shatmanyu
Hi Nagendra,

 

I had the similar problem..its fine now..

You need to change the servlet-class in web.xml in Tomcat 5.x 

Please Follow below

 

In Tomcat 4.1...the web.xml had the following servlet-classfor
ActionServlet.

servlet

servlet-nameActionServlet/servlet-name

 
servlet-classcom/NRI/TStar/servlets/ActionServlet/servlet-class

/servlet

   servlet-mapping

servlet-nameActionServlet/servlet-name

url-pattern/com/NRI/TStar/servlets/ActionServlet/url-pattern

/servlet-mapping

 

When I upgraded it to Tomcat 5.x...the web.xml should be.for the
servlet-class..

servlet

servlet-nameActionServlet/servlet-name

 
servlet-classcom.NRI.TStar.servlets.ActionServlet/servlet-class

/servlet

servlet-mapping

servlet-nameActionServlet/servlet-name

url-pattern/com/NRI/TStar/servlets/ActionServlet/url-pattern

/servlet-mapping

 

Use .(dot) instead of /

I hope this should solve the probs...:-)

 

Regards,

Awaneesh Shatmanyu 

 

 

-Original Message-
From: Devireddy, Nagendra Reddy (STSD) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 1:23 PM
To: Tomcat Users List
Subject: Problem with Tomcat upgrade to 5.0.28 from 4.x

 

Hi,

 

I have upgraded tomcat from 4.x to 5.0.

This is how I hv done the upgrade ..

I took backup of webapps/test_apps

Installed Tomcat 5.0 and 

Then I copied the test_apps to the new webapps

 

I have not changed any thing else ..

 

Tomcat is throwing class defination not found error .. But I searched

for the same class and its available in

test_apps/WEB-INF/lib/test_apps.jar 

 

Do we need to change web.xml ?? Or the same which was working with 4.0

will work here ??

 

Is there any extra configuration needs to be changed ??

 

Please help me ..

 

Thanks,

Nagendra

 

-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

 

 


This email may contain confidential or privileged information for the 
intended recipient(s) and the views expressed in the same are not 
necessarily the views of Zensar Technologies Ltd. If you are not the intended 
recipient or have received this e-mail by error, its use is strictly 
prohibited, please delete the e-mail and notify the sender. Zensar 
Technologies Ltd. does not accept any liability for virus infected mails.



apache tomcat like service

2006-03-01 Thread v1k1ng0
Hi,
I've apache tomcat like service, it works correctly. But I want know when
the apache tomcat service is restarted ... not only the latest restart. I
can see the last restart in stdout.log, but I want know when the service is
restarted, in for example a week. Apache tomcat doesn't generate nothing in
the windows viewfinder events / system? It doesn't generate nothing control
service manager ... 7035/7036 event ids ...
Thanks beforehand.

Cheers...


Reverse proxying from Apache to Tomcat and Basic Authentication

2006-03-01 Thread Ezio Paglia

Hi all.

I think that an architecture based on an Apache as front-end and one or 
more Tomcat's as back ends is quite common.


Reverse proxying from Apache to Tomcat works, and it still works if we 
let Tomcat to provide some authentication and authorization feature 
(i.e. via ldap).


Yet I'd like to have authentication (and even authorization) on Apache, 
I think it would be more correct. So I tried to study the problem, 
having some locations of the Apache protected by a Basic Authentication 
and proxy-passed to Tomcat. I expected the Tomcat to preserve the 
REMOTE_USER (or HTTP_REMOTE_USER ? ) variable received by Apache. It 
does not work.


Do you know how can Tomcat force an environmental variable (coming from 
Apache via reverse proxy) into its REMOTE_USER, after recognizing the 
REMOTE_ADDR of the federate Apache and without being open to attacks ?


Thanks in advance.
Ciao.
Yours Ezio.

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

Re:Re: tomcat 5.5.12 character encoding in server side is allways iso8895-1

2006-03-01 Thread idan amshalom
I changed it to utf-8 and also changed add useBodyEncoding=true
 

-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

problem

2006-03-01 Thread Rameez
Does anyone know why the following could occur? It happens not infrequently
with our software. This happens in Tomcat 4. 

Thanks in advance for any help. 

regards,

Rameez

 

java.lang.NullPointerException

   at
org.apache.coyote.tomcat4.CoyoteRequestFacade.setAttribute(CoyoteRequestFaca
de.java:234)

   at
com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker._$41797(Adm
inWorker.java:2669)

   at
com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker.processRequ
est(AdminWorker.java:4298)

   at
com.itanetworks.spammarshall.webfront.servlet.FrontController._$42178(FrontC
ontroller.java:55)

   at
com.itanetworks.spammarshall.webfront.servlet.FrontController.doGet(FrontCon
troller.java:33)

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

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

   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..j
ava:260)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..j
ava:191)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)

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

   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)

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

 

---
STATEMENT OF CONFIDENTIALITY
This email is intended for the addressee only and may contain
information that is privileged and confidential. If you are not the
intended recipient, you must not copy, distribute or take any action in
reliance on it. If this email has been sent to you in error, please
notify us immediately.
---

RE: apache tomcat like service

2006-03-01 Thread Serlet Jean-Claude
Hello

Under Windows 2000 i can see in event viewer == Application Log each
start and stop of Windows Services corresponding to a Tomcat's instance

Jean-Claude


-Message d'origine-
De : v1k1ng0 [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 1 mars 2006 12:28
À : users@tomcat.apache.org
Objet : apache tomcat like service


Hi,
I've apache tomcat like service, it works correctly. But I want know when
the apache tomcat service is restarted ... not only the latest restart. I
can see the last restart in stdout.log, but I want know when the service is
restarted, in for example a week. Apache tomcat doesn't generate nothing in
the windows viewfinder events / system? It doesn't generate nothing control
service manager ... 7035/7036 event ids ...
Thanks beforehand.

Cheers...

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



Re: apache tomcat like service

2006-03-01 Thread v1k1ng0
Hello,

2006/3/1, Serlet Jean-Claude [EMAIL PROTECTED]:

 Hello

 Under Windows 2000 i can see in event viewer == Application Log each
 start and stop of Windows Services corresponding to a Tomcat's instance

 Jean-Claude


are you sure in Application Log? I see many Control Service Manager in
System Log, but anything of Tomcat.
What event id has your entries of Tomcat? Do you have some auditing
directive activated? Thanks beforehand.

Cheers...


RE: Tomcat - out of resources

2006-03-01 Thread Caldarale, Charles R
 From: Cam T [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat - out of resources
 
 It doesn't always errors to this it does so
 intermittently. Any clues anyone on how to 
 check memory issues in tomcat?

This comes up frequently.  Read the FAQ:
http://tomcat.apache.org/faq/memory.html

Search the archives:
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

 - 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: problem

2006-03-01 Thread Kasim
Assalamoalikum
Dear this is due to the variable which you wants to prints its value but
value is not yet assigned. So check out the variables defined in your jsp
page or servlet.Generally some variables value depends on the request .We
extract the parameter from request object and assigned that value to
variables defined locally and then process those variables but while
processing (eg parsing the value of variable) the variable such exception
rises. So please check out the value of variables before processing it.I
hope this will help you to clear the bug which you face frequently...


-Original Message-
From: Rameez [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 6:19 PM
To: users@tomcat.apache.org
Subject: problem

Does anyone know why the following could occur? It happens not infrequently
with our software. This happens in Tomcat 4.

Thanks in advance for any help.

regards,

Rameez



java.lang.NullPointerException

   at
org.apache.coyote.tomcat4.CoyoteRequestFacade.setAttribute(CoyoteRequestFaca
de.java:234)

   at
com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker._$41797(Adm
inWorker.java:2669)

   at
com.itanetworks.spammarshall.webfront.servlet.helper.AdminWorker.processRequ
est(AdminWorker.java:4298)

   at
com.itanetworks.spammarshall.webfront.servlet.FrontController._$42178(FrontC
ontroller.java:55)

   at
com.itanetworks.spammarshall.webfront.servlet.FrontController.doGet(FrontCon
troller.java:33)

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

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

   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)

   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)

   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..j
ava:260)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..j
ava:191)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)

   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)

   at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)

   at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)

   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

   at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)

   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)

   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:386)

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

   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)

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



---
STATEMENT OF CONFIDENTIALITY
This email is intended for the addressee only and may contain
information that is privileged and confidential. If you are not the
intended recipient, you must not copy, distribute or take any action in
reliance on it. If this email has been sent to you in error, please
notify us immediately.
---



RE: apache tomcat like service

2006-03-01 Thread Serlet Jean-Claude
Hello
 
There are 5 instances Tomcat which are stopped every night and start every
morning
They were created as Windows Services and their start type are automatic
That's all i did : not any auditing directives
And i can see that these 5 services are stopped and started in the
Application Log : i get an information with the Service's name and when
i open this line i see that the service has stardet or stopped
 
Regards
 

Jean-Claude 

-Message d'origine-
De : v1k1ng0 [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 1 mars 2006 14:15
À : Serlet Jean-Claude
Cc : users@tomcat.apache.org
Objet : Re: apache tomcat like service


Hello,


2006/3/1, Serlet Jean-Claude  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] : 

Hello

Under Windows 2000 i can see in event viewer == Application Log each
start and stop of Windows Services corresponding to a Tomcat's instance 

Jean-Claude

 
are you sure in Application Log? I see many Control Service Manager in
System Log, but anything of Tomcat. 
What event id has your entries of Tomcat? Do you have some auditing
directive activated? Thanks beforehand.
 
Cheers...

 


RE: Tomcat 3 -- servlets don't reload..

2006-03-01 Thread Larry Isaacs
I has been quite a while since I have used Tomcat 3.3.x.
My recollection is that accessing the changed servlet would
trigger a reload of the webapp.  This differs from the newer
Tomcats which have a background thread checking for changes.
Also, with a default configuration, I don't recall anything
special that was needed beyond setting the context to be
reloadable.  I can't say why this isn't working for you.

As for the manager, Tomcat came with an admin webapp.  However,
it never got far enough along to be worthy of its own manual.
It's mentioned briefly in the User's Guide, but I think that is
about it.  If you want a real manager/admin webapp, you will
need to upgrade to a newer Tomcat.

Cheers,
Larry

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Frances
 Sent: Tuesday, February 28, 2006 12:49 PM
 To: users@tomcat.apache.org
 Subject: Tomcat 3 -- servlets don't reload..
 
 when I make changes to a servlet I don't see changes unless I 
 turn tomcat off and on...  this is a huge pain, it's at work, 
 where we can't be turning Tomcat off and on all day long 
 whenever we make changes to a servlet..  Is there a way 
 around this?  (Does Tomcat 3 come with a Manager?  I can't 
 find manager-howto.html among docs (which does come with 
 Tomcat 5..)  many thanks..
 
 Frances
 
 
 -
 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]



Tomcat 5 problems

2006-03-01 Thread Devireddy, Nagendra Reddy (STSD)
Hi,

I am getting this problem while starting tomcat ..

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.naming.NamingContext.clinit(NamingContext.java:56)
at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCont
extListener.java:230)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
... 6 more

Can some one help me in this ..

Thanks
Nagendra 

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



Re: Tomcat 5 problems

2006-03-01 Thread Filip Hanik - Dev Lists

what script are you using to startup?
This class exists in TOMCAT_HOME/bin/commons-logging-api.jar

and should be part of your startup classpath

Filip


Devireddy, Nagendra Reddy (STSD) wrote:

Hi,

I am getting this problem while starting tomcat ..

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.naming.NamingContext.clinit(NamingContext.java:56)
at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCont
extListener.java:230)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
... 6 more

Can some one help me in this ..

Thanks
Nagendra 


-
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: Tomcat 5 problems

2006-03-01 Thread Devireddy, Nagendra Reddy (STSD)
Thanks Filip ..

It is missing in my endorsed dir path ..
I am adding it now ..
Hope it will work

Thanks a lot ..

Nagendra 

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 8:03 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 problems

what script are you using to startup?
This class exists in TOMCAT_HOME/bin/commons-logging-api.jar

and should be part of your startup classpath

Filip


Devireddy, Nagendra Reddy (STSD) wrote:
 Hi,

 I am getting this problem while starting tomcat ..

 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/logging/LogFactory
 at
 org.apache.naming.NamingContext.clinit(NamingContext.java:56)
 at
 org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCo
 nt
 extListener.java:230)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
 Su
 pport.java:119)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 ... 6 more

 Can some one help me in this ..

 Thanks
 Nagendra

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



Question

2006-03-01 Thread Andrew English
Were do I need to look to figure out what SQL server tomcat/jboss 2.4 is 
pointing at? 
 
I am trying to figure out what table and server this old POS is looking at when 
I am looking at the inactive users list which is a .jsp page. 
 
Thanks!
 
Regards,
Andrew
 

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

RE: Tomcat 5 problems

2006-03-01 Thread Devireddy, Nagendra Reddy (STSD)
 Hi Filip,

 After adding bin to my endorsed dirs path that error got disappeared
but some new exception is appearing in the log

Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError
at
org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFacto
ry.java:63)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:10
3)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: java.l
ang.NullPointerException (Caused by java.lang.NullPointerException)
(Caused by org.apache.commons.logging.LogConfigurationExc
eption: java.lang.NullPointerException (Caused by
java.lang.NullPointerException))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:543)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:209)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at
org.apache.tomcat.util.compat.JdkCompat.clinit(JdkCompat.java:55)
... 4 more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPoin
terException)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:397)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:529)
... 8 more
Caused by: java.lang.NullPointerException
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:374)
... 9 more
~
So what to do now ..

Can you please help me what are the other *jars it needs ..


-Original Message-
From: Devireddy, Nagendra Reddy (STSD) 
Sent: Wednesday, March 01, 2006 8:09 PM
To: Tomcat Users List
Subject: RE: Tomcat 5 problems

Thanks Filip ..

It is missing in my endorsed dir path ..
I am adding it now ..
Hope it will work

Thanks a lot ..

Nagendra 

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 8:03 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 problems

what script are you using to startup?
This class exists in TOMCAT_HOME/bin/commons-logging-api.jar

and should be part of your startup classpath

Filip


Devireddy, Nagendra Reddy (STSD) wrote:
 Hi,

 I am getting this problem while starting tomcat ..

 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 av
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 or
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
 Caused by: java.lang.NoClassDefFoundError:
 org/apache/commons/logging/LogFactory
 at
 org.apache.naming.NamingContext.clinit(NamingContext.java:56)
 at
 org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCo
 nt
 extListener.java:230)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
 Su
 pport.java:119)
 at

org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
 at
org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 ... 6 more

 Can some one help me in this ..

 Thanks
 Nagendra

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



Protocol handler start failed

2006-03-01 Thread Didier McGillis
Tried to google, didnt find anything useful.  What happens is that at some 
point the site becomes unresponsive and so I restart and that is when I get 
this error, now I dont know of any other apps running on port 8080 so not 
sure why 8080 is already in use. Any thoughts?


SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start 
failed: java.net.BindException: Address already in use:8080




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



Re: first jdbc tomcat application

2006-03-01 Thread David McMinn
I'm running Tomcat 5.5 - The mysql port is 3306 - I made that change to the 
server.xml file 
   
  jdbc:mysql://localhost:3306/everycitizen
   
  Still get the same result - page not found or 
  Cannot create JDBC driver of class '' for connect URL 'null' .


Amila Suriarachchi [EMAIL PROTECTED] wrote:
  On 2/26/06, David McMinn wrote:

 I had not added an error-page tag to the web.xml - The default behavior
 would be a stack trace which would be fine w/ me - In my jsp, I have @ page
 errorPage=errorpg.jsp..

 I don't get a stack trace but I get a page w/ this messageCannot
 create JDBC driver of class '' for connect URL 'null' .


 Here is my original posting.

 I'm stepping through the example Professional Apache Tomcat 5 book by
 Wrox in Chapter 14 - I have set up the mysql database and confirmed it works
 and set up the tomcat server and confirmed that I can see my index.jsppage. 
 When I try to go to
 http://localhost:8070/jsp-examples/wroxjdbc/JDBCTest.jsp
 I get a standard The page cannot be displayed page.

 I've included all my steps below. Anyone that can help is most
 appreciated. Thanks in advance.Dave

 Steps I have done

 1) Created a DB called everycitizen and a table called test with a
 column called pk. Created user everyuser w/ a password and granted Select
 privileges to that user.
 2) Copied the mysql-connector-java-3.1.12-bin.jar into
 $CATALINA_HOME/common/lib.
 3)Added the following to the $CATALINA_HOME/conf/server.xml just before
 the . Password is blotted out.

 
 
  javax.sql.Datasource name=jdbc/WroxTC5 
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost/everycitizen


what is the port u run the mysql server?
the default is 3306

jdbc:mysql://localhost:3306/test?autoReconnect=true

username=everyuser password=everypass maxActive=20 maxIdle=3
 maxWait=100/
 
 4) Added the following to the
 $CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom
 just before the entry after the last env-entry.

 
 jdbc/WroxTC5
 javax.sql.DataSource
 Container
 

 5) Added the JDBCTest.jsp file and the errorpg.jsp file to
 $CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the
 wroxjdbc folder. The JDBC Test is:

 
 
 import=java.sql.*,
  javax.sql.*,
  java.io.*,
  javax.naming.InitialContext,
  javax.naming.Context %
 
   JDBC JNDI Resource Test
InitialContext initCtx = new InitialContext();
   DataSource ds =
 (DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5);
   Connection conn = ds.getConnection();
   Statement stmt = conn.createStatement();
   ResultSet rset = stmt.executeQuery(select * from test;);
   %
   
 
   
 
 while (rset.next())
{
%
 
 rset.close();
stmt.close();
conn.close();
initCtx.close();
%
 
 


 and the errorpg is:

 
 
   An error has occurred 
 
 


 Glen Mazza wrote:
 David McMinn escribió:
 
  Unfortunately the logs don't say anything - I just get a page not found.
 If I take that out (and all subsequent jsp) it works fine. So right up to
 that point the jsp page renders fine - When I include that one more line, it
 blows up. I'm still looking but if someone knows please chime in. Thanks,
 

 OK, then, perhaps the error page to forward to *that you have defined in
 the webapp's web.xml file) doesn't exist. TC is trying to forward to
 that error page, can't find it, and hence returns the page not found
 error.

 Glen

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







Re: Protocol handler start failed

2006-03-01 Thread alexandre heimburger
try ps -ef | grep tomcat to find and kill other instances of a running 
server.


Otherwise you have maybe another application server which is listening 
for 8080 port.


Alheim

Didier McGillis a écrit :

Tried to google, didnt find anything useful.  What happens is that at 
some point the site becomes unresponsive and so I restart and that is 
when I get this error, now I dont know of any other apps running on 
port 8080 so not sure why 8080 is already in use. Any thoughts?


SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindException: Address already in use:8080




-
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: Protocol handler start failed

2006-03-01 Thread Didier McGillis

I think I see what the problem is



From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: tomcat-user@jakarta.apache.org
Subject: Protocol handler start failed
Date: Wed, 01 Mar 2006 15:29:31 +

Tried to google, didnt find anything useful.  What happens is that at some 
point the site becomes unresponsive and so I restart and that is when I get 
this error, now I dont know of any other apps running on port 8080 so not 
sure why 8080 is already in use. Any thoughts?


SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start 
failed: java.net.BindException: Address already in use:8080




-
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: Protocol handler start failed

2006-03-01 Thread Didier McGillis
Nevermind thats not it I have jdk1.5.0_06 but for some reason when I do java 
-version I get


java -version
java version 1.4.2
gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)

Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: RE: Protocol handler start failed
Date: Wed, 01 Mar 2006 15:38:01 +

I think I see what the problem is



From: Didier McGillis [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: tomcat-user@jakarta.apache.org
Subject: Protocol handler start failed
Date: Wed, 01 Mar 2006 15:29:31 +

Tried to google, didnt find anything useful.  What happens is that at some 
point the site becomes unresponsive and so I restart and that is when I 
get this error, now I dont know of any other apps running on port 8080 so 
not sure why 8080 is already in use. Any thoughts?


SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler 
start failed: java.net.BindException: Address already in use:8080




-
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: Protocol handler start failed

2006-03-01 Thread Caldarale, Charles R
 From: Didier McGillis [mailto:[EMAIL PROTECTED] 
 Subject: RE: Protocol handler start failed
 
 Nevermind thats not it I have jdk1.5.0_06 but for some reason 
 when I do java -version I get
 
 java version 1.4.2
 gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)

So you're denying the evidence in front of you?  You apparently do _not_
have the 1.5 JDK installed as the default JVM.

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



javaservice.exe

2006-03-01 Thread Andrew English
Is there anyway to force close the javaservice.exe on windows? When I tried to 
do it under Taskmanager (as Administrator) it tells me could not be 
completed.. access denied.
 
Regards,
Andrew

 

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

Asking again: Tomcat silently stops working, very strange exceptions in catalina.out

2006-03-01 Thread Leon Rosenberg
Hi,

noone has an idea or has experienced similar behaviour?

Recapitulation:
At some stage tomcat starts throwing exception which actually can't
happen, mostly telling  me that beans aren't found in session scope,
in jsps which could only be called after a bean has been put into the
session scope. It also throws SocketErrors, ClientAbortExceptions and
PipeBrokenException in attempt to deliver static error page (404.html
or 500.html).

Minutes later it just stops responding, with no futher errors in the
logs. The load on the machine drops to zero. After calling shutdown.sh
and startup.sh tomcat continues normally. Interesting, but at some
point of time multiple production servers are affected, as if a user
would cause this.

Any ideas?

Leon

On 2/28/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
 On 2/28/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
   javax.servlet.jsp.JspException: No bean found under attribute key result
 
  this is a regular struts exception, it is expecting a bean in one of the
  scopes (request,page,session), but it is not there.

 'The funny thing is, that there is actually no way for the bean to
 not be there...
 the code from the appropriate action looks like this:

 if (!r.isValid()) {
 if(r.getErrorMessage() != null  
 r.getErrorMessage().startsWith(PLZ)) {
 errors.add(search, new 
 ActionError(errors.zip.notexisting));
 } else {
 throw new RuntimeException(Query failed:
 +IResultStatus.STATUS_DESC[r.getStatus()]+(+r.getErrorMessage()+));
 }
 } else {

 ResultBean result = new ResultBean();
 ... omitted...
 addBeanToSession(req, 
 ISessionConstantsNames.SEARCH_BEAN_RESULT, result);
 addBeanToSession(req,
 ISessionConstantsNames.SEARCH_BEAN_LAST_QUERY, r.getSourceQuery());
 }

 if(errors.size()  0) {
 saveErrors(req, errors);
 proceedErrorHandling(req);
 return mapping.getInputForward();
 }

 return mapping.findForward(view); -- only this return leads 
 to the
 jsp in the logs.

 if the jsp-in-question mapping is returned, the ResultBean must be in
 session, or the session is corrupted.

 
  your second error seems to be a result of a client disconnecting
 
  http://tomcat.apache.org/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/connector/ClientAbortException.html

 Sure, but that doesn't explain why tomcat stops responding, does it?

 
  Filip

 Leon


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



Re: javaservice.exe

2006-03-01 Thread Glen Mazza
I'm not sure how JavaService works, but perhaps best to shut down any 
services from the Control Panel that JavaService is running first?


Glen

Andrew English wrote:
Is there anyway to force close the javaservice.exe on windows? When I tried to do it under Taskmanager (as Administrator) it tells me 

could not be completed.. access denied.
 
Regards,

Andrew

 






-
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: javaservice.exe

2006-03-01 Thread Peter Crowther
 From: Andrew English [mailto:[EMAIL PROTECTED] 
 Is there anyway to force close the javaservice.exe on 
 windows? When I tried to do it under Taskmanager (as 
 Administrator) it tells me could not be completed.. access denied.

If it's running as LocalSystem, not to my knowledge - you don't have the
privilege.  But of course you ran it as some lower-privilege account
than LocalSystem didn't you? ;-)

- Peter

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



RE: Question

2006-03-01 Thread Peter Crowther
 From: Andrew English [mailto:[EMAIL PROTECTED] 
 Were do I need to look to figure out what SQL server 
 tomcat/jboss 2.4 is pointing at? 

Could be anywhere.  A generic approach that will probably get you quite
a long way is to run:

netstat -an | find 1433

And seeing what the far-end IP address is for the established
connections.  A network sniffer will also tell you which database is
being used if you can't deduce it any other way (it's buried in the byte
stream in cleartext).

- Peter

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



Precompiling JSPs with Tomcat 5.5.12

2006-03-01 Thread SV Vahid

Hi,

I am having trouble precompiling JSP files with Tomcat 5.5.12 whereas this 
went ok with Tomcat 4.1.31. If I remove the jasper jar files from the 
common/lib directory and replace them with the ones from the old Tomcat then 
it works, but that's not the best solution..


I think my Ant task needs to be changed so that it works with the new jasper 
files, but I don't know in what way and haven't been able to find anything 
about this anywhere on the internet.


This is how the ant task looks like
...
ant:path id=jspc.classpath
 ant:pathelement
location=${tomcat.home}/common/lib/jasper-runtime.jar/
 ant:pathelement
location=${tomcat.home}/common/lib/jasper-compiler.jar/
 ant:pathelement
location=${tomcat.home}/common/lib/jasper-compiler-jdt.jar/
 ant:pathelement
location=${tomcat.home}/common/lib/servlet-api.jar/
 ant:pathelement
location=${tomcat.home}/common/lib/jsp-api.jar/
 ant:fileset dir=${tomcat.home}/server/lib
   ant:include name=*.jar/
 /ant:fileset
 ant:path refid=maven.dependency.classpath/
 ant:pathelement path=${maven.build.dest}/
   /ant:path
   ant:taskdef name=jasper2 classname=org.apache.jasper.JspC
classpathref=jspc.classpath/
   ant:jasper2
 webXmlFragment=${maven.build.dir}/web-fragment.xml
 package=${pom.package}.jsp
 outputDir=${jspOutDir}
 srcdir=${warSource}
 uriroot=${warSource}
 uribase=/${pom.artifactId}
 verbose=2/
   ant:javac
 srcdir=${jspOutDir}
 destdir=${jspClassesOutDir}
 debug=${maven.compile.debug}
 deprecation=${maven.compile.deprecation}
 optimize=${maven.compile.optimize}
 classpathref=jspc.classpath/
...

I have tried adding and removing path elements..

These are the exceptions I get:

ant:jasper2 java.lang.ClassCastException:
org.apache.tools.ant.AntClassLoader
   at com.werken.werkz.Goal.fire(Goal.java:620)
   at com.werken.werkz.Goal.attain(Goal.java:575)
   at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
   at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
   at org.apache.maven.cli.App.doMain(App.java:488)
   at org.apache.maven.cli.App.main(App.java:1239)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
org.apache.commons.jelly.JellyTagException:
ant:jasper2 java.lang.ClassCastException:
org.apache.tools.ant.AntClassLoader
   at
org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:683)
   at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:288)
   at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
   at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
   at com.werken.werkz.Goal.fire(Goal.java:639)
   at com.werken.werkz.Goal.attain(Goal.java:575)
   at
com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
   at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:127)
   at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
   at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
   at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
   at
org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:88)
   at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
   at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
   at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
   at
com.werken.werkz.jelly.PreGoalTag$1.firePreGoal(PreGoalTag.java:87)
   at com.werken.werkz.Goal.firePreGoalCallbacks(Goal.java:691)
   at com.werken.werkz.Goal.fire(Goal.java:616)
   at com.werken.werkz.Goal.attain(Goal.java:575)
   at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
   at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
   at org.apache.maven.cli.App.doMain(App.java:488)
   at org.apache.maven.cli.App.main(App.java:1239)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.werken.forehead.Forehead.run(Forehead.java:551)
   at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: 

Re: Tomcat 3 -- servlets don't reload..

2006-03-01 Thread Frances
thank you very much Larry..  oh brother, my boss insists there's a way.. 
 there HAS to be a way..  how can a servlet container be designed that 
only reloads servlets when you restart it?  ok, thanks again...



Larry Isaacs wrote:

I has been quite a while since I have used Tomcat 3.3.x.
My recollection is that accessing the changed servlet would
trigger a reload of the webapp.  This differs from the newer
Tomcats which have a background thread checking for changes.
Also, with a default configuration, I don't recall anything
special that was needed beyond setting the context to be
reloadable.  I can't say why this isn't working for you.

As for the manager, Tomcat came with an admin webapp.  However,
it never got far enough along to be worthy of its own manual.
It's mentioned briefly in the User's Guide, but I think that is
about it.  If you want a real manager/admin webapp, you will
need to upgrade to a newer Tomcat.

Cheers,
Larry



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Frances
Sent: Tuesday, February 28, 2006 12:49 PM
To: users@tomcat.apache.org
Subject: Tomcat 3 -- servlets don't reload..

when I make changes to a servlet I don't see changes unless I 
turn tomcat off and on...  this is a huge pain, it's at work, 
where we can't be turning Tomcat off and on all day long 
whenever we make changes to a servlet..  Is there a way 
around this?  (Does Tomcat 3 come with a Manager?  I can't 
find manager-howto.html among docs (which does come with 
Tomcat 5..)  many thanks..


Frances


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



Bootstrap class - Interface bind

2006-03-01 Thread Torsten Krah
Hello,

tomcats connectors are configured to listen on localhost only, which
works fine.

But the bootstrap class listens still on all interfaces.

How can i tell tomcat to behave like the connectors and only listen on
addresses i want ( address and port would be nice ).

kind regards

Torsten


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



Re: apache tomcat like service

2006-03-01 Thread v1k1ng0
Hello again :-)

2006/3/1, Serlet Jean-Claude [EMAIL PROTECTED]:

 Hello

 There are 5 instances Tomcat which are stopped every night and start every
 morning
 They were created as Windows Services and their start type are
 automatic
 That's all i did : not any auditing directives
 And i can see that these 5 services are stopped and started in the
 Application Log : i get an information with the Service's name and when
 i open this line i see that the service has stardet or stopped

 Regards


 Jean-Claude


can you say me what version of apache tomcat do you have? I have v5.0.
Thanks again.

Cheers...


RE: Bootstrap class - Interface bind

2006-03-01 Thread Caldarale, Charles R
 From: Torsten Krah [mailto:[EMAIL PROTECTED] 
 Subject: Bootstrap class - Interface bind
 
 tomcats connectors are configured to listen on localhost only, which
 works fine.

If you're talking about the default Tomcat configuration, that's not
true.  In the absence of an IP address specification, the connectors
listen on 0.0.0.0 - any IP address.  The bootstrap class doesn't
listen on anything not specified in the server.xml config.

If you're having trouble, post your Connector settings, and tell us
what Tomcat level you're referring to.

 - 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: Bootstrap class - Interface bind

2006-03-01 Thread Torsten Krah
Like i said, i configured the connectors to listen on
address=127.0.0.1, so its not the default one.

But i got the problem.

I've stopped and started tomcat after changing the connectors - but not
all java instances were closed when stopping tomcat.

After Stopping Tomcat again, killing all remaining java Bootstrap
classes and starting tomcat again, its fine.

I will look at this, stopping tomcat should kill all instances in my
opinion, strange.

kind regards

Torsten

Am Mittwoch, den 01.03.2006, 10:46 -0600 schrieb Caldarale, Charles R:
  From: Torsten Krah [mailto:[EMAIL PROTECTED] 
  Subject: Bootstrap class - Interface bind
  
  tomcats connectors are configured to listen on localhost only, which
  works fine.
 
 If you're talking about the default Tomcat configuration, that's not
 true.  In the absence of an IP address specification, the connectors
 listen on 0.0.0.0 - any IP address.  The bootstrap class doesn't
 listen on anything not specified in the server.xml config.
 
 If you're having trouble, post your Connector settings, and tell us
 what Tomcat level you're referring to.
 
  - 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]
 


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



Tomcat - Hibernate

2006-03-01 Thread Lucas Bee
Hello Fellow Users,

 

My question is relatively simple.  It has 3 parts.

 

1.  Database:

* MySQL 4.1

 

2.  Tomcat:

* Apache Tomcat/5.0.28

 

3.  Hibernate:

* 2.1.8

 

I have my app which uses Hibernate and connects to a MySQL database and uses
Tomcat as the app server.  Everything works just fine except for when I need
to redeploy an app.  I go into Tomcat Manager and stop the app and then
undeploy the app.  Everything works here as well, however, when I try to
redeploy the app it redeploys but my app can't connect to the database until
after I restart Tomcat.  This is a problem when you are redeploying to the
production server.   This might be more of a hibernate setting question but
I thought it could be beneficial to post here as well since the Hibernate
Forum is not providing any results.

 

Code:

 

Tomcat Server.xml

 

Context path=/Cohorts docBase=Cohorts reloadable=true
crossContext=true

 

Resource name=jdbc/dbus5 scope=Shareable
type=javax.sql.DataSource/

 

ResourceParams name=jdbc/dbus5

 

parameter

namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

/parameter

 

!-- DBCP database connection settings --

parameter

nameurl/name

valuejdbc:mysql://localhost:3306/us?autoReconnect=true/value

/parameter

parameter

namedriverClassName/namevaluecom.mysql.jdbc.Driver/value

/parameter

   

   .

 

!-- DBCP connection pooling options --

   .

/ResourceParams

/Context 

 

Hibernate.cfg.xml

 

property name=connection.datasourcejava:comp/env/jdbc/dbus5/property

  property name=dialectorg.hibernate.dialect.MySQLDialect/property

 

That's it!  Is there some setting I'm missing in my server.xml file?  I
really don't know.  I've searched every place I can think of.

 

Any feedback would be great!

 

Thanks.

 

-Lucas

 



RE: Bootstrap class - Interface bind - Problem there again.

2006-03-01 Thread Torsten Krah
Problem is there again - after few minutes in working state, a new
process shows up with following call:

/opt/java/bin/java -server -showversion -Xms640M -Xmx640M -verbose:gc
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC
-Xloggc:/var/logs/gc.log -Djava.awt.headless=true
-Djava.endorsed.dirs=/opt/tomcat/common/endorsed
-classpath /opt/java/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar
-Dcatalina.base=/var/tomcat -Dcatalina.home=/opt/tomcat
-Djava.io.tmpdir=/var/tomcat/temp org.apache.catalina.startup.Bootstrap
start

tcp6   0  0 :::41276:::*
LISTEN 12320/java

I guess the number of them will grow with time.

The server.xml is defined so:

Server port=8005 shutdown=SHUTDOWN debug=0


  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  GlobalNamingResources

Environment name=simpleValue type=java.lang.Integer
value=30/

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  Service name=Tomcat-Standalone

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

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Standalone defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
  Host name=localhost debug=0 appBase=/var/apps
   unpackWARs=true autoDeploy=true
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=localhost_log. suffix=.txt
timestamp=true/
  /Host
/Engine
  /Service
/Server

The connectors got both the address option.

So whats that for a process and how do i stop tomcat from doing that,
something wrong with server.xml?

thx for any suggestions.


kind regards


Torsten


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



Why do I get this error only 10% of the time? java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket

2006-03-01 Thread Anthony Smith
 

I have a process that calls a servlet. This process can send multiple
requests. Something in the neighborhood of maybe 500 at a time to the
Servlet. The Servlet can process the request in about 10 secs or less.
The process that calls the Servlet is located on a different box. I am
working in a Tomcat environment. I get the following stack trace maybe
10% of the time or less. I call the servlet about 250K times a day. But
I only get this error 10% or less of the time. My guess is that somehow,
I am overloading something to the point where it returns an error that
no ClassDefFoundError The class does exists AND each call follows the
same routine, so it is not the case where when I get these errors that
they are different from what I have been doing with the other 90%.

Please Help.

 





2006-03-01 00:14:13 StandardWrapperValve[PreRateRatingServlet]:
Servlet.service(
) for servlet PreRateRatingServlet threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
/ssl
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:615)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:683)
at java.lang.Thread.run(Thread.java:534)
- Root Cause -
java.lang.NoClassDefFoundError: javax/net/ssl/SSLSocket
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:809)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:635)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272
)
at intltech.autopay.beans.ECQSClientBean.processResponse(Unknown Source)



RE: Bootstrap class - Interface bind - Problem there again.

2006-03-01 Thread Caldarale, Charles R
 From: Torsten Krah [mailto:[EMAIL PROTECTED] 
 Subject: RE: Bootstrap class - Interface bind - Problem there again.
 
 Problem is there again - after few minutes in working state, a new
 process shows up with following call:

What Tomcat level?  What OS?  If Linux, do you have an LD_ASSUME_KERNEL
setting?

What's the value of the fork parameter for the jsp servlet (in
conf/web.xml)?

Do any of your apps spawn another JVM?  Do you have any cron or similar
jobs automatically starting another Tomcat instance?

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



QUESTIONS ABOUT EVALUATING TOMCAT WITH TPC-W

2006-03-01 Thread jiang ying

Hi.
When I run the TPCW bookstore application, I found the server behave 
erratic.

Experiment enviroment:
Hardware: a client PC, two server PCs. Each PC has two 1.59 GHz AMD 
Opteron, 2GB RAM, and a 30 GB disk. One server machine runs theWeb server 
and application server software, while the other contains the database. All 
the machines run 2.4 Linux Kernel and are connected through a LAN of 
1000Mb/s. 
Web Server: Tomcat 5.5.12

Database: mysql 5.0.18
Client Workload Generator: the freely available Java TPC-W 
implementation developed by the PHARM research group at the University of 
Wisconsin-Madison http://www.ece.wisc.edu/~pharm/tpcw.shtml

The file descriptor limit has been increased to 8192.
The maxconnection of Tomcat is 1000.
To solve the heap exception of Tomcat, JAVA_OPTS='-Xms256m -Xmx256m' 
is set. 
Q1: When I emulate 400 EBs ( the command line: java rbe.RBE -EB 
rbe.EBTPCW1Factory 400 -OUT run1.m -RU 100 -MI 600 -RD 100 -WWW 
http://tomcatserver:8080/ -CUST 288000 -DEBUG 2) , the tomcat memory drops 
severly from 1G to 5M. 
Q2: Sometimes the tests complete without any error. In other runs when 
getting Html from Tomcat, the ioexceptions of  url.openStream() are caught 
and the client is returned with Unable to open the html .
Could you kindly tell me why the tomcat cosumes so much memory? And 
what may cause the ioexception of getting html? Does it correlate with the 
implementation of TPCW?

Thank you.

   yours cylinder

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



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



RE: Bootstrap class - Interface bind - Problem there again.

2006-03-01 Thread Torsten Krah
Tomcat version 4.1.31-LE-jdk14.
OS: Linux 2.6.8 

java version 1.4.2-02 
Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.4.2-02)
Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-02, mixed mode)

No, i didnt make a LD_ASSUME_KERNEL setting.

No, the apps dont spawn another jvm. Theres no cron job or similiar, i
have to start it manually.

The fork parameter isnt set, so its left at its default.

kind regards

Torsten


Am Mittwoch, den 01.03.2006, 11:46 -0600 schrieb Caldarale, Charles R:
  From: Torsten Krah [mailto:[EMAIL PROTECTED] 
  Subject: RE: Bootstrap class - Interface bind - Problem there again.
  
  Problem is there again - after few minutes in working state, a new
  process shows up with following call:
 
 What Tomcat level?  What OS?  If Linux, do you have an LD_ASSUME_KERNEL
 setting?
 
 What's the value of the fork parameter for the jsp servlet (in
 conf/web.xml)?
 
 Do any of your apps spawn another JVM?  Do you have any cron or similar
 jobs automatically starting another Tomcat instance?
 
  - 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]
 


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



Re: Precompiling JSPs with Tomcat 5.5.12

2006-03-01 Thread Alexander E Genaud
I am using Tomcat 5.0 and have added the JSPs to the WEB-INF/web.xml
file as follows:

  servlet
servlet-nameMyJsp/servlet-name
jsp-file/MyWebApp/MyJsp.jsp/jsp-file
load-on-startup1/load-on-startup
  /servlet

While I learned about this feature from BEA's website, it seems to
pre-compile the JSP's in Tomcat as well.

http://edocs.bea.com/wls/docs81/webapp/web_xml.html

about halfway down in servlet, search for jsp-file.

This precompiles when you deploy the webapplication, so you will not
get compilation or parsing error reporting, but we never make errors,
right?

Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- Fran=E7ois Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1


--
Alex
--
Those who can make you believe absurdities can make you commit atrocities
-- François Marie Arouet (Voltaire)
http://cph.blogsome.com
http://genaud.org/alex/key.asc
--
CCC7 D19D D107 F079 2F3D BF97 8443 DB5A 6DB8 9CE1

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



Re: Tomcat 5 problems

2006-03-01 Thread Filip Hanik - Dev Lists
looks like you modified your tomcat configurations, you need to tell us 
as much as you can about your environment.
if you download tomcat, run the start script in the bin directory, then 
I can't imagine that this would happen.
Instead, my guess is that you have modified the scripts or are running 
your own, and from that you just need to trace backwards, to find out 
what you did to break it and undo it.


Filip

Devireddy, Nagendra Reddy (STSD) wrote:

 Hi Filip,

 After adding bin to my endorsed dirs path that error got disappeared
but some new exception is appearing in the log

Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError
at
org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFacto
ry.java:63)
at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:10
3)
at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: java.l
ang.NullPointerException (Caused by java.lang.NullPointerException)
(Caused by org.apache.commons.logging.LogConfigurationExc
eption: java.lang.NullPointerException (Caused by
java.lang.NullPointerException))
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:543)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:235)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:209)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at
org.apache.tomcat.util.compat.JdkCompat.clinit(JdkCompat.java:55)
... 4 more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by java.lang.NullPoin
terException)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:397)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:529)
... 8 more
Caused by: java.lang.NullPointerException
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:374)
... 9 more
~
So what to do now ..

Can you please help me what are the other *jars it needs ..


-Original Message-
From: Devireddy, Nagendra Reddy (STSD) 
Sent: Wednesday, March 01, 2006 8:09 PM

To: Tomcat Users List
Subject: RE: Tomcat 5 problems

Thanks Filip ..

It is missing in my endorsed dir path ..
I am adding it now ..
Hope it will work

Thanks a lot ..

Nagendra 


-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 8:03 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 problems

what script are you using to startup?
This class exists in TOMCAT_HOME/bin/commons-logging-api.jar

and should be part of your startup classpath

Filip


Devireddy, Nagendra Reddy (STSD) wrote:
  

Hi,

I am getting this problem while starting tomcat ..

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
av
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
or
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
at
org.apache.naming.NamingContext.clinit(NamingContext.java:56)
at
org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingCo
nt
extListener.java:230)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycle
Su
pport.java:119)
at



org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
  

at


org.apache.catalina.startup.Catalina.start(Catalina.java:556)
  

... 6 more

Can some one help me in this ..

Thanks
Nagendra

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


  




Tomcat Security across context question?

2006-03-01 Thread Matt Carless
I'm using Tomcat to serve multiple contexts and I want
to add security to allow a single user to access the
multiple contexts after signing in on one of them.

I have managed to successfully do this when using
BASIC authentication login mechanism but this does not
meet my requirements. This is because the login
mechanism I need to use is the FORM based login
mechanism.

The security realm I'm using is a JDBC one set up in
server.XML.

This all works fine when just logging into one context
but when I then try to go to another context, after a
login on the first,  that context also requires me to
login again. All the contexts have the same security
constraint for the role that has access.

Is this possible to login accross multiple contexts
after a single sign-on when using the FORM based login
mechanism?

 



___ 
Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo 
http://uk.photos.yahoo.com

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



RE: Tomcat Security across context question?

2006-03-01 Thread Caldarale, Charles R
 From: Matt Carless [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat Security across context question?
 
 Is this possible to login accross multiple contexts
 after a single sign-on when using the FORM based login
 mechanism?

Have you tried the Single Sign On valve?
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single%20Sign%2
0On

(You didn't bother to say what version of Tomcat you're using, so the
above reference may need to be adjusted for your level.)

 - 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: Tomcat Security across context question?

2006-03-01 Thread Matt Carless
sorry, the tomcat version I'm using is 5.0.28
I look for the valve docs for that version 

Thanks

--- Caldarale, Charles R
[EMAIL PROTECTED] wrote:

  From: Matt Carless [mailto:[EMAIL PROTECTED] 
  Subject: Tomcat Security across context question?
  
  Is this possible to login accross multiple
 contexts
  after a single sign-on when using the FORM based
 login
  mechanism?
 
 Have you tried the Single Sign On valve?

http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Single%20Sign%2
 0On
 
 (You didn't bother to say what version of Tomcat
 you're using, so the
 above reference may need to be adjusted for your
 level.)
 
  - 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]
 
 




___ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. 
http://www.yahoo.co.uk/blackberry

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



Login servlet

2006-03-01 Thread Zorro3692
Hi All,
 
 Can anyone help me with a  standard pre-coded (preferably) 
login/logout servlet, which I can use with my MS  Access database to 
authenticate new 
and returning users.
 
Thanks to all in advance.
 
Jimmy


jdbc tomcat

2006-03-01 Thread David McMinn
  I'm running Tomcat 5.5 and trying to do a very simple jdbc connection a 
single table. I have set up tomcat to run on port 8070 and the mysql database 
on the default 3306 port. It's the connection statement in the jsp that is 
blowing up - If I take that out, it works fine.
   
  I'm getting page not found or 
Cannot create JDBC driver of class '' for connect URL 'null' .


 Steps I have done

 1) Created a DB called everycitizen and a table called test with a
 column called pk. Created user everyuser w/ a password and granted Select 
 privileges to that user.
 2) Copied the mysql-connector-java-3.1.12-bin.jar into
 $CATALINA_HOME/common/lib.
 3)Added the following to the $CATALINA_HOME/conf/server.xml 
  
  javax.sql.Datasource name=jdbc/WroxTC5 
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/everycitizen username=everyuser 
 password=% maxActive=20 maxIdle=3
 maxWait=100/
 
 4) Added the following to the
 $CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom
 just before the entry after the last env-entry.

 
 jdbc/WroxTC5
 javax.sql.DataSource
 Container
 

 5) Added the JDBCTest.jsp file and the errorpg.jsp file to
 $CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the
 wroxjdbc folder. The JDBC Test is:

 
 
  import=java.sql.*,
 javax.sql.*,
 java.io.*,
 javax.naming.InitialContext,
 javax.naming.Context %
 
 JDBC JNDI Resource Test
  InitialContext initCtx = new InitialContext();
 DataSource ds =
 (DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5);
 Connection conn = ds.getConnection();
 Statement stmt = conn.createStatement();
 ResultSet rset = stmt.executeQuery(select * from test;);
 %
 
 
 
 
  while (rset.next())
 {
 %
 
  rset.close();
 stmt.close();
 conn.close();
 initCtx.close();
 %


Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Tomasz Nowak
Peter Lin [EMAIL PROTECTED] wrote:

 another potential solution is to try a different JVM like Bea's
 JRockit. JRockit provides some built in profiling capabilities, so
 that is another way to get some profile data quickly.

I've read about jrockit 5.0 SP1. They say it has a new feature that
can help track memory leaks in just few days, not few weeks :D
To find a memory leak in cocoon webaplication would probably
take few years for person like me, anyway :))


-- 
T.


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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Tomasz Nowak
Tomasz Nowak [EMAIL PROTECTED] wrote:

 Hm. Here is my logging.properties:
 http://www.biochip.pl/logging.properties.txt
 The way new vhosts are added is pretty stupid for me but
 lets forget about the semantics now.
 
 I've added swallowOutput attibute to serveral context.
 How should it suppose to work? On my box it works in this way:
 - The only file that actually logs anything that matters is
 catalina.out 
 - Most of catalina.out inputs also appear in localhost.timstamp.log
 - Nothing more then manager actions are logged to vhost logs
 - After tomcat has stared, the only input logs are:
 
 a) useless:
 INFO: Response already committed
 Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
 INFO: Response already committed
 Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
 INFO: Response already committed
 Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
 INFO: Response already committed
 Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
 INFO: Response already committed
 Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
 (repeted serveral times every single minute (!) on my machine)
 
 b) sth like:
 Feb 28, 2006 11:00:03 PM org.apache.jk.core.MsgContext action
 WARNING: Error sending end packet
 java.net.SocketException: Broken pipe
 at java.net.SocketOutputStream.socketWrite0(Native Method)
 at
 java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
 at
 java.net.SocketOutputStream.write(SocketOutputStream.java:136)
 at
 org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
 at
 org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
 at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
 
 So how can I:
 - configure it to work similary to tomcat 4.1, I mean
   logs from different vhost go to different files
 - configure Tomcat not to log anything that belongs to vhost
   to catalina.out
 - turn of these useless jk infos

Any help on above would be _really_ appreciated!

-- 
T.




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



Re: jdbc tomcat

2006-03-01 Thread Mike Sabroff
When I do this from a program or bean or servlet, i make the connection 
a true url:


url=jdbc:mysql://localhost:3306/everycitizen?username=everyuserpassword=%

I dont know if it is different in the server.xml as I have never tried this, 
but why should it be?

I have been fooled by thinking logically b4 and I know that things are 
different in different setups, but it's worth a try, huh?

Mike



David McMinn wrote:

  I'm running Tomcat 5.5 and trying to do a very simple jdbc connection a 
single table. I have set up tomcat to run on port 8070 and the mysql database 
on the default 3306 port. It's the connection statement in the jsp that is 
blowing up - If I take that out, it works fine.
   
  I'm getting page not found or 
Cannot create JDBC driver of class '' for connect URL 'null' .



  

Steps I have done

1) Created a DB called everycitizen and a table called test with a
column called pk. Created user everyuser w/ a password and granted Select 
privileges to that user.
2) Copied the mysql-connector-java-3.1.12-bin.jar into
$CATALINA_HOME/common/lib.
3)Added the following to the $CATALINA_HOME/conf/server.xml 

  
  
javax.sql.Datasource name=jdbc/WroxTC5 
  

driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/everycitizen username=everyuser password=% 
maxActive=20 maxIdle=3
maxWait=100/

4) Added the following to the
$CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom
just before the entry after the last env-entry.


jdbc/WroxTC5
javax.sql.DataSource
Container


5) Added the JDBCTest.jsp file and the errorpg.jsp file to
$CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the
wroxjdbc folder. The JDBC Test is:





import=java.sql.*,
  

javax.sql.*,
java.io.*,
javax.naming.InitialContext,
javax.naming.Context %

JDBC JNDI Resource Test


InitialContext initCtx = new InitialContext();
  

DataSource ds =
(DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5);
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
ResultSet rset = stmt.executeQuery(select * from test;);
%






while (rset.next())
  

{
%



rset.close();
  

stmt.close();
conn.close();
initCtx.close();
%



  


--
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Peter Lin
my advice is dive in and try to debug it, or hire someone with experience
debugging webapps.

there's no much others can do for you at this point, since it's debugging.
good luck.

peter


On 3/1/06, Tomasz Nowak [EMAIL PROTECTED] wrote:

 Tomasz Nowak [EMAIL PROTECTED] wrote:
 
  Hm. Here is my logging.properties:
  http://www.biochip.pl/logging.properties.txt
  The way new vhosts are added is pretty stupid for me but
  lets forget about the semantics now.
 
  I've added swallowOutput attibute to serveral context.
  How should it suppose to work? On my box it works in this way:
  - The only file that actually logs anything that matters is
  catalina.out
  - Most of catalina.out inputs also appear in localhost.timstamp.log
  - Nothing more then manager actions are logged to vhost logs
  - After tomcat has stared, the only input logs are:
 
  a) useless:
  INFO: Response already committed
  Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
  INFO: Response already committed
  Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
  INFO: Response already committed
  Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
  INFO: Response already committed
  Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
  INFO: Response already committed
  Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
  (repeted serveral times every single minute (!) on my machine)
 
  b) sth like:
  Feb 28, 2006 11:00:03 PM org.apache.jk.core.MsgContext action
  WARNING: Error sending end packet
  java.net.SocketException: Broken pipe
  at java.net.SocketOutputStream.socketWrite0(Native Method)
  at
  java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
  at
  java.net.SocketOutputStream.write(SocketOutputStream.java:136)
  at
  org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
  at
  org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
  at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
 
  So how can I:
  - configure it to work similary to tomcat 4.1, I mean
logs from different vhost go to different files
  - configure Tomcat not to log anything that belongs to vhost
to catalina.out
  - turn of these useless jk infos

 Any help on above would be _really_ appreciated!

 --
 T.




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




Re: jdbc tomcat

2006-03-01 Thread David McMinn
no change - same situation.

Mike Sabroff [EMAIL PROTECTED] wrote:  When I do this from a program or bean 
or servlet, i make the connection 
a true url:

url=jdbc:mysql://localhost:3306/everycitizen?username=everyuserpassword=%

I dont know if it is different in the server.xml as I have never tried this, 
but why should it be?

I have been fooled by thinking logically b4 and I know that things are 
different in different setups, but it's worth a try, huh?

Mike



David McMinn wrote:
 I'm running Tomcat 5.5 and trying to do a very simple jdbc connection a 
 single table. I have set up tomcat to run on port 8070 and the mysql database 
 on the default 3306 port. It's the connection statement in the jsp that is 
 blowing up - If I take that out, it works fine.
 
 I'm getting page not found or 
 Cannot create JDBC driver of class '' for connect URL 'null' .


 
 Steps I have done

 1) Created a DB called everycitizen and a table called test with a
 column called pk. Created user everyuser w/ a password and granted Select 
 privileges to that user.
 2) Copied the mysql-connector-java-3.1.12-bin.jar into
 $CATALINA_HOME/common/lib.
 3)Added the following to the $CATALINA_HOME/conf/server.xml 
 
 
 
 javax.sql.Datasource name=jdbc/WroxTC5 
 
 driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/everycitizen username=everyuser 
 password=% maxActive=20 maxIdle=3
 maxWait=100/

 4) Added the following to the
 $CATALINA_HOME/webapps/jsp-examples/WEB-INF web.xml file at the bottom
 just before the entry after the last env-entry.


 jdbc/WroxTC5
 javax.sql.DataSource
 Container


 5) Added the JDBCTest.jsp file and the errorpg.jsp file to
 $CATALINA_HOME/webapps/jsp-examples/wroxjdbc directory. I created the
 wroxjdbc folder. The JDBC Test is:



 
 import=java.sql.*,
 
 javax.sql.*,
 java.io.*,
 javax.naming.InitialContext,
 javax.naming.Context %

 JDBC JNDI Resource Test
 
 InitialContext initCtx = new InitialContext();
 
 DataSource ds =
 (DataSource)initCtx.lookup(java:comp/env/jdbc/WroxTC5);
 Connection conn = ds.getConnection();
 Statement stmt = conn.createStatement();
 ResultSet rset = stmt.executeQuery(select * from test;);
 %


 

 
 while (rset.next())
 
 {
 %

 
 rset.close();
 
 stmt.close();
 conn.close();
 initCtx.close();
 %
 

 

-- 
Mike Sabroff
Web Services
Developer
[EMAIL PROTECTED]
920-568-8379


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




Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Filip Hanik - Dev Lists



This could be completely unrelated, but let me throw something at you, 
maybe it will help
btw. I prefer to run mod_proxy over mod_jk over http, much simpler, and 
in *our* load tests has scaled much better during stress.


Response already committed
This can happen if your servlet/jsp has code like this
do some stuff
response.sendRedirect(url);
...do some more stuff

what has happened here, is that you are trying to write to the response 
buffer even though you earlier indiciated (through sendRedirect or 
sendError) that you wouldn't. To correct this, you would have to put a 
return statement in your code


do some stuff
response.sendRedirect(url);
return;
...do some more stuff


java.net.SocketException: Broken pipe


the apache mod_jk module has disconnected from tomcat before it was able to 
send the entire message.

Filip




Tomasz Nowak wrote:

Tomasz Nowak [EMAIL PROTECTED] wrote:
  

Hm. Here is my logging.properties:
http://www.biochip.pl/logging.properties.txt
The way new vhosts are added is pretty stupid for me but
lets forget about the semantics now.

I've added swallowOutput attibute to serveral context.
How should it suppose to work? On my box it works in this way:
- The only file that actually logs anything that matters is
catalina.out 
- Most of catalina.out inputs also appear in localhost.timstamp.log

- Nothing more then manager actions are logged to vhost logs
- After tomcat has stared, the only input logs are:

a) useless:
INFO: Response already committed
Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
INFO: Response already committed
Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
INFO: Response already committed
Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
INFO: Response already committed
Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
INFO: Response already committed
Feb 28, 2006 10:59:22 PM org.apache.jk.core.MsgContext action
(repeted serveral times every single minute (!) on my machine)

b) sth like:
Feb 28, 2006 11:00:03 PM org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
at
org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
at org.apache.jk.core.MsgContext.action(MsgContext.java:293)

So how can I:
- configure it to work similary to tomcat 4.1, I mean
  logs from different vhost go to different files
- configure Tomcat not to log anything that belongs to vhost
  to catalina.out
- turn of these useless jk infos



Any help on above would be _really_ appreciated!

  



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



Directory Permissions

2006-03-01 Thread Stephen Caine

All,

Where would I find information on how to prevent access to specific  
directories within a webapp?  Exactly what file has to be edited?


Akin to how Apache uses .htaccess files, I would like to limit access  
on a user/IP basis.  The files are located within a webapp inside of  
other directories.


Thank you for any advice you can offer.

Stephen Caine
CommonGround Softworks, Inc. 


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



SEVERE: Error listenerStart

2006-03-01 Thread Scott Smith
SEVERE: Error listenerStart
Feb 27, 2006 12:42:44 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/mywebapp] startup failed due to previous errors

I get this error when trying to start Tomcat.  Tomcat starts but the
application context mywebapp is unable to start.
   I've been butting my head with this for days and I have no idea what is
wrong. There is no stack trace in the logs! Does anyone have any ideas
at all to try? Any ways to glean more information about this? I'm
desperate for a solution!

-- 
R. Scott Smith



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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Tomasz Nowak
Peter Lin [EMAIL PROTECTED] wrote:

 my advice is dive in and try to debug it, or hire someone with
 experience debugging webapps.
 
 there's no much others can do for you at this point, since it's
 debugging. good luck.

I've just meant configuring the logging system:

   So how can I:
   - configure it to work similary to tomcat 4.1, I mean
 logs from different vhost go to different files
   - configure Tomcat not to log anything that belongs to vhost
 to catalina.out
   - turn of these useless jk infos
  
  Any help on above would be _really_ appreciated!

Tomcat 5.5 logging docs are very brief about it..
Simple duplication of example entries does not do the job.

-- 
T.


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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Tomasz Nowak
Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

 This could be completely unrelated, but let me throw something at you,
 maybe it will help
 btw. I prefer to run mod_proxy over mod_jk over http, much simpler,
 and
 in *our* load tests has scaled much better during stress.

  Response already committed
 This can happen if your servlet/jsp has code like this
 do some stuff
 response.sendRedirect(url);
 ...do some more stuff

 what has happened here, is that you are trying to write to the
 response
 buffer even though you earlier indiciated (through sendRedirect or
 sendError) that you wouldn't. To correct this, you would have to put a
 return statement in your code

 do some stuff
 response.sendRedirect(url);
 return;
 ...do some more stuff

I have little controle about it as redirect-url is on of
built-in features of Apache Cocoon.

I've tried to put sth like:

org.apache.jk.core.MsgContext.level = SEVERE

into the logging.properties but that unfortunately
changes nothing

-- 
T.



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



Re: Sad: Tomcat 5.5.x crashes almost every single day.

2006-03-01 Thread Peter Lin
honestly, I really doubt logging will produce anything useful beyond the VM
dump you already posted. My first hand experience, the logs won't help at
this point. What needs to happen is to step through the code and see exactly
what is happening.

if you don't have access to a profiler, the other option is to add a bunch
of system.out.println to the pages to see what is happening. If the webapp
is making connection to a database or anything external, I would double
check that code. Chances are, the code is leaking badly and causing the
instability.

peter


On 3/1/06, Tomasz Nowak [EMAIL PROTECTED] wrote:

 Peter Lin [EMAIL PROTECTED] wrote:
 
  my advice is dive in and try to debug it, or hire someone with
  experience debugging webapps.
 
  there's no much others can do for you at this point, since it's
  debugging. good luck.

 I've just meant configuring the logging system:

So how can I:
- configure it to work similary to tomcat 4.1, I mean
  logs from different vhost go to different files
- configure Tomcat not to log anything that belongs to vhost
  to catalina.out
- turn of these useless jk infos
  
   Any help on above would be _really_ appreciated!

 Tomcat 5.5 logging docs are very brief about it..
 Simple duplication of example entries does not do the job.

 --
 T.


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




Cannot create JDBC driver of class '' for connect URL 'null'

2006-03-01 Thread David McMinn

Tomcat Server 5.5.15 - I searched for solutions and most mention a Context 
element in the server.xml.

I only have a DefaultContext tag within with I have my resouce tag:

DefaultContext
 Resource 
auth=Container 
driverClassName=com.mysql.jdbc.Driver 
logAbandoned=true 
maxActive=100 
maxIdle=30 
maxWait=1 
name=jdbc/wroxTC5 
password=everypass 
removeAbandoned=true 
removeAbandonedTimeout=300 
type=javax.sql.DataSource 

url=jdbc:mysql://localhost:3306/everycitizen?autoReconnect=true 
username=everyuser 
/
 /DefaultContext

The actual failure is on the connection = ds.getConnection(); line in the jsp 
if that helps any.

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of 
class '' for connect URL 'null'
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at 
org.apache.jsp.wroxjdbc.JDBCTest_jsp._jspService(org.apache.jsp.wroxjdbc.JDBCTest_jsp:83)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
 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.Http11AprProcessor.process(Http11AprProcessor.java:831)
 at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getDriver(Unknown Source)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)
 ... 21 more



Re: Cannot create JDBC driver of class '' for connect URL 'null'

2006-03-01 Thread Mike Sabroff

Isn't that the old mysql driver?? I thought the new one is:
org.gjt.mm.mysql.Driver
or do I have it backwards?

David McMinn wrote:


Tomcat Server 5.5.15 - I searched for solutions and most mention a 
Context element in the server.xml.


I only have a DefaultContext tag within with I have my resouce tag:

DefaultContext
 Resource
auth=Container
driverClassName=com.mysql.jdbc.Driver
logAbandoned=true
maxActive=100
maxIdle=30
maxWait=1
name=jdbc/wroxTC5
password=everypass
removeAbandoned=true
removeAbandonedTimeout=300
type=javax.sql.DataSource

url=jdbc:mysql://localhost:3306/everycitizen?autoReconnect=true

username=everyuser
/
 /DefaultContext

The actual failure is on the connection = ds.getConnection(); line in 
the jsp if that helps any.


SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
driver of class '' for connect URL 'null'
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
 at 
org.apache.jsp.wroxjdbc.JDBCTest_jsp._jspService(org.apache.jsp.wroxjdbc.JDBCTest_jsp:83)

 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 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.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
 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.Http11AprProcessor.process(Http11AprProcessor.java:831)
 at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
 at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)

 at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getDriver(Unknown Source)
 at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)

 ... 21 more



--
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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



RE: Cannot create JDBC driver of class '' for connect URL 'null'

2006-03-01 Thread Tim Lucia
Backwards.  See http://www.mysql.com/products/connector/j/

Tim

-Original Message-
From: Mike Sabroff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 10:43 PM
To: Tomcat Users List
Subject: Re: Cannot create JDBC driver of class '' for connect URL 'null'

Isn't that the old mysql driver?? I thought the new one is:
org.gjt.mm.mysql.Driver
or do I have it backwards?

David McMinn wrote:

 Tomcat Server 5.5.15 - I searched for solutions and most mention a 
 Context element in the server.xml.

 I only have a DefaultContext tag within with I have my resouce tag:

 DefaultContext
  Resource
 auth=Container
 driverClassName=com.mysql.jdbc.Driver
 logAbandoned=true
 maxActive=100
 maxIdle=30
 maxWait=1
 name=jdbc/wroxTC5
 password=everypass
 removeAbandoned=true
 removeAbandonedTimeout=300
 type=javax.sql.DataSource
 
 url=jdbc:mysql://localhost:3306/everycitizen?autoReconnect=true
 username=everyuser
 /
  /DefaultContext

 The actual failure is on the connection = ds.getConnection(); line in 
 the jsp if that helps any.

 SEVERE: Servlet.service() for servlet jsp threw exception
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC 
 driver of class '' for connect URL 'null'
  at 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:780)
  at 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
  at 

org.apache.jsp.wroxjdbc.JDBCTest_jsp._jspService(org.apache.jsp.wroxjdbc.JDB
CTest_jsp:83)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
  at 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
  at 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
  at 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
  at 

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:432)
  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.Http11AprProcessor.process(Http11AprProcessor.java:
831)
  at 

org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:639)
  at 
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1203)
  at java.lang.Thread.run(Unknown Source)
 Caused by: java.sql.SQLException: No suitable driver
  at java.sql.DriverManager.getDriver(Unknown Source)
  at 

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:773)
  ... 21 more


-- 
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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



question - are errors in the mod_jk logs TRULY errors?

2006-03-01 Thread michael thomas
Hello,

We've been working hard to debug networking issues
that we believe we have.  No matter what we do,
though, we still seem to get at least SOME errors in
mod_jk.log

The system seems to work fine from a user's
perspective, but we still occasionally get these:

[Wed Mar 01 20:00:42 2006] [error]
ajp_connection_tcp_get_message::jk_ajp_common.c (961):
Can't receive the response message from tomcat,
network problems or tomcat is down (10.0.0.9:8009),
err=-113
[Wed Mar 01 20:00:42 2006] [error]
ajp_get_reply::jk_ajp_common.c (1503): Tomcat is down
or refused connection. No response has been sent to
the client (yet)
[Wed Mar 01 20:00:42 2006] [info] 
ajp_service::jk_ajp_common.c (1721): Receiving from
tomcat failed, recoverable operation attempt=0
[Wed Mar 01 20:00:42 2006] [info] 
ajp_service::jk_ajp_common.c (1749): Sending request
to tomcat failed,  recoverable operation attempt=1

We don't get them that often... about once every 30
minutes.  Then again, we don't have much traffic right
now.  Only about 700 visitors a day, with about 15
page views per visitor.

Are these error messages a normal part of mod_jk, or
do they definitely indicate some sort of problem (like
network issues)?

We are using mod_jk 1.2.15, Apache 2.0.55 and Tomcat
5.5.15?

For what it's worth, we have other completely separate
system setups using mod_jk2, and they also all seem to
get occasional ajp errors.  This is our first setup
using mod_jk, and we are assuming these errors are a
bad thing.

Thanks,
-Michael


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

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



Why Tomcat uses ROOT context's log4j and log4j.properties?

2006-03-01 Thread KwonNam Son
Hello,
I have a problem that Tomcat uses ROOT web application context's
log4j-1.2.8.jar and log4j.properties.

I installed Tomcat 5.0.28, Java 1.4.2_09 and deployed root context web
application to $CATALINA_HOME/webapps/ROOT on Solaris 8.
I DO NOT change anything in $CATALIN_HOME/conf/server.xml.

And there are the following files

$CATALINA_HOME/webapps/ROOT/WEB-INF/lib/commons-logging.jar
$CATALINA_HOME/webapps/ROOT/WEB-INF/lib/log4j-1.2.8.jar
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes/log4j.properties


$CATALINA_HOME/servers or common, share directory don't have any log4j
related files.

also system classpath variable does not include
$CATALINA_HOME/webapps/ROOT/WEB-INF/lib/*.jar or
$CATALINA_HOME/webapps/ROOT/WEB-INF/classes directory.
I also checked $JAVA_HOME/jre/lib/ext, there is nothing related to log4j.

But Tomcat uses log4j and log4j.properties settings for it's logging(of
course also for ROOT WebApp context's logging) not commons-logging's simple
logger.

What should I do for the tomcat not to use web context's log4j??

Also, I can see catalian.out, but actually after using Tomcat 5.0.28 on
other machine, I've never seen the file.

Regards,
KwonNam.


Re: Tomcat 3 -- servlets don't reload..

2006-03-01 Thread Bill Barker

Frances [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 thank you very much Larry..  oh brother, my boss insists there's a way.. 
 there HAS to be a way..  how can a servlet container be designed that only 
 reloads servlets when you restart it?  ok, thanks again...


You should tell your boss that 3.2.2 is a fossil :).  You really should 
upgrade your Tomcat version if you want this.  Larry's answer was for 3.3.2, 
where the /admin webapp is primitive, but usable.


 Larry Isaacs wrote:
 I has been quite a while since I have used Tomcat 3.3.x.
 My recollection is that accessing the changed servlet would
 trigger a reload of the webapp.  This differs from the newer
 Tomcats which have a background thread checking for changes.
 Also, with a default configuration, I don't recall anything
 special that was needed beyond setting the context to be
 reloadable.  I can't say why this isn't working for you.

 As for the manager, Tomcat came with an admin webapp.  However,
 it never got far enough along to be worthy of its own manual.
 It's mentioned briefly in the User's Guide, but I think that is
 about it.  If you want a real manager/admin webapp, you will
 need to upgrade to a newer Tomcat.

 Cheers,
 Larry


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Frances
Sent: Tuesday, February 28, 2006 12:49 PM
To: users@tomcat.apache.org
Subject: Tomcat 3 -- servlets don't reload..

when I make changes to a servlet I don't see changes unless I turn tomcat 
off and on...  this is a huge pain, it's at work, where we can't be 
turning Tomcat off and on all day long whenever we make changes to a 
servlet..  Is there a way around this?  (Does Tomcat 3 come with a 
Manager?  I can't find manager-howto.html among docs (which does come 
with Tomcat 5..)  many thanks..

Frances


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



WHY TOMCAT MEMORY FROM 1G TO 15M IN 10 MINUTES

2006-03-01 Thread jiang ying
   Hi. 
   When I run the TPCW bookstore application, I found the server behave 
erratic. 
   Experiment enviroment: 
   Hardware: a client PC, two server PCs. Each PC has two 1.59 GHz AMD 
Opteron, 2GB RAM, and a 30 GB disk. One server machine runs theWeb server 
and application server software, while the other contains the database. All 
the machines run 2.4 Linux Kernel and are connected through a LAN of 
1000Mb/s. 
   Web Server: Tomcat 5.5.12 
   Database: mysql 5.0.18 
   Client Workload Generator: the freely available Java TPC-W 
implementation developed by the PHARM research group at the University of 
Wisconsin-Madison http://www.ece.wisc.edu/~pharm/tpcw.shtml 
   The file descriptor limit has been increased to 8192. 
   The maxconnection of Tomcat is 1000. 
   To solve the heap exception of Tomcat, JAVA_OPTS='-Xms256m -Xmx256m' is 
set. 
   Q1: When I emulate 100 EBs ( the command line: java rbe.RBE -EB 
rbe.EBTPCW1Factory 400 -OUT run1.m -RU 100 -MI 600 -RD 100 -WWW 
http://tomcatserver:8080/ -CUST 288000 -DEBUG 2) , the tomcat memory drops 
severly from 1G to 15M. 
   Could anyone kindly tell me why the tomcat cosumes so much memory? 
   Thank you. 


  yours cylinder

_
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



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



Executing Manager Commands With Ant and SSL

2006-03-01 Thread ash ag
I am executing tomcat manager commands with ant.
I use the following ant build file.

project name=My Application default=print basedir=.

  !-- Configure the context path for this application --
  property name=path value=/app/

  !-- Configure properties to access the Manager application --
  property name=url  value= https://192.168.8.225/manager/
  property name=username value=admin/
  property name=password value=admin/

  !-- Configure the custom Ant tasks for the Manager application --
  taskdef name=stop  classname=org.apache.catalina.ant.StopTask/

  !-- Executable Targets --
  target name=stop description=Remove web application
stop url=${url} username=${username} password=${password}
path=${path}/
  /target

/project

Tomcat is configured for secure https:// connections only.
When i issue command
ant stop
i get the following exception :
Buildfile: build.xml
stop:
BUILD FAILED
/opt/Ant/apache-ant-1.6.1/build.xml:47: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException : No trusted certificate found
Total time: 0 seconds

How can i configure the certificate in this case.

thanks in advance
--


Re: Tomcat - Hibernate

2006-03-01 Thread Giorgio Clavelli
Hi,
I'm not an exper at all, but I try to put my 2 cents.
The fact that your app can connect successfully after the server restart,
suggests that you should have your app's context.xml (or whatever it is
called) not in the server.xml but in the correct location inside your app
directories. I seem to have read, the correct location being under the
META-INF directory and that Tomcat tries first to look for context in this
dir and then  use that one under server.xml.
I hope expert user, will comfirm in one way or the other this understanding
of your problem.

On 3/2/06, Lucas Bee [EMAIL PROTECTED] wrote:

 Hello Fellow Users,



 My question is relatively simple.  It has 3 parts.



 1.  Database:

 * MySQL 4.1



 2.  Tomcat:

 * Apache Tomcat/5.0.28



 3.  Hibernate:

 * 2.1.8



 I have my app which uses Hibernate and connects to a MySQL database and
 uses
 Tomcat as the app server.  Everything works just fine except for when I
 need
 to redeploy an app.  I go into Tomcat Manager and stop the app and then
 undeploy the app.  Everything works here as well, however, when I try to
 redeploy the app it redeploys but my app can't connect to the database
 until
 after I restart Tomcat.  This is a problem when you are redeploying to the
 production server.   This might be more of a hibernate setting question
 but
 I thought it could be beneficial to post here as well since the Hibernate
 Forum is not providing any results.



 Code:



 Tomcat Server.xml



 Context path=/Cohorts docBase=Cohorts reloadable=true
 crossContext=true



 Resource name=jdbc/dbus5 scope=Shareable
 type=javax.sql.DataSource/



 ResourceParams name=jdbc/dbus5



 parameter

 namefactory/name

 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

 /parameter



 !-- DBCP database connection settings --

 parameter

 nameurl/name


 valuejdbc:mysql://localhost:3306/us?autoReconnect=true/value

 /parameter

 parameter

 namedriverClassName/namevaluecom.mysql.jdbc.Driver
 /value

 /parameter



.



 !-- DBCP connection pooling options --

.

 /ResourceParams

 /Context



 Hibernate.cfg.xml



 property name=connection.datasourcejava:comp/env/jdbc/dbus5/property

   property name=dialectorg.hibernate.dialect.MySQLDialect
 /property



 That's it!  Is there some setting I'm missing in my server.xml file?  I
 really don't know.  I've searched every place I can think of.



 Any feedback would be great!



 Thanks.



 -Lucas







Re: tomcat and xslt 2.0

2006-03-01 Thread Richard Toren

Sorry, I've been too busy or scatter brained to check here.

I use jdom and invoke  this as:

System.setProperty(javax.xml.transform.TransformerFactory, 
net.sf.saxon.TransformerFactoryImpl);

trans = new XSLTransformer( new FileInputStream( mytransform ));

I think that you have to request this before you request the 
TransformerFactory then cast the
TransformerFactory to a SAXTransformerFactory before creating the 
Templates object.  I sort of do this step out of force of habit and I'm 
not sure it is absolutely necessary (I think not).


As to the NPE, when saxon does the initial parse of the xslt it reports 
errors, which is a good thing since I write most
of my xslt in emacs.   If the xslt doesn't compile you will get an NPE, 
but that doesn't mean that's your problem in this case.  Make sure you 
are logging  your exceptions. 


Wish I could be more helpful

Richard

Zohar Amir wrote:


I've tried putting it right before TransformerFactory.newInstance() .
now, when I invoke the transform method I get NPE at 
net.sf.saxon.Controller.transform(Controller.java:1319)

Any help?

- Original Message - From: Zohar Amir [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Richard Toren 
[EMAIL PROTECTED]

Sent: Wednesday, March 01, 2006 9:25 AM
Subject: Re: tomcat and xslt 2.0



Thanks.
Where do I put the System.setProperty(...)?

- Original Message - From: Richard Toren 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, February 27, 2006 7:28 PM
Subject: Re: tomcat and xslt 2.0


I think there are not that many xslt 2.0 engines out there to choose 
from. In any case saxon is xslt 2.0 and very fast.  You have to 
include the
jar (obvious, but) and before you instantiate a 
TransformerFactory set the System property:


System.setProperty( javax.xml.transform.TransformerFactory, 
net.sf.saxon.TransformerFactoryImpl);


You will get a warning if the xslt is 1.0, but it will still compile 
and function.


Richard Toren

Zohar Amir wrote:

Correct me if I'm wrong here: as I understand it, tomcat uses Xalan 
as its XSLT engine. Xalan does not support XSLT 2.0 .
Is there any other XSLT engine I can use with tomcat (I read 
something about Saxon)? If so, how do I do that?

Thanks,
Zohar.
-
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]