• 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

Publishing to Tomcat v7.0 Server at localhost has encountered problem

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

When i try to Run my project on Server it id failing with below error.
I have tried alternatives given at google.com to resolve this but in vain.


Can someone please help me resolving this?

Thanks
Jay Shukla
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you deploying to tomcat from eclipse? Try deploying to a standalone tomcat instance (outside eclipse) and see if that works. If it works then the dependencies that your eclipse is using for tomcat maybe corrupt.
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting below error in catalina logs when i try to deploy war separately in tomcat.



Not Sure how to resolve?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you should not be including any jars that implement servlet specification inside your application. The exception says that you have a jar geronimo-servlet_3.0_spec-1.0.jar in your application.
Also Tomcat 6 implements the servlet 2.5 specification so you better not be trying to use servlet 3 features with it.
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for reply.
I have not explicitly imported any jars in this project. Can you please let me know how do i need to resolve this?

I checked in build path of the project also there is no Jars.

Thanks.
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this got added when i tried to deployed WAR through Tomcat GUI.
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No it didn't. Geronimo was a completely different webapp server than Tomcat is.
 
Jay B Shukla
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am able to clear all compilation errors / Markers.
But when i tried to deploy war to tomcat server separately (Not through Eclipse IDE) it failed with message "FAIL - Application at context path /CXFRestExample could not be started"

I am not able to understand what is getting wrong here.
Below is the trace from catalina.log

 
Marshal
Posts: 28177
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)



One of the jar files required by Spring is corrupt.

at org.springframework.core.io.support.PropertiesLoaderUtils.loadAllProperties(PropertiesLoaderUtils.java:112)



It's apparently one which contains some properties -- but I'd suggest getting rid of the whole lot and reinstalling from scratch.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic