Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

JAX-WS Service Will Not Deploy Correctly

Posts: 1688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've created a web service that works fine locally under Tomcat 6 and Tomcat 7, but when I try to deploy it to Tomcat 5.5, it just doesn't deploy.

The Tomcat Error log isn't very helpful since Googling the error doesn't lead to any great insights. The problem appears to be creating the EntityManager. I've tried moving that jar file to the Tomcat "shared" folder, but that made no difference.

Unless there's a clear solution, my next step would be to just upgrade Tomcat to version 6 or 7 on the server, but that's a non-trivial effort given our applications.

Has anyone run into this problem and can suggest a workaround or fix?

Thanks in advance,


SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.NoSuchFieldError: TRACE
java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLogger.translate(
at org.jboss.logging.Log4jLogger.doLog(
at org.jboss.logging.Logger.trace(
at org.hibernate.ejb.internal.EntityManagerMessageLogger_$logger.trace (EntityManagerMessageLogger_$
at org.hibernate.ejb.Ejb3Configuration.configure(
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(
at dao.ZipCodeDaoImpl.setupObjects(
at dao.ZipCodeDaoImpl.<init>(
at service.ZipCodeService.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.apache.catalina.core.StandardContext.listenerStart(
at org.apache.catalina.core.StandardContext.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardHost.start(
at org.apache.catalina.core.ContainerBase.start(
at org.apache.catalina.core.StandardEngine.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
Mike London
Posts: 1688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The issue was twofold. Why the problems didn't happen on the local machine in three versions of Tomcat (including the same Tomcat 5 version that was on the Unix deployment box) is a mystery.

Problem 1. I had an old version of log4j.jar in my Tomcat 5 shared lib folder.

This was confusing since I no longer think to look there in current versions of Tomcat. Once I updated log4j to the current version, then I got the exception that it couldn't create the EntityManagerFactory. Ahhh, progress! Finally, an error that is helpful (1 day and counting...)

Looking at this a bit further, it was saying something about the MySQL dialect not being specified, so ...

Problem 2. Issue in persistence.xml

Updated the persistence.xml file with this:

<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5Dialect"/>

And, viola, I finally had a WSDL with no errors in catalina.out.

This was a nasty one for sure since the error logs weren't initially helpful and it took a couple hours of searching before I saw the obscure posting about log4j, something my project isn't even yet using. And, of course, everything worked perfectly locally.

Hope this resolution follow-up helps somebody.

- mike
Fire me boy! Cool, soothing, shameless self promotion:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!