Redeploy Issue on Tomcat 6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I started out asking over on the Tomcat list, then went to the ruby
netbeans list, now I’m here!

Below is essentially what we are trying to accomplish, and the error’s
we are running into:

The instructor for the course is using the NetBeans 6.5 IDE for ruby
development. The students would then create a war file for deployment
on tomcat 6. The students will upload the war folder to a deploy
folder, from which a scheduled script will copy the war files into the
tomcat virtual host document root for deployment.

With just antijarlocking set, the jruby and complete jars are still
locked by tomcat, and re-deployment of the jar fails until a complete
server restart.

Antiresource locking does solve the issue of the jar’s being locked,
however when set to true, whenever the application is loaded, tomcat
looks in %CATALINA_HOME%\temp-appname for the files, which does not
exist. If I manually copy files into that folder from the temp folder,
things work as expected. If we can just figure out how to get that
folder correctly populated (or get tomcat looking in the right place)
everything would be working correctly.

If anyone has any thoughts or ideas, please share!


Aaron A.
[email protected]

Great hosting, low prices. Modevia Web Services LLC –
http://www.modevia.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIwSo8uucONIvD0AMRAmEYAJ93F2F0kijFYn14WFlNjZAZcCnPLACfUYlm
L1oaJ+12f+djwh6Voe6hfbA=
=29rz
-----END PGP SIGNATURE-----


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Aaron A. wrote:

development. The students would then create a war file for deployment
looks in %CATALINA_HOME%\temp-appname for the files, which does not
exist. If I manually copy files into that folder from the temp folder,
things work as expected. If we can just figure out how to get that
folder correctly populated (or get tomcat looking in the right place)
everything would be working correctly.

If anyone has any thoughts or ideas, please share!

Hmmm.

My first impression–and this isn’t just because I work on JRuby–is
that if changing locking settings in Tomcat causes a deployed app to
stop working, it’s a Tomcat issue.

I have not used Tomcat in some time. Where does it put the unpacked WAR
contents when it deploys? Are there settings to adjust that? Most
servers I have worked with unpack WAR contents in the same location
always, which makes it a lot easier to deal with. It sounds like
Tomcat’s unpack location (and perhaps even its decision whether to
unpack) depends on these locking settings, which end up changing some
locations around.

Can you point us to the Tomcat thread where you discuss this? Perhaps
the Tomcat devs will have had some insight into it.

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Charles Oliver N. wrote:

Tomcat’s unpack location (and perhaps even its decision whether to
unpack) depends on these locking settings, which end up changing some
locations around.
The war file contents always unpack to the same location - the tomcat
virtual host root - but with antiresource locking the catalina log file
shows that tomcat is looking in CATALINA_HOME\temp-applicationname. I
have setting workdir attributes on the context, but it doesnt seem to
matter

Can you point us to the Tomcat thread where you discuss this? Perhaps
the Tomcat devs will have had some insight into it.

Here is the thread from the tomcat list:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200808.mbox/[email protected]>

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Aaron A.
[email protected]

Great hosting, low prices. Modevia Web Services LLC –
http://www.modevia.com


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Fri, Sep 5, 2008 at 1:46 PM, Aaron A. [email protected]
wrote:

The instructor for the course is using the NetBeans 6.5 IDE for ruby
development. The students would then create a war file for deployment
on tomcat 6.

If anyone has any thoughts or ideas, please share!

Are you tied to Tomcat for any reason? That sounds like a pain in the
backside,
just use a different appserver.


Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs