Session error while loading an object

2010-07-13 Thread abhishek jain
Hi friends,
I am using tomcat 5.5 , struts 1.x and i encounter the following error:
I actually store the object in session and retrieve that(for a shopping cart
application), pl. advice what i can do to remove this error:

Exception loading sessions from persistent
storagejava.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException: com.cart.Customer
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
   at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
   at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
   at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
   at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1416)
   at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:940)
   at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
   at
org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
   at
org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4202)
   at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3056)
   at
org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:432)
   at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1278)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
   at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.NotSerializableException: com.cart.Customer
   at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
   at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
   at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
   at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
   at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
   at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
   at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1492)
   at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:957)
   at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
   at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
   at
org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
   at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4362)
   at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:3050)
   ... 7 more



-- 
Thanks and kind Regards,
Abhishek jain


RE: Tomcat not working after moving installation folder

2010-07-13 Thread Saurabh Agrawal
Hi Kannan,

Did you stop the tomcat service running previously before move operation?
I suspect, old process has occupied the same address (port or interface)

Please check. For windows there is one utility -- PortMon which will give
port if in use or not.
Try to kill that process and then restart.

Regards,
Saurabh Agrawal

-Original Message-
From: Kannan J [mailto:kannan_jayapraka...@yahoo.co.in] 
Sent: Tuesday, July 13, 2010 2:42 PM
To: users@tomcat.apache.org
Subject: Tomcat not working after moving installation folder

I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5 and
also edited the executable path in the windows service registry. But now it
doesn't start. It says The Apache Tomcat service terminated with
service-specific error 0 (0x0).
No log file gets written in D:\Tomcat5.5\logs.
I also tried running it from command prompt but it says nothing much.
 
D:\Tomcat5.5\bintomcat5.exe //RS//Tomcat5 D:\Tomcat5.5\bin
D:\Tomcat5.5\bintomcat5.exe Listening for transport dt_socket at address:
8000
 
When I try to open http://localhost:8080 I see that tomcat is not running.
Please advice.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread André Warnier

Kannan J wrote:
I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5 and also edited the executable path in the windows service registry. But now it doesn't start. It says 
The Apache Tomcat service terminated with service-specific error 0 (0x0).

No log file gets written in D:\Tomcat5.5\logs.
I also tried running it from command prompt but it says nothing much.
 
D:\Tomcat5.5\bintomcat5.exe //RS//Tomcat5

D:\Tomcat5.5\bin
D:\Tomcat5.5\bintomcat5.exe
Listening for transport dt_socket at address: 8000


This does not really look like a Tomcat message (but I may be wrong here).

 
When I try to open http://localhost:8080 I see that tomcat is not running.

Please advice.


You can also run :
netstat -ano

to see which ports are in the LISTEN state.

Maybe you overlooked the fact that the system variable CATALINA_HOME is still set to the 
C:\tomcat5.5 directory ?


One question : does your Tomcat bin subdirectory contain files like service.bat, 
startup.bat etc.. ?






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: Tomcat not working after moving installation folder
 
 Kannan J wrote:
  I ran out of disk space on C: so I moved C:\Tomcat5.5 to D:\Tomcat5.5
 and also edited the executable path in the windows service registry.

Probably not a safe way to do it, since you likely didn't find everything that 
needed changing.  The best thing to do (besides getting a bigger disk drive) is 
to remove the existing service by running service.bat remove, then reinstall 
it with service.bat install.  If you don't have the service.bat script in 
your download, get the .zip form of Tomcat and extract it from there.

  Listening for transport dt_socket at address: 8000
 
 This does not really look like a Tomcat message (but I may 
 be wrong here).

It's from the Windows service wrapper, not Tomcat itself.

 Maybe you overlooked the fact that the system variable CATALINA_HOME is
 still set to the C:\tomcat5.5 directory ?

Environment variables are not used when running Tomcat as a Windows service, to 
that's not relevant.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Does Tomcat have any special DNS requirements?

2010-07-13 Thread dbrownell83

Hi there,

I've got my initial Tomcat page running on my VPS:
http://173.245.73.238:8080/

I have a godaddy domain, and have set it up with DNS records:
--
A/HOSTS
www.mydomain.com points to 173.245.73.238
CNAMES
www points to www.mydomain.com
--

I will wait another 48 hours, but I am just certain it's not going to work. 
(Murphy's Law)
Eventually I would like to type http://www.mydomain.com:8080 and see the It
works!.  Very basic.  I can work on changing to port 80 later.

Must I do anything special to tomcat for this to work?  I haven't modified
server.xml at all.

Thanks,
Daniel
-- 
View this message in context: 
http://old.nabble.com/Does-Tomcat-have-any-special-DNS-requirements--tp29150907p29150907.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Does Tomcat have any special DNS requirements?

2010-07-13 Thread Caldarale, Charles R
 From: dbrownell83 [mailto:dbrownel...@hotmail.com]
 Subject: Does Tomcat have any special DNS requirements?
 
 Eventually I would like to type http://www.mydomain.com:8080
 and see the It works!.

As long as www.mydomain.com resolves to your assigned IP address *and* port 
8080 is open for your virtual server, it should work.

 Must I do anything special to tomcat for this to work?

No.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Jeffrey Janner
 -Original Message-
 From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
 Sent: Tuesday, July 13, 2010 8:27 AM
 To: Tomcat Users List
 Subject: RE: Tomcat not working after moving installation folder
 
  From: André Warnier [mailto:a...@ice-sa.com]
  Subject: Re: Tomcat not working after moving installation folder
 
  Kannan J wrote:
   I ran out of disk space on C: so I moved C:\Tomcat5.5 to
 D:\Tomcat5.5
  and also edited the executable path in the windows service registry.
 
 Probably not a safe way to do it, since you likely didn't find
 everything that needed changing.  The best thing to do (besides getting
 a bigger disk drive) is to remove the existing service by running
 service.bat remove, then reinstall it with service.bat install.  If
 you don't have the service.bat script in your download, get the .zip
 form of Tomcat and extract it from there.
 
   Listening for transport dt_socket at address: 8000
 
  This does not really look like a Tomcat message (but I may
  be wrong here).
 
 It's from the Windows service wrapper, not Tomcat itself.
 
  Maybe you overlooked the fact that the system variable CATALINA_HOME
 is
  still set to the C:\tomcat5.5 directory ?
 
 Environment variables are not used when running Tomcat as a Windows
 service, to that's not relevant.
 
  - Chuck

Actually, CATALINA_HOME is used, it's just set in the registry instead of as a 
environment variable.  It's set in the Procrun portion of the tree.
It does appear that he didn't make all the changes needed in the registry.  The 
easiest way is to correct this is to do as Chuck says and use the service.bat 
script to do a remove and reinstall.  The second easiest method is to make all 
the corrections useing the Configure Tomcat option and changing all the 
appropriate paths you find there.  There also appear to be two locations in the 
registry tree for Tomcat, one is under the SERVICES, ImagePath, and the other 
is under SOFTWARE, InstallPath, though I can't tell you for sure that this 
one needs to be changed.
Do yourself a favor and follow Chuck's instructions.

__

Confidentiality Notice:  This Transmission (including any attachments) 
may contain information that is privileged, confidential, and exempt from 
disclosure under applicable law.  If the reader of this message is not 
the intended recipient you are hereby notified that any dissemination, 
distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply 
to the sender or telephone (512) 343-9100 and delete this transmission 
from your system.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread David kerber

On 7/13/2010 10:22 AM, Jeffrey Janner wrote:

...


Do yourself a favor and follow Chuck's instructions.


When it comes to Tomcat:

If in danger or in doubt, do what Chuck says, and it'll work out.

D

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Robedan

I have an application that has a Web interface using an embeded Tomcat 4
Server. I need to make it available to users over the Internet and want to
secure it with SSL. It originally worked on port 8080 but I successfully
modified the SERVER.XML to make it work over port 80. I also sucessfully
created an SSL connector so that if you specify https://myserver.domain.com
you can access the app over SSL on port 443. The final piece of the puzzle
I've been struggling with is automatically redirecting http: requests to
https: All the Tomcat forums say this is pretty simple, all you need to do
is add a bit of code to either the server or app's web.xml:





Protected Context

/*





CONFIDENTIAL





When I enter this code and restart Tomcat, the app stops working on all
ports. I just get a '404' resource not found on the default page or any
other. I'm sure I'm missing something but I have no idea what. Are there Any
Tomcat gurus out there that can point me in the right direction?

-- 
View this message in context: 
http://old.nabble.com/Problem-redirecting-http-to-https-in-Tomcat-4-tp29151597p29151597.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


Re: Session error while loading an object

2010-07-13 Thread abhishek jain
On Tue, Jul 13, 2010 at 2:11 PM, Peter Crowther peter.crowt...@melandra.com
 wrote:

 On 13 July 2010 09:34, abhishek jain abhishek.netj...@gmail.com wrote:

  I am using tomcat 5.5 , struts 1.x and i encounter the following error:
  I actually store the object in session and retrieve that(for a shopping
  cart
  application), pl. advice what i can do to remove this error:
 
  java.io.NotSerializableException: com.cart.Customer
 

 You need to make sure that com.cart.Customer (and anything else you store
 in
 the session) is serializable.

 - Peter


Thanks Peter,
i will check but i get this error only at times, and not always.
Can this still be the cause of the problem.
thanks
abhishek


Tomcat/webapp bundled deployment

2010-07-13 Thread Noah Cantor
Hello, I would like to deploy Tomcat bundled with a few applications (both
webapps and non-web applications).  Preferably, this would all be stored in
one file (be it a jar, ear, or any other format), and upon decompressing, I
could simply run a script that would activate the server, load the webapps
onto the server, and launch the non-web applications.  My first question is
how can I package Tomcat along with all other necessary source/class files,
scripts and whatnot.  I would be interested in packaging via Eclipse, but
any other method would be fine as well.

I am currently running Tomcat v6.0.18 on Windows XP, but I plan to deploy on
both Windows XP and Linux (various possible flavors).

If more information is needed, please let me know, and I will reply as
quickly as I can.  Thanks for your help.


RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Subject: RE: Tomcat not working after moving installation folder
 
 Actually, CATALINA_HOME is used, it's just set in the registry 
 instead of as a environment variable.

The point is the _environment variable_ is NOT used when running Tomcat as a 
Windows service - the registry entry is.  The environment variable does come 
into play when _installing_ the service.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat and Hex characters

2010-07-13 Thread arun kumar
Hello
  I'm facing a problem with which i need some help:

I'm using JBOSS which internally uses Tomcat.
When i send a request to a servlet running inside tomcat with a parameter that 
is encoded in UTF-8, the parameter's value shows up as .
I tried several things like adding URIEncoding=”UTF-8” and 
useBodyEncodingForURI=true in the server.xml and writing a filter that sets 
the encoding to UTF-8 specifically but to no avail.

The only thing that seems to work is if i replace the % in the hex value of the 
UTF encoded string by %25

Any clues on this problem? What do i have to do to be able to pass hex values 
of UTF-8 encoded strings that represent characters of foreign languages (like 
say Chines/Japanese) to my servlet so it is read correctly? Is there some 
specified way to read it?

Thanks and regards
Arun




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Caldarale, Charles R
 From: Robedan [mailto:drobe...@cesco.net]
 Subject: Problem redirecting http to https in Tomcat 4
 
 I have an application that has a Web interface using an 
 embeded Tomcat 4 Server.

No longer supported.  You really should upgrade.

 The final piece of the puzzle I've been struggling with 
 is automatically redirecting http: requests to https:

Read the servlet spec.  Real doc beats forums and mailing lists (even this one) 
every day.

 all you need to do is add a bit of code to either the 
 server or app's web.xml:
 
 Protected Context
 /*
 CONFIDENTIAL

If that's what you actually put in, it's complete junk.  Care to tell us what 
you really tried (after reading the servlet spec), and where you tried it?

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat and Hex characters

2010-07-13 Thread Caldarale, Charles R
 From: arun kumar [mailto:arunbha...@yahoo.com]
 Subject: Tomcat and Hex characters
 
 What do i have to do to be able to pass hex values of 
 UTF-8 encoded strings that represent characters of 
 foreign languages (like say Chines/Japanese) to my 
 servlet so it is read correctly?

Start by studying this (it's non-trivial, and it's not clear how running inside 
JBoss affects it):
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

If that doesn't help, come back to the list and tell us what exact Tomcat 
version you're using, along with the JVM level and the platform you're on, and 
the exact changes you've made.  Be precise.

You should probably try to solve the problem on a standalone Tomcat first, then 
apply the working config to JBoss, if possible.

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



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Kannan J
I don't have the service.bat in the bin folder so from another Jakarta Tomcat 
zip file. When I did
D:\Tomcat5.5\binservice.bat remove
The service 'Tomcat5' has been removed
 
I still find the windows service, but its seems to have changed to 'Disabled' 
(not sure what it was before)
After that, the install command fails:
 
D:\Tomcat5.5\binservice.bat install
[2010-07-13 22:14:53] [410  prunsrv.c] [error]
The system cannot find the file specified.
[2010-07-13 22:14:53] [1269 prunsrv.c] [error]
Load configuration failed
[2010-07-13 22:14:53] [410  prunsrv.c] [error]
The system cannot find the file specified.
[2010-07-13 22:14:53] [1269 prunsrv.c] [error]
Load configuration failed
The service 'Tomcat5' has been installed


It is far better to grasp the universe as it really is than to persist in 
delusion, however satisfying and reassuring.

--- On Tue, 13/7/10, Caldarale, Charles R chuck.caldar...@unisys.com wrote:


From: Caldarale, Charles R chuck.caldar...@unisys.com
Subject: RE: Tomcat not working after moving installation folder
To: Tomcat Users List users@tomcat.apache.org
Date: Tuesday, 13 July, 2010, 9:08 PM


 From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com]
 Subject: RE: Tomcat not working after moving installation folder
 
 Actually, CATALINA_HOME is used, it's just set in the registry 
 instead of as a environment variable.

The point is the _environment variable_ is NOT used when running Tomcat as a 
Windows service - the registry entry is.  The environment variable does come 
into play when _installing_ the service.

- 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





unable to deploy correctly in tomcat 6.0.10

2010-07-13 Thread Tarun Gupta
Hi Guys,

   Till recently, my application was working correctly. But, since the last
3-4 days during deploying I get the following exception:

 

010-07-13 09:58:08,515 ERROR [org.springframework.web.context.ContextLoader]
- Context initialization failed 

org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'emailMetadataParser' defined in ServletContext resource
[/WEB-INF/spring-config/doc-parser.xml]: Cannot resolve reference to bean
'dataloadManager' while setting bean property 'dataloadManager'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'dataloadManager' defined in ServletContext resource
[/WEB-INF/spring-config/everest.xml]: Cannot resolve reference to bean
'preprocessor' while setting bean property 'preprocessor'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'preprocessor' defined in ServletContext resource
[/WEB-INF/spring-config/doc-parser.xml]: Cannot resolve reference to bean
'prefilterService' while setting bean property 'prefilterService'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'prefilterService' defined in ServletContext
resource [/WEB-INF/spring-config/everest.xml]: Invocation of init method
failed; nested exception is
org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI
stub failed; nested exception is java.rmi.ConnectIOException: error during
JRMP connection establishment; nested exception is: 

 http://java.net.so/ java.net.SocketException: Connection reset 

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eReference(BeanDefinitionValueResolver.java:275) 

at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eValueIfNecessary(BeanDefinitionValueResolver.java:104) 

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) 

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:1010) 

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) 

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409) 

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

at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:380) 

at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:264) 

at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:222) 

at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:261) 

at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:185) 

at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:164) 

at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:429) 

at
org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:728) 

at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:380) 

at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:255) 

at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:199) 

at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:45) 

at
com.digitalmountain.web.listener.StartupListener.contextInitialized(StartupL
istener.java:42) 

at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3827) 

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


at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
61) 

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) 

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) 

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) 

at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883
) 

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) 

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) 

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

at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:120) 

at 

Tomcat supported versions

2010-07-13 Thread Garen Azizian
Hello.

 

I would like to find out what is the current minimal supported version of 
Tomcat.

 

Also is the Tomcat 5.0.18 still a supported version? 

 

 

Thank You,

Garen


Re: Tomcat supported versions

2010-07-13 Thread Mark Thomas
On 13/07/2010 18:57, Garen Azizian wrote:
 Hello.
 
  
 
 I would like to find out what is the current minimal supported version of 
 Tomcat.

Define supported. It depends if you are looking for security fixes, bug
fixes or enhancements.

See http://wiki.apache.org/tomcat/TomcatVersions for details.

You'll get help here on any Tomcat version. The newer the version, the
more people that will be able to help.

 Also is the Tomcat 5.0.18 still a supported version? 

No in the sense that there have been no releases for years and it is
highly unlikely that there will be any future releases.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat supported versions

2010-07-13 Thread Caldarale, Charles R
 From: Garen Azizian [mailto:garen.aziz...@oracle.com]
 Subject: Tomcat supported versions
 
 I would like to find out what is the current minimal 
 supported version of Tomcat.

You could always read the Tomcat home page...
http://tomcat.apache.org/

 Also is the Tomcat 5.0.18 still a supported version?

Definitely not.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not working after moving installation folder

2010-07-13 Thread Caldarale, Charles R
 From: Kannan J Subject: RE: Tomcat not working after moving installation 
 folder

 I still find the windows service, but its seems to have 
 changed to 'Disabled'

Not good.  You may have to delete the service manually (which will require some 
research).

It looks like your manual editing of the registry has mucked things up to the 
point that your best bet may be to uninstall Tomcat completely and reinstall it 
in the desired location.  (I'd use the .zip download, not the .exe one.)  Given 
that you now have an unusable service with the name Tomcat5, you may have to 
install the new one under a different name; see the comments in service.bat to 
learn how to do that.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat supported versions

2010-07-13 Thread Garen Azizian
Support in terms of security fixes.


Garen
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Tuesday, July 13, 2010 11:09
To: Tomcat Users List
Subject: Re: Tomcat supported versions

On 13/07/2010 18:57, Garen Azizian wrote:
 Hello.
 
  
 
 I would like to find out what is the current minimal supported version of 
 Tomcat.

Define supported. It depends if you are looking for security fixes, bug
fixes or enhancements.

See http://wiki.apache.org/tomcat/TomcatVersions for details.

You'll get help here on any Tomcat version. The newer the version, the
more people that will be able to help.

 Also is the Tomcat 5.0.18 still a supported version? 

No in the sense that there have been no releases for years and it is
highly unlikely that there will be any future releases.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat supported versions

2010-07-13 Thread David kerber

On 7/13/2010 1:57 PM, Garen Azizian wrote:

Hello.



I would like to find out what is the current minimal supported version of 
Tomcat.


Why?  If you want to stick with a 5.x version, 5.5.x still works very 
well, but 6.x is nice and stable, and will still run on Java 5.







Also is the Tomcat 5.0.18 still a supported version?





Thank You,

Garen




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat supported versions

2010-07-13 Thread Ben Souther
How do you define supported?
Tomcat is an open source project.  There is no support, other than the
help you can get on this list.

I've heard of companies that offer support for Tomcat for a fee.
You would have to check with them to see which versions they currently
support.










On Tue, 2010-07-13 at 10:57 -0700, Garen Azizian wrote:
 Hello.
 
  
 
 I would like to find out what is the current minimal supported version of 
 Tomcat.
 
  
 
 Also is the Tomcat 5.0.18 still a supported version? 
 
  
 
 
 
 Thank You,
 
 Garen


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Robedan

Thanks for the reply. In answer to your questions:

No longer supported.  You really should upgrade.

Not an option here. Tomcat 4 comes embedded with the app. Upgrading may
affect the app negatively, or in a way the vendor won't support. Gonna have
to live with it for now.

If that's what you actually put in, it's complete junk.  Care to tell us
what you really tried (after reading the servlet spec), and where you tried
it?

That is indeed junk, and not what I put in. The mailing list posting process
screwed something up, sorry about that. I'm attachng a copy of ther web.xml
taken from /tomcat/conf. The inserted code snippet is at the end of the
file, before the closing /web-app. I also tried inserting the snippet in
the app's web.xml with the same results. The snippet creates a CONFIDENTIAL
transport-guarantee element and can be found on many Tomcat forums,
including this one, but you can look at
http://forums.sun.com/thread.jspa?threadID=197150 to see what I'm talking
about. I was looking for something that would not modify the app too much
and could be easily reversed in case of a problem, but it doesn't seem to be
working for me.

Thanks again for taking the time to reply.

-- 
View this message in context: 
http://old.nabble.com/Problem-redirecting-http-to-https-in-Tomcat-4-tp29151597p29155023.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Caldarale, Charles R
 From: Robedan [mailto:drobe...@cesco.net]
 Subject: RE: Problem redirecting http to https in Tomcat 4
 
 I'm attachng a copy of ther web.xml taken from /tomcat/conf.

The list strips most attachments, so that didn't work.  Sometimes .zip files 
come through, but it's usually easiest just to place the text inline in a post, 
and make sure your e-mail client is sending plain text, not HTML or RTF.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Robedan

Whoops, forgot to attach the web.xml. Here it is...
http://old.nabble.com/file/p29155093/web.xml web.xml 
-- 
View this message in context: 
http://old.nabble.com/Problem-redirecting-http-to-https-in-Tomcat-4-tp29151597p29155093.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Session error while loading an object

2010-07-13 Thread Peter Crowther
On 13 July 2010 16:15, abhishek jain abhishek.netj...@gmail.com wrote:

 On Tue, Jul 13, 2010 at 2:11 PM, Peter Crowther 
 peter.crowt...@melandra.com
  wrote:

  On 13 July 2010 09:34, abhishek jain abhishek.netj...@gmail.com wrote:
 
   I am using tomcat 5.5 , struts 1.x and i encounter the following error:
   I actually store the object in session and retrieve that(for a shopping
   cart
   application), pl. advice what i can do to remove this error:
  
   java.io.NotSerializableException: com.cart.Customer
  
 
  You need to make sure that com.cart.Customer (and anything else you store
  in
  the session) is serializable.
 
  - Peter
 

 Thanks Peter,
 i will check but i get this error only at times, and not always.
 Can this still be the cause of the problem.
 thanks
 abhishek


Yes.  It's happening because your webapp is being reloaded (are you changing
some part of it?) and there are active sessions.  The sessions are
serialised to persist them; then the webapp is restarted; then the sessions
are deserialised.

If there are no sessions at the time the webapp is restarted, the problem
will not occur.

- Peter


RE: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Caldarale, Charles R
 From: Robedan [mailto:drobe...@cesco.net]
 Subject: RE: Problem redirecting http to https in Tomcat 4
 
 Whoops, forgot to attach the web.xml. Here it is...
 http://old.nabble.com/file/p29155093/web.xml web.xml

I copied  pasted your security-constraint section into the conf/web.xml file 
of a supported version of Tomcat (6.0.26), and everything is redirected to the 
SSL port, as expected.  That's about as far as I can take this, since Tomcat 4 
is before my time (and I have no interest in learning it).

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat/webapp bundled deployment

2010-07-13 Thread David Fisher
That is pretty much what i do, but I recommend that you adopt an overlay 
approach. It will make it easy for you to take new versions of Tomcat when they 
are available.

Here is how I currently deploy to Solaris.

(1) I use a blessed tomcat distribution from 
http://tomcat.apache.org/download-60.cgi

(2) I build a tarball that contains files to be installed relative to the 
tomcat directory

- bin/setenv.sh - to configure the environment.
- conf/server.xml - to configure tomcat hosts
- conf/tomcat-users.xml - to enable a user for jmx and the manager
- conf/context.xml - to configure the context.
- Catalina/domainname/manager.xml - to manage my domain.
- lib/*.jar  - common jar files - poi, lucene, log4j, etc.
- webapps-wars/ROOT.war - my webapp - I separate the base in server.xml

(3) I have an installation script that always assumes that there is either a 
previous install or a fresh installation of Tomcat.

- stops tomcat.
- makes sure that examples and other default tomcat applications are removed.
- changes the directory to the tomcat base.
- untars the tarball over tomcat.
- modifies the jvmroute in the conf/server.xml so my apache front ends can load 
balance with mod_jk.

If you can use cygwin then you may be able to create a single script for both 
Windows and Linux.

Regards,
Dave

On Jul 13, 2010, at 8:23 AM, Noah Cantor wrote:

 Hello, I would like to deploy Tomcat bundled with a few applications (both
 webapps and non-web applications).  Preferably, this would all be stored in
 one file (be it a jar, ear, or any other format), and upon decompressing, I
 could simply run a script that would activate the server, load the webapps
 onto the server, and launch the non-web applications.  My first question is
 how can I package Tomcat along with all other necessary source/class files,
 scripts and whatnot.  I would be interested in packaging via Eclipse, but
 any other method would be fine as well.
 
 I am currently running Tomcat v6.0.18 on Windows XP, but I plan to deploy on
 both Windows XP and Linux (various possible flavors).
 
 If more information is needed, please let me know, and I will reply as
 quickly as I can.  Thanks for your help.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Content length when HTTP Transfer-encoding is chunked

2010-07-13 Thread clam715

I have the same problem.  Can anyone tell me how to fix the problem?  I try
to use filter to remove content-length, however it only work for
content-length that is greater than 8k.  for page with less than 8k,
content-length header will always show up.  Thank You


Mahesh Seshan wrote:
 
 Hello,
 
 I can obtain the content-length of a HTTP Servlet Request when the
 Content-Length header is added by the client. However, when the
 Transfer-encoding is chunked, how do I programatically obtain the
 content length ?
 
 The task at hand for me is to prevent a HTTP client from issuing a
 request that has a huge payload that could pose a resource risk on the
 HTTP server.
 
 Any help or pointers appreciated.
 
 Thank you,
 
 -mahesh
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Content-length-when-HTTP-Transfer-encoding-is-chunked-tp22353656p29155519.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: question for sso session replication in tomcat 6.0.26

2010-07-13 Thread Okubo, Yasushi (TSD)


-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Friday, June 25, 2010 4:29 AM
To: Tomcat Users List
Subject: Re: question for sso session replication in tomcat 6.0.26

On 24/06/2010 21:49, Okubo, Yasushi (TSD) wrote:
 My bad.
 
 I added *.jsp to the filter since it contains the path to index page
as
 follows.  Now, I am wondering when sso session id is created and
 replicated, is it when index.jsp was accessed or login.jsp was
accessed?
 
 You had added it and have now removed it?

 The normal session id is created when you access a JSP for the first
 time, unless you have specifically configured JSPs to not create a
 session.  A session can also be created manually by a Filter or a
Servlet.

 The SSO session is created when the container login process completes
 authentication successfully.

 I'm not entirely clear on when SSO replication occurs - presumably
only
 when there's a change like session invalidation or creation.


 p

Hi Pid

I tested with the latest v6.0.28, and sso session identifier propagation
has been fixed.  

https://issues.apache.org/bugzilla/show_bug.cgi?id=49445

Thanks,



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



remove content-length http header when header Transfer-Encoding chunked exist

2010-07-13 Thread clam715

I am using tomcat 5.5.27.  

All my http response create both http header content-length and
Transfer-Encoding  chunked.
This not valid according to RFC. 
How can I remove the content-length from the header of
httpServletResponse? 
Thank You
 


-- 
View this message in context: 
http://old.nabble.com/remove-%22content-length%22-http-header-when-header-%22Transfer-Encoding%09chunked%22-exist-tp29155633p29155633.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



weird bug?

2010-07-13 Thread michel
I probaly have some configuation all wrong, but with Apache Tomcat Version 
6.0.26 I have this weird new bug that I didn't have in Tomcat 4.1.



If I have this code in a jsp that is in the appBase=webapps/supergrow 
directory the import seems to work



%@ page import=compukat.io.FileUtil %


but if I have the JSP in webapps/supergrow/canscale it stops working ...


Thank you



Michel









-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: weird bug?

2010-07-13 Thread Mark Thomas
On 13/07/2010 22:06, michel wrote:
 I probaly have some configuation all wrong, but with Apache Tomcat
 Version 6.0.26 I have this weird new bug that I didn't have in Tomcat 4.1.
 
 
 If I have this code in a jsp that is in the appBase=webapps/supergrow
 directory the import seems to work
 
 
 %@ page import=compukat.io.FileUtil %
 
 
 but if I have the JSP in webapps/supergrow/canscale it stops working ...

Please don't hijack threads. If you'd like to try again in a new thread...

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: weird bug?

2010-07-13 Thread Caldarale, Charles R
 From: michel [mailto:compu...@videotron.ca]
 Subject: weird bug?
 
 I probaly have some configuation all wrong

So post your server.xml and the web.xml for your webapp.  Remove all comments 
and obscure any privileged information (eg, passwords).  Lots of configuration 
things have changed since Tomcat 4.

 If I have this code in a jsp that is in the 
 appBase=webapps/supergrow

That would be an extremely odd and probably erroneous setting for appBase; 
let's hope you meant docBase.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: remove content-length http header when header Transfer-Encoding chunked exist

2010-07-13 Thread Mark Thomas
On 13/07/2010 22:02, clam715 wrote:
 
 I am using tomcat 5.5.27.  
 
 All my http response create both http header content-length and
 Transfer-Encodingchunked.
 This not valid according to RFC. 
 How can I remove the content-length from the header of
 httpServletResponse? 

Fix your broken application? Tomcat is unlikely to be doing that on its own.

Mark



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



404 with mod_jk

2010-07-13 Thread Michael Powe
Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.  

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out. 

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

The Apache access log shows:

localhost - - [13/Jul/2010:16:41:02 -0400] GET
/TlTaggerTest/target.jsp  404 332 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

No indication on the Tomcat side of any activity.

The ajp13 connector is enabled.  Both mod_jk and ajp13 connector are
on port 8009.

The files are available directly from Tomcat through port 8080.

The local files (in htdocs) are properly served.

localhost - - [13/Jul/2010:16:58:01 -0400] GET
/TlTaggerTest/target.html  200 67 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

I sure would appreciate any pointers for troubleshooting or
resolution. 

Thanks.

mp

-- 
Michael Powemich...@trollope.orgNaugatuck CT USA


47.3% of all statistics are made up on the spot. - Steven Wright


pgpqpMwrTG7dh.pgp
Description: PGP signature


Tomcat 5.0.18 to Tomcat 5.5.23 upgrade issues

2010-07-13 Thread Venkat Tanga

Hi,

  I am upgrading the web server Tomcat 5.0.18 to Tomcat 5.5.23 for 
my Struts 1.1 based web application.


  I am facing JNDI configuration  Logging files creation issues in 
Tomcat 5.5.23. Till now I am using tomcat 5.0.18.
 
  Now I need to upgrade my J2SE 1.4 based web application to Tomcat 
5.5.23. There I am facing JNDI configuration related issues.


  For your reference here I  enclosed *server.xml* file of Tomcat 
5.0.18, plz find it  suggest me how can I apply the same JNDI resources 
configuration to the Tomcat 5.5.23 server.


  When I tried to apply the similar changes to Tomcat 5.5.23's 
server.xml file. I faced below mentioned issues.


 At present I am facing two exceptions.

1. Class Not Found related Error:
 
This problem is raising because of the Logging is 
mentioned in the Server.xml file. 

Because of this problem server is not even starting.  
Reg this error, for your ref. I attached a log file 
(catalina(1).2010-07-10.log)  here, Plz find it.
  
   Then I commented the Logging related elements  tried to 
run the server, then it leaded to another problem which is mentioned below.


2. JNDI resource / realam creation related errors:

Now the JNDI related issues are raising. (the actual 
data sources connectivity URL's are configured in the struts-config.xml 
file of the application)


Reg this error, for your ref. I attached another log 
file (catalina(2).2010-07-10.log) here, plz find it.


 Any body plz suggest me the resolution ways. Many thanks in 
advance.


   
--

Regards,
Venkat
Jul 10, 2010 1:29:09 AM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)
at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:267)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Jul 10, 2010 1:29:09 AM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: 
java.lang.ClassNotFoundException: org.apache.catalina.logger.FileLogger
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2726)
at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2752)
at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1279)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

Re: weird bug?

2010-07-13 Thread michel




Please don't hijack threads. If you'd like to try again in a new thread...

Mark



Please explain how to start a new thread, versus hijacking one.


Michel 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 5.0.18 to Tomcat 5.5.23 upgrade issues

2010-07-13 Thread Caldarale, Charles R
 From: Venkat Tanga [mailto:venkateswararao.ta...@oracle.com]
 Subject: Tomcat 5.0.18 to Tomcat 5.5.23 upgrade issues
 
 I am upgrading the web server Tomcat 5.0.18 to Tomcat 5.5.23

Why would you upgrade to a version of Tomcat that's more than two years old?  
If you're going to upgrade, be serious about it and use a current level (6.0.28 
preferably, 5.5.30 if you must, 7.0.0 if you're brave).

 I am facing JNDI configuration  Logging files creation issues
 in Tomcat 5.5.23. Till now I am using tomcat 5.0.18.

Please read the Tomcat 5.5 docs; many of the config details have changed, and 
it's not our job to do your homework (unless we get paid for it).  Once you've 
read the docs (and looked at the FAQ), then ask questions if something's not 
clear.

http://tomcat.apache.org/tomcat-5.5-doc/index.html
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/logging.html
http://tomcat.apache.org/faq

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: weird bug?

2010-07-13 Thread Caldarale, Charles R
 From: michel [mailto:compu...@videotron.ca]
 Subject: Re: weird bug?
 
 Please explain how to start a new thread, versus hijacking one.

You really don't know how to create a new e-mail message, rather than hitting 
the reply button?  What seriously deficient e-mail client are you using?

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: weird bug?

2010-07-13 Thread michel
You could have just answered my question, instead of making such a snarky 
reply.




Michel


- Original Message - 
From: Caldarale, Charles R chuck.caldar...@unisys.com

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 13, 2010 5:42 PM
Subject: RE: weird bug?



From: michel [mailto:compu...@videotron.ca]
Subject: Re: weird bug?

Please explain how to start a new thread, versus hijacking one.


You really don't know how to create a new e-mail message, rather than 
hitting the reply button?  What seriously deficient e-mail client are you 
using?


- 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: weird bug?

2010-07-13 Thread Bob Hall
--- On Tue, 7/13/10 at 2:50 PM, michel compu...@videotron.ca wrote:

 You could have just answered my
 question, instead of making such a snarky reply.
 

Perhaps this will help:

  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking

- Bob


  

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: weird bug?

2010-07-13 Thread Len Popp
On Tue, Jul 13, 2010 at 17:42, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 You really don't know how to create a new e-mail message, rather than hitting 
 the reply button?  What seriously deficient e-mail client are you using?

  - Chuck

You really don't know that most people don't understand your problem,
because we use email clients that recognize threads properly? All of
the hundreds of don't hijack threads messages I see on this list are
nothing but spam, AFAIC.

Suggestion: In future, when deriding someone for hijacking threads,
do it in a private email instead of annoying everyone else on the
list. Thanks.
--
Len

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: remove content-length http header when header Transfer-Encoding chunked exist

2010-07-13 Thread clam715

Thank you for your reply.  Please what can I do in my end to fix the problem.


markt-2 wrote:
 
 On 13/07/2010 22:02, clam715 wrote:
 
 I am using tomcat 5.5.27.  
 
 All my http response create both http header content-length and
 Transfer-Encoding   chunked.
 This not valid according to RFC. 
 How can I remove the content-length from the header of
 httpServletResponse? 
 
 Fix your broken application? Tomcat is unlikely to be doing that on its
 own.
 
 Mark
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/remove-%22content-length%22-http-header-when-header-%22Transfer-Encoding%09chunked%22-exist-tp29155633p29156381.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-13 Thread Rainer Jung

On 13.07.2010 23:17, Michael Powe wrote:

Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out.

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

The Apache access log shows:

localhost - - [13/Jul/2010:16:41:02 -0400] GET
/TlTaggerTest/target.jsp  404 332 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

No indication on the Tomcat side of any activity.

The ajp13 connector is enabled.  Both mod_jk and ajp13 connector are
on port 8009.

The files are available directly from Tomcat through port 8080.

The local files (in htdocs) are properly served.

localhost - - [13/Jul/2010:16:58:01 -0400] GET
/TlTaggerTest/target.html  200 67 - Mozilla/5.0 (X11; U; Linux
i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid)
Firefox/3.6.3 -

I sure would appreciate any pointers for troubleshooting or
resolution.

Thanks.

mp


Since you already have trace logging enabled:

- is this all that gets logged in the jk log file for the request?

- can you see your worker worker1 getting configured during startup
(debug log messages)?

- anything in the httpd error log? Maybe your mod_jk module file is not 
really compatible with your web server binary and you get process crashes?


If those remarks do not help, we will need your configuration and more 
complete logs.


Regards,

Rainer

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat and Hex characters

2010-07-13 Thread Mitch Claborn
This may help.  If any of the filters in the chain do any kind of read 
to the input stream, then the encoding is fixed from that point on.  I 
had a similar problem with Struts in Tomcat.  I solved it by putting a 
filter in the chain ahead of sturts and calling

  req.setCharacterEncoding(UTF-8);
on the ServletRequest before calling the next filter(s).


Mitch



On 07/13/2010 11:33 AM, Caldarale, Charles R wrote:

From: arun kumar [mailto:arunbha...@yahoo.com]
Subject: Tomcat and Hex characters

What do i have to do to be able to pass hex values of
UTF-8 encoded strings that represent characters of
foreign languages (like say Chines/Japanese) to my
servlet so it is read correctly?


Start by studying this (it's non-trivial, and it's not clear how running inside 
JBoss affects it):
http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

If that doesn't help, come back to the list and tell us what exact Tomcat 
version you're using, along with the JVM level and the platform you're on, and 
the exact changes you've made.  Be precise.

You should probably try to solve the problem on a standalone Tomcat first, then 
apply the working config to JBoss, if possible.

  - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Seem to have it fixed ...

2010-07-13 Thread michel

I changed appBase=webapps/supergrow

to

Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false reloadable=true

and I added
Context docBase=supergrow path=/

and the jsp that was in supergrow/canscale with %@ page 
import=compukat.io.FileUtil % worked.




Thanks for the great help!

Michel












-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Seem to have it fixed ...

2010-07-13 Thread Caldarale, Charles R
 From: michel [mailto:compu...@videotron.ca]
 Subject: Seem to have it fixed ...
 
 Host name=localhost appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false reloadable=true
 
 and I added
 Context docBase=supergrow path=/

Almost ok.  With Tomcat 5.0 and above, putting Context elements in server.xml 
is strongly discouraged, since it requires restarting Tomcat whenever the 
webapp configuration is updated, and violates the servlet spec principal of 
webapp independence.  Your particular Context element is so simple it's 
actually not needed at all.  When one is needed, the proper location is in the 
file META-INF/context.xml inside the webapp, or in 
conf/Catalina/[host]/[appName.xml].  When you do so, leave out the docBase and 
path attributes, since those are illegal (unless the Context is in 
server.xml).

http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

 - Chuck


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


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: weird bug?

2010-07-13 Thread Konstantin Kolinko
2010/7/14 Len Popp len.p...@gmail.com:
 Suggestion: In future, when deriding someone for hijacking threads,
 do it in a private email instead of annoying everyone else on the
 list. Thanks.

1. The don't hijack threads messages are important.
2. Private emails are discouraged, per policy.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat and Hex characters

2010-07-13 Thread André Warnier

Hi.

Independently of the questions of character set encodings and settings (for that, really 
read the FAQ to which Chuck pointed you), the fact that you wrote this :


...

The only thing that seems to work is if i replace the % in the hex value of the 
UTF encoded string by %25



makes me suspect that there are actually /two/ consecutive URL-unescaping stages taking 
place : the first one decodes %25xy into %xy, then the second one decodes %xy into a 
byte belonging to the UTF-8 encoding of one of your Unicode characters.

This is wrong anyway.

When you mention running under JBOSS, does that mean that there is some webserver in 
front of Tomcat ?




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat not working after moving installation folder

2010-07-13 Thread Konstantin Kolinko
2010/7/13 Kannan J kannan_jayapraka...@yahoo.co.in:
 D:\Tomcat5.5\binservice.bat remove
 The service 'Tomcat5' has been removed

 I still find the windows service, but its seems to have changed to 'Disabled' 
 (not sure what it was before)

Maybe you have to do a reboot.

 After that, the install command fails:
 (...)


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unable to deploy correctly in tomcat 6.0.10

2010-07-13 Thread Konstantin Kolinko
2010/7/13 Tarun Gupta tarun.gu...@digitalmountain.com:
 Lookup of RMI
 stub failed; nested exception is java.rmi.ConnectIOException: error during
 JRMP connection establishment; nested exception is:

  http://java.net.so/ java.net.SocketException: Connection reset


It tries to connect to some remote server, but fails.

 Error
 creating bean with name 'prefilterService' defined in ServletContext
 resource [/WEB-INF/spring-config/everest.xml]: Invocation of init method
 failed; nested exception is
 org.springframework.remoting.RemoteLookupFailureException: Lookup of RMI
 stub failed; nested exception is java.rmi.ConnectIOException: error during
 JRMP connection establishment; nested exception is:

 java.net.SocketException: Connection reset


By the way, it has nothing to do with Tomcat:
Tomcat does not use RMI and JRMP (Java Remote Method Protocol)

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Seem to have it fixed ...

2010-07-13 Thread michel


- Original Message - 
From: Caldarale, Charles R chuck.caldar...@unisys.com

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 13, 2010 7:42 PM
Subject: RE: Seem to have it fixed ...



From: michel [mailto:compu...@videotron.ca]
Subject: Seem to have it fixed ...

Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false reloadable=true

and I added
Context docBase=supergrow path=/


Almost ok.  With Tomcat 5.0 and above, putting Context elements in 
server.xml is strongly discouraged, since it requires restarting Tomcat 
whenever the webapp configuration is updated, and violates the servlet spec 
principal of webapp independence.  Your particular Context element is so 
simple it's actually not needed at all.  When one is needed, the proper 
location is in the file META-INF/context.xml inside the webapp, or in 
conf/Catalina/[host]/[appName.xml].  When you do so, leave out the docBase 
and path attributes, since those are illegal (unless the Context is in 
server.xml).


http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

- Chuck

Chuck, I just took a look at these two options for the last few hours and I 
will admit to being nervous about changing what works. I will continue to 
read about them, but I may leave it as it is for now.



Much thanks for the help!


Michel 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Seem to have it fixed ...

2010-07-13 Thread michel


- Original Message - 
From: michel compu...@videotron.ca

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 13, 2010 9:29 PM
Subject: Re: Seem to have it fixed ...




- Original Message - 
From: Caldarale, Charles R chuck.caldar...@unisys.com

To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, July 13, 2010 7:42 PM
Subject: RE: Seem to have it fixed ...



From: michel [mailto:compu...@videotron.ca]
Subject: Seem to have it fixed ...

Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false reloadable=true

and I added
Context docBase=supergrow path=/


Almost ok.  With Tomcat 5.0 and above, putting Context elements in 
server.xml is strongly discouraged, since it requires restarting Tomcat 
whenever the webapp configuration is updated, and violates the servlet 
spec principal of webapp independence.  Your particular Context element 
is so simple it's actually not needed at all.  When one is needed, the 
proper location is in the file META-INF/context.xml inside the webapp, or 
in conf/Catalina/[host]/[appName.xml].  When you do so, leave out the 
docBase and path attributes, since those are illegal (unless the Context 
is in server.xml).


http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

- Chuck

Chuck, I just took a look at these two options for the last few hours and 
I will admit to being nervous about changing what works. I will continue 
to read about them, but I may leave it as it is for now.



Much thanks for the help!


Michel


Got it set up and working with

... tomcat/conf/Catalina/localhost/supergrow.xml

Thanks!




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem redirecting http to https in Tomcat 4

2010-07-13 Thread Bill Barker
Tomcat 4.x is well know to have problems with this when using a non-default 
SSL port with MSIE.  However, it usually works ok with the default SSL port. 
I would check that you have the correct redirectPort defined in the 
Connector ... / for the non-SSL connector.


Robedan drobe...@cesco.net wrote in message 
news:29151597.p...@talk.nabble.com...


I have an application that has a Web interface using an embeded Tomcat 4
Server. I need to make it available to users over the Internet and want to
secure it with SSL. It originally worked on port 8080 but I successfully
modified the SERVER.XML to make it work over port 80. I also sucessfully
created an SSL connector so that if you specify 
https://myserver.domain.com

you can access the app over SSL on port 443. The final piece of the puzzle
I've been struggling with is automatically redirecting http: requests to
https: All the Tomcat forums say this is pretty simple, all you need to do
is add a bit of code to either the server or app's web.xml:





Protected Context

/*





CONFIDENTIAL





When I enter this code and restart Tomcat, the app stops working on all
ports. I just get a '404' resource not found on the default page or any
other. I'm sure I'm missing something but I have no idea what. Are there 
Any

Tomcat gurus out there that can point me in the right direction?

--
View this message in context: 
http://old.nabble.com/Problem-redirecting-http-to-https-in-Tomcat-4-tp29151597p29151597.html

Sent from the Tomcat - User mailing list archive at Nabble.com.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: 404 with mod_jk

2010-07-13 Thread Michael Powe
Hello,

Thank you for the reply.

See below for comments.

On Wed, Jul 14, 2010 at 12:37:05AM +0200, Rainer Jung wrote:

 On 13.07.2010 23:17, Michael Powe wrote:
 Hello,
 
 I asked this question in the httpd list but no joy.
 
 I have set up tomcat 6 and IBM httpd server to proxy requests using
 mod_jk.
 
 IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
 localhost Port 80
 
 I have followed all instructions as nearly as I can make
 out.
 

 
 Since you already have trace logging enabled:
 
 - is this all that gets logged in the jk log file for the request?

I rotated the mod_jk log and restarted the server.  I get a huge trace
log, 33K.  It appears to me to be initializing correctly, in the sense
that there are no error messages.  
 
 - can you see your worker worker1 getting configured during startup
 (debug log messages)?

[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_dump::jk_uri_worker_map.c (195): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (830): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (240): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3112): 
Using fcntl() for locking.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] init_jk::mod_jk.c (3128): 
Setting default connection pool max size to 25
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.list' with value 
'worker1' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.type' 
with value 'ajp13' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.host' 
with value 'localhost' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_read_property::jk_map.c (491): Adding property 'worker.worker1.port' 
with value '8009' to map.
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_map_resolve_references::jk_map.c (766): enter 
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_map_resolve_references::jk_map.c (774): Checking for references with prefix 
worker. with wildcard (recursion 1)
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_map_resolve_references::jk_map.c (830): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_shm_calculate_size::jk_shm.c (97): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
jk_shm_calculate_size::jk_shm.c (132): shared memory will contain 1 ajp workers 
of size 256 and 0 lb workers of size 320 with 0 members of size 320+256
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
jk_shm_calculate_size::jk_shm.c (139): exit

[ ... ]

[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] wc_open::jk_worker.c (50): 
enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'ServerRoot' - '/opt/IBMIHS'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.list' - 'worker1'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.type' - 'ajp13'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.host' - 'localhost'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] jk_map_dump::jk_map.c (589): 
Dump of map: 'worker.worker1.port' - '8009'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
build_worker_map::jk_worker.c (236): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
build_worker_map::jk_worker.c (242): creating worker worker1
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
wc_create_worker::jk_worker.c (126): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
wc_create_worker::jk_worker.c (146): about to create instance worker1 of ajp13
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp13_worker_factory::jk_ajp13_worker.c (80): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_worker_factory::jk_ajp_common.c (2892): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_worker_factory::jk_ajp_common.c (2934): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp13_worker_factory::jk_ajp13_worker.c (92): exit
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
wc_create_worker::jk_worker.c (159): about to validate and init worker1
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] validate::jk_ajp13_worker.c 
(35): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] 
ajp_validate::jk_ajp_common.c (2579): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [debug] 
ajp_validate::jk_ajp_common.c (2605): worker worker1 contact is 'localhost:8009'
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c 
(329): enter
[Tue Jul 13 22:21:00 2010] [12002:3987136] [trace] jk_resolve::jk_connect.c 
(406): exit
[Tue Jul 13 22:21:00 

RE: Tomcat and Hex characters

2010-07-13 Thread Caldarale, Charles R
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: Tomcat and Hex characters
 
 When you mention running under JBOSS, does that mean that there is
 some webserver in front of Tomcat ?

Probably not.  JBoss uses an embedded version of Tomcat as its web server and 
servlet container.  JBoss itself provides the rest of the Java EE specification 
function (the bits that Tomcat doesn't do), along with a good set of 
capabilities beyond that.

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



Re: tomcat datasource, find active connections

2010-07-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

On 7/12/2010 10:38 AM, Caldarale, Charles R wrote:
 From: Ashish Kulkarni [mailto:ashish.kulkarn...@gmail.com]
 Sent: 2010 July 12, Monday 09:16
 To: Tomcat Users List; p...@pidster.com
 Subject: Re: tomcat datasource, find active connections

 Where do i specify data source factory?
 
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html#Adding_Custom_Resource_Factories

As much fun as that sounds, the OP could just use the default
DataSourceFactory which is based upon DBCP. We use the following in a
health check JSP we have.

import org.apache.tomcat.dbcp.dbcp.BasicDataSource;

Context ctx = new InitialContext();

DataSource ds = (DataSource)ctx.lookup(java:/comp/env/jdbc/mydb);

if(null == ds)
throw new NamingException(Cannot obtain DataSource);

int maxActiveConnections = 0;
int maxIdleConnections = 0;
int minIdleConnections = 0;
int activeConnections = 0;
int idleConnections = 0;

if(ds instanceof BasicDataSource)
{
BasicDataSource bds = (BasicDataSource)ds;

maxActiveConnections = bds.getMaxActive();
maxIdleConnections = bds.getMaxIdle();
minIdleConnections = bds.getMinIdle();
activeConnections = bds.getNumActive();
idleConnections = bds.getNumIdle();
}

Feel free to add more types of DataSource to fetch their counters.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkw9MvkACgkQ9CaO5/Lv0PAoUwCffLW2kYhnQY/1uYP+NcrQDvjy
GIgAnRa/VgcfHBm114eW5LgxlJBTmv7I
=QwO9
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat datasource, find active connections

2010-07-13 Thread Caldarale, Charles R
 From: Christopher Schultz [mailto:ch...@christopherschultz.net]
 Subject: Re: tomcat datasource, find active connections
 
 As much fun as that sounds, the OP could just use the default
 DataSourceFactory which is based upon DBCP.

Does that require setting the Context privileged attribute to true in 5.5?  
(Looks like it shouldn't make a difference in 6.0 and 7.0.)

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