aspose file tools*
The moose likes Tomcat and the fly likes Tomcat configuration issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat configuration issues" Watch "Tomcat configuration issues" New topic
Author

Tomcat configuration issues

Crystal Bazil
Ranch Hand

Joined: Sep 28, 2004
Posts: 38
I am trying to install/configure Tomcat on my laptop and am having some issues. At this point I have tried installing 5.0.28 and 5.5 with jdk 1.5.0. I have moved over all my jars into common/lib moved over my server.xml file and my webapps folder. I have set my classpaths(just moved over a batch). The configuration is identical to my desktop.

The install goes smoothly and I can get to my welcome page but when I move over the above mentioned - I can get to the welcome page but it just hangs and never fully completes loading the page.

I looked in stdout.log in Tomcat and receive the below errors. I have tried googling the exceptions and I am not getting anywhere with the posts I have been reading. I have been dinking with this since Friday.

If someone could possibly give me some direction I would appreciate it. I feel like I am missing something but havent a clue as to what.

Thanks
Crystal

Error Msg

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Do you have a JNDI resource configured on your desktop (a database connection pool for instance) that doesn't exist on the laptop?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Crystal Bazil
Ranch Hand

Joined: Sep 28, 2004
Posts: 38
Hi Ben - Thanks for the response.

I want to say that I have the same exact datasource configured for both machines but I need to go back and doublecheck to be 100% sure. I will report back what I find. Thanks.
Crystal Bazil
Ranch Hand

Joined: Sep 28, 2004
Posts: 38
problem resolved.
[ November 29, 2005: Message edited by: Crystal Bazil ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Crystal Bazil:
problem resolved.



What was it?
Crystal Bazil
Ranch Hand

Joined: Sep 28, 2004
Posts: 38
Hi Ben - I cannot explain a solution exactly. After installing Tomcat 5.0.28 and 5.5.12 without much luck - I found a copy of Tomcat 5.5.0 that I had saved on my production server. I installed it(it was the version running in my development enviroment) and everything worked beautifully.

5.5.0 has been the only version I have been successful in running/configuring. I did have an error in my datasource but that error in 5.5.0 was logged in stdout.log and was easily identifiable. This wasnt the case in the other versions. It could have been my problem but I am not confident to say.

If you have any thoughts - I would love to hear them. Thanks.

// This is probably the longest non-answer answer you have ever read, huh?

Regards,
Crystal
[ December 02, 2005: Message edited by: Crystal Bazil ]
Daniel Prene
Ranch Hand

Joined: Jul 15, 2005
Posts: 241
I had this same problem a few moments ago, but fixed it by closing a quotation in tomcat-users.xml I had left open.
chihiro chen
Greenhorn

Joined: Sep 17, 2006
Posts: 1
I have the same problem and solved it.
In server.xml, <Resource> has some differece from Tomcat 5.0x and Tomcat 5.5x.


In 5.0x version:
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>


In 5.5x version:
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>


so, you may check it, good luck!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat configuration issues