TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
almost there
[
Thanks for all the help Perry, I think I almost have things running.
Couple of errors I get when I start up the server:
]
Configuring web service using "file:/opt/tomcat/mystuff/WEB-INF/web.xml"
config parse: parsing error: There is no web component by the name of
> foo
> here.
[
- under <servletclass> </serlvetclass> in web.xml under mystuff i
just put the servlet class name. foo.class
do I need to specify the path e.g. mystuff.WEB-INF.classes.fooclass
]
[
also
]
The scratchDir you specified: /opt/tomcat/work/8080%2Fmystuff is
unusable.
Ok, I can see my directory under localhost:8080:mystuff/
I created a html file to access my servlet called foo.html under
mystuff, I am accessing it using <a href>
and the path is ../servlets/foo , is that right? I get an instation
error when I click on the link, is that an errot due to the configuraion
of my stuff or an error in my servl
ERROR 500
Internal Servlet Error:
java.lang.InstantiationException: foo
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java, Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.InvokerServlet.service(InvokerServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Context.handleRequest(Context.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java,
Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)et?
Thanks again.
--
Erick Stohr - PageLab Network, Inc.
mailto:erick@pagelab.net http://pagelab.net
Your search-to-sale global e-commerce solution!
Toll free 1-800-447-0607
Voice 612-362-9224
Fax 612-362-9227
43 Main Street SE, Suite 228
Minneapolis, Minnesota 55414