Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat4: Creation of the naming context failed:

Status
Not open for further replies.

Retho

Programmer
Jun 28, 2004
6
DE
Hello everybody,

I've got some trouble while deploying a webapplication into a running Tomcat4 environment.
The application folder itself exists on file system containing everything that is needed. I removed the old version of the application within the Tomcat manager.

Afterwards I deployed the application using the following syntax:
path>&war=file:///<context directory location>

The above described works fine on my lokal tomcat installation (same version) but does not work on another server. I'getting the following message:

NamingContextListener[/Standalone/localhost/<context path>]: Creation of the naming context failed: javax.naming.NamingException: Context is read only

I've checked every directory in question none of them is read only!

Does anybody know whats wrong here?

Many thanks in advance
Best regards
 
Hm, seems that the read only issue is not my problem but one JAR I have within WEB-INF/lib which classes cannot be found during the servlets init() method! But this JAR works fine within my local tomcat installation (same version) even with autodeploy and it works fine on the test environment.

As soon as I unpack this JAR into WEB-INF/classes everything works fine but this cannot the solution!

What's wrong here?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top