Tomcat in Eclipse, Weird behavior
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mujahed_Syed
Posted On:   Monday, January 18, 2010 01:10 AM

Hello Everyone, I am trying a jdbc program with MySQL and Tomcat 6.0. And I have run into some weird problem. When I run the program in webapps folder of tomcat 6.0 everything is fine. But when I use eclipse IDE its throwing an exception and I could figure out that there is a difference between tomcat instance running via eclipse and one running on its own. Does anyone has answer to this. I have googled and everything but in vain. just in case i am copying the exception here for better understanding of the reader :- 17-Jan-2010 10:47:15 org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: SetPropertiesRule{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:MyMail' did not find    More>>

Hello Everyone,

I am trying a jdbc program with MySQL and Tomcat 6.0. And I have run into some weird problem. When I run the program in webapps folder of tomcat 6.0 everything is fine. But when I use eclipse IDE its throwing an exception and I could figure out that there is a difference between tomcat instance running via eclipse and one running on its own. Does anyone has answer to this. I have googled and everything but in vain. just in case i am copying the exception here for better understanding of the reader :-

17-Jan-2010 10:47:15 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: SetPropertiesRule{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:MyMail' did not find a matching property.
17-Jan-2010 10:47:15 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:Program FilesJavajre6 in;.;C:WINDOWSSunJava in;C:WINDOWSsystem32;C:WINDOWS;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesMicrosoft SQL Server80ToolsBinn;C:Program FilesMicrosoft SQL Server90DTSBinn;C:Program FilesMicrosoft SQL Server90Tools inn;C:Program FilesMicrosoft SQL Server90ToolsBinnVSShellCommon7IDE;C:Program FilesMicrosoft Visual Studio 8Common7IDEPrivateAssemblies;C:Program FilesjZip;C:Program FilesMySQLMySQL Server 5.1 in;C:Apache Software Foundationapache-ant-1.8.0RC1 in;C:Program FilesJavajdk1.6.0_17 in;C:Program FilesJavajdk1.6.0_17 in;C:Apache Software Foundationapache-ant-1.8.0RC1 in;
17-Jan-2010 10:47:15 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
17-Jan-2010 10:47:15 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 669 ms
17-Jan-2010 10:47:15 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
17-Jan-2010 10:47:15 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
17-Jan-2010 10:47:15 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
17-Jan-2010 10:47:15 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
17-Jan-2010 10:47:15 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
17-Jan-2010 10:47:15 org.apache.catalina.startup.Catalina start
INFO: Server startup in 547 ms
17-Jan-2010 10:47:23 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.taglibs.standard.tlv.JstlSqlTLV
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
at org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInfoImpl.java:662)
at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
at org.apache.jasper.compiler.TagLibraryInfoImpl. (TagLibraryInfoImpl.java:163)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:394)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
I am using following software :
eclipse : eclipse-jee-galileo-SR1-win32
java version : java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
MySQL 5.0
jdbc connector : mysql-connector-java-5.1.10-bin.jar
in addition I have placed standard.jar and jstl.jar in eclipse/src/libraries

Please Help.
I need to know why is the tomcat instance different from the one running outside eclipse and one inside. Although i have configured it properly.
Thanks

   <<Less
About | Sitemap | Contact