| Author |
Java Server Pages examples from SUN J2EE Tutorials
|
Bharadwaj Adepu
Ranch Hand
Joined: Dec 30, 2007
Posts: 99
|
|
There are many Java Server Pages examples given in sun J2EE tutorials. There he mentioned the way to deploy them via NetBeans. But i dont have net beans. How to deploy that in Tomcat6? Can anyone please help me..
|
SCJP 1.5
|
 |
Nickolas Case
Ranch Hand
Joined: Apr 26, 2008
Posts: 98
|
|
|
Are you using any other type of IDE? Like Eclipse? If so, the IDE typically created the directory structure you will need. But if not, there are examples that come with Tomcat. Take a look at their directory structures.
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
You're better off not using an IDE until you're comfortable doing this by hand. On Tomcat's site, there is a tutorial called First Web App which takes you through all of the steps for writing and deploying an application in Tomcat. This is a good place to start. Also, our CattleDrive has a section on Servlet/JSP developement which explains in great detail how to deploy an app in a servlet container. At the moment it uses Orion but there's been talk of switching it to Tomcat.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Bharadwaj Adepu
Ranch Hand
Joined: Dec 30, 2007
Posts: 99
|
|
|
Yes i am aware of the examples that come with the Tomcat, but i want to run the examples related to JSTL using the custom tags and taglibs. These are not there in tomcat examples.
|
 |
Bharadwaj Adepu
Ranch Hand
Joined: Dec 30, 2007
Posts: 99
|
|
This is the error am getting... org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/functions.tld: (line 3, col 8): Document is invalid: no grammar found. at org.apache.jasper.xmlparser.ParserUtils.parseXMLDocument(ParserUtils.java:140) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:200) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:140) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:312) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:339) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:749) at org.apache.jasper.compiler.Parser.parse(Parser.java:77) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:159) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:111) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:355) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:199) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:145) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:139) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2460) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:545) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:157) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:534)
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56204
|
|
Originally posted by Bharadwaj Adepu: org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/functions.tld: (line 3, col 8): Document is invalid: no grammar found.
Well? What's at line 3 column 8 of that file? We can't just guess. [ June 05, 2008: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Java Server Pages examples from SUN J2EE Tutorials
|
|
|