• 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

Error in tomcat 5.5

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

I have a web application which is working fine in tomcat 4.1 using jdk 1.4 . But due to out of memory errors which were coming i decided to upgrade to tomcat 5.5 . But when i ported to tomcat5.5 i get the following error .

Jul 12, 2005 11:51:27 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /infusion threw load() exception
javax.servlet.ServletException: Error while initializing FlowBuilder server
at com.flowbuilder.server.FlowbuilderServlet.init(FlowbuilderServlet.java:94)
at com.flowbuilder.FlowBuilderServlet.init(FlowBuilderServlet.java:18)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at com.flowbuilder.FlowBuilderServlet.init(FlowBuilderServlet.java:14)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at org.apache.catalina.core.StandardService.start(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.NoClassDefFoundError: javax/mail/internet/InternetAddress
at com.flowbuilder.service.router.service.RouterManagerFactory.openService(RouterManagerFactory.java:19)
at com.flowbuilder.util.cs.AbstractServer.loadServices(AbstractServer.java:214)
at com.flowbuilder.util.cs.AbstractServer.startServices(AbstractServer.java:272)
at com.flowbuilder.server.FlowbuilderServlet.doInit(FlowbuilderServlet.java:200)
at com.flowbuilder.server.FlowbuilderServlet.init(FlowbuilderServlet.java:92)
... 20 more
Jul 12, 2005 11:51:33 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 12, 2005 11:51:33 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 12, 2005 11:51:35 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 12, 2005 11:51:35 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@44ffb2')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1ef3ccd')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@180f545')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@f77511')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@26dfcc')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@2eef15')
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Jul 12, 2005 11:57:17 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()

i am still using jdk1.4 not 1.5 , and i have used the jar files in the compact.zip which is given in the tomcat site. Rest all example are working fine only when i activate my application i get this error

My configuration is windows 2000 prof., jdk1.4,tomcat5.5


Can anyone have any idea abt it



 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

at com.flowbuilder.server.FlowbuilderServlet.init(FlowbuilderServlet.java:94)



What's on line 94 of your FlowbuilderServlet?
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by felix thomas:

Caused by: java.lang.NoClassDefFoundError: javax/mail/internet/InternetAddress
at com.flowbuilder.service.router.service.RouterManagerFactory.openService(RouterManagerFactory.java:19)




And have you got the javax.mail package on classpath?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

And have you got the javax.mail package on classpath?


Tomcat ignores the environment Classpath - it has its own rules for locating libraries - see the class-loader-howto.html file under webapps/tomcat-docs of a typical installation.
I have mailapi.jar under CATALINA_HOME/common/lib
Bill
 
Sonny Gill
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by William Brogden:

Tomcat ignores the environment Classpath



Oops! I meant Tomcat classpath.
Working with web apps mostly, I dont even think about the System classpath anymore, and it slipped my mind that this could be ambiguous.

Thanks for the correction William.
 
reply
    Bookmark Topic Watch Topic
  • New Topic