• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems deploying to a running Tomcat5

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am struggling a bit when redeploying the application to a running Tomcat.
I have to stop Tomcat, delete the war file and directory, start tomcat and then copy the new war file to the webapps directory.

If I try to just overwrite the current war file(doing it from jdeveloper) then I get the following stack trace:


INFO: Removing web application at context path /JForum2
destroying...
21.okt.2004 22:11:22 org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /JForum2 from URL file:F:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/JForum2
22:11:23,080 INFO [SystemGlobalsListener] Reloading F:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\JForum2/WEB-INF/config/SystemGlobals.properties
22:11:23,080 INFO [SystemGlobalsListener] java.io.FileNotFoundException: F:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\JForum2\WEB-INF\config\SystemGlobals.properties (The system cannot find the file specified)
java.io.FileNotFoundException: F:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\JForum2\WEB-INF\config\SystemGlobals.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at net.jforum.util.preferences.SystemGlobals.loadDefaultsImpl(SystemGlobals.java:200)
at net.jforum.util.preferences.SystemGlobals.<init>(SystemGlobals.java:115)
at net.jforum.util.preferences.SystemGlobals.initGlobals(SystemGlobals.java:94)
at net.jforum.util.preferences.SystemGlobalsListener.fileChanged(SystemGlobalsListener.java:67)
at net.jforum.util.FileMonitor$FileMonitorTask.run(FileMonitor.java:139)
at java.util.TimerThread.mainLoop(Timer.java:432)
at java.util.TimerThread.run(Timer.java:382)
22:11:23,080 INFO [QueriesFileListener ] Reloading F:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\JForum2/WEB-INF/config/database/generic/generic_queries.sql
22:11:23,100 INFO [QueriesFileListener ] java.io.FileNotFoundException: F:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\JForum2\WEB-INF\config\database\generic\generic_queries.sql (The system cannot find the path specified)
21.okt.2004 22:11:23 org.apache.catalina.startup.ContextConfig applicationConfig
INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JForum2]



It complains about missing files, but the problem is that the files haven't been unpacked successfully.

Just wondering if this is supposed to work?

-Christer
[originally posted on jforum.net by cnordvik]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, you are saying that, for the first time, it runs fine, but if, while tomcat is still running, you put a modified war, it fails? As I don't use war files, I never ran into this problem. I can take a look, anyway.

Just try one thing: instead of making a new war file everytime, try to just copy the modified files to the forum's application dir. It should work.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It works fine with copying one file at a time, so it isn't a big issue.

Just very easy to say deploy in Jdev and the web server running at the other machine gets updated automatically

-Christer
[originally posted on jforum.net by cnordvik]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to undeploy your webapp before deploying the new war. If not this may cause this problem as some files of the old webapp are still in use by tomcat.
My 2cents
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just to say I'm the coward behind this Anonymous post
[originally posted on jforum.net by ehsavoie]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get this exact same problem too - when the war file is updated the Tomcat logs say that the app is being undeployed, then the error appears when tomcat tries to deploy the app again.

Any help is very much appreciated
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
FYI, I'm running on tomcat 5.0.27 without problems

I've got 2 guesses for ya, the first one is that you have a permissions problem, where whomever you're running tomcat as doesn't have permissions to read the files.

The second guess is due to a space in the filename. Try to rename tomcat to not have the space in the filename.

TheDruidXpawX

http://www.disastrousconsequences.com
[originally posted on jforum.net by TheDruidXpawX]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's a table with the contents inside a <PRE> tag, which is forcing the scroll. I don't have any ideas how to bypass that.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the "missing application web.xml" problem with jdeveloper 9.0.5.2 and tomcat 5.
I found out, that the war-file is not packed correctly ... the path to web.xml is stored in lowercase letters. thats the reason, why tomcat cannot find it in the war-file (you can oben it with winzip). this seems to be a bug in jdev ?!
sometimes it helps, to close and reopen jdeveloper before deploying.

Easy

PS: sorry for my bad english
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yep, seems a problem with jdeveloper.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The 'code' box in the first entry forces a very large page width in my browser. So all other text also gets this silly width, making it very hard to read; i have to scroll sideways back and forth for every line. Is this normal?

Per

[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am facing the issue below with tomcat-5.0.18 + jdk-1.4.2_05 on a SOLARIS box.

I have a web app wherein I set CATALINA_BASE and run 'n' number of instances from a single machine. I was using TC 4 and now planning to upgrade to TC5. Issue here is tomcat does not respect my web.xml which I have under my own /conf folder. I would load a few classes with static methods on server startup. This worked fine in TC 4 but fails to work in TC5. I also get an error message which reads:
Missing application web.xml, using defaults only StandardEngine

Is there anything that I might be missing??

Cheers!
PrabhuS
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I instead of clicking on the reload link, clicked on th undeploy link. I lost all my project files. Now I am at desperate situation.Can any one please help out me..
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I instead of clicking on the reload link of tomcat server, clicked on undeploy link and I lost all my project files. Now, I am at desperate situation. Can any one please help me out at this situation?

[originally posted on jforum.net by himuralimohan]
 
Hold that thought. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic