tradester amagio

Greenhorn
+ Follow
since Feb 10, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by tradester amagio

OK, this problem is caused because I forgot to place the .jar file into tomcats common/lib directory.
Tomcat 4.1.18 seems to have its own classpath and therefore you end up using replicated files
21 years ago
I thought I had fixed all my problems until this one arose.
Basically I make a call to the method:
Class.forname() which allows dynamic loading of java classes at runtime.
But catalina is reporting errors....
Does anybody know a fix for this?
java.lang.ClassNotFoundException: com.inet.tds.TdsDriver
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1428)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1274)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at com.bt.intranettv.dbconnection.ConnectionPool.makeNewConnection(Conne
ctionPool.java:147)
at com.bt.intranettv.dbconnection.ConnectionPool.<init>(ConnectionPool.j
ava:52)
at com.bt.intranettv.view.RequestGlobalParams.<init>(RequestGlobalParams
.java:75)
at com.bt.intranettv.view.IntranetTV.init(IntranetTV.java:339)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
a:666)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
at java.lang.Thread.run(Thread.java:536)
Error making pool: java.sql.SQLException: Can't find class for driver: com.inet.
tds.TdsDriverin dbconnection.connectionpool.java
21 years ago
Reply. It doesnt seem to matter about where they are!.Definately works with tomcat 3.2.1 but I did change it anyway!
The problem I had which leads to a resource load up failure was actually in the server.xml file.
I had mistyped a <context> so the path was wrong.
Maybe we should put together a list of common errors so people can quickly pinpoint where they have gone wrong.
21 years ago
Im having problems in migration from tomcat 3.2.1 to tomcat 4.1.18.
I was initially having problems setting the context in server.xml and parser problems in web.xml but these seem to have disappeared.
I can run http://localhost:8080 and /examples
but not my context path /intranettv
My new problem is that when i try to view my servlet, it is returning a 404 error for the page
http:/localhost:8080/intranettv
It doesnt seem to be initialising the servlet.
Basically my server.xml points to new context here:
D:\intranettv\admin\public_site\ alias internettv
Here is my web.xml
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>IntranetTV</display-name>
<description>
This is the IntranetTV application with a source code organization
based on the recommendations of the Application Developer's Guide.
</description>
<servlet>
<servlet-name>IntranetTV</servlet-name>
<servlet-class>com.bt.intranettv.view.IntranetTV</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>IntranetTV</servlet-name>
<url-pattern>/IntranetTV</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ManageContent</servlet-name>
<servlet-class>com.bt.intranettv.admin.ManageContent</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ManageContent</servlet-name>
<url-pattern>/ManageContent</url-pattern>
</servlet-mapping>
</web-app>
Does anybody now what is happening.
(This is not a getout clause-but i compiled the java source with java 1.2 but tomcat is running under 1.4) Will this cause any errors? Some of somebodys java code doesnt compile with java 1.4 so i thought this would be a quick way out?
FROM THE CATALINA LOG FILE IM GETTING AN ERROR.
DOES ANYBODY KNOW WHATS CAUSING THIS ERROR LOG.
2003-02-11 13:28:13 StandardContext[/intranettv]: Resources start failed:
2003-02-11 13:28:13 StandardContext[/intranettv]: Context startup failed due to previous errors
2003-02-11 13:28:13 StandardContext[/intranettv]: Exception during cleanup after start failed
LifecycleException: Container StandardContext[/intranettv] has not been started
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.main(Bootstrap.java:203)
2003-02-11 13:28:13 WebappLoader[]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\_
2003-02-11 13:28:13 StandardManager[]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:13 StandardManager[]: Seeding of random number generator has been completed
2003-02-11 13:28:13 StandardWrapper[ efault]: Loading container servlet default
2003-02-11 13:28:13 StandardWrapper[:invoker]: Loading container servlet invoker
2003-02-11 13:28:13 HostConfig[localhost]: Deploying configuration descriptor admin.xml
2003-02-11 13:28:19 HostConfig[localhost]: Deploying configuration descriptor manager.xml
2003-02-11 13:28:19 WebappLoader[/manager]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\manager
2003-02-11 13:28:19 ContextConfig[/manager]: Configured an authenticator for method BASIC
2003-02-11 13:28:19 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:19 StandardManager[/manager]: Seeding of random number generator has been completed
2003-02-11 13:28:19 StandardWrapper[/manager efault]: Loading container servlet default
2003-02-11 13:28:19 StandardWrapper[/manager:invoker]: Loading container servlet invoker
2003-02-11 13:28:19 HostConfig[localhost]: Deploying web application directory tomcat-docs
2003-02-11 13:28:19 StandardHost[localhost]: Installing web application at context path /tomcat-docs from URL file:C:\jakarta-tomcat4.1\webapps\tomcat-docs
2003-02-11 13:28:19 WebappLoader[/tomcat-docs]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\tomcat-docs
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/tomcat-docs]: Seeding of random number generator has been completed
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs efault]: Loading container servlet default
2003-02-11 13:28:20 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet invoker
2003-02-11 13:28:20 HostConfig[localhost]: Deploying web application directory webdav
2003-02-11 13:28:20 StandardHost[localhost]: Installing web application at context path /webdav from URL file:C:\jakarta-tomcat4.1\webapps\webdav
2003-02-11 13:28:20 WebappLoader[/webdav]: Deploying class repositories to work directory C:\jakarta-tomcat4.1\work\Standalone\localhost\webdav
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding random number generator class java.security.SecureRandom
2003-02-11 13:28:20 StandardManager[/webdav]: Seeding of random number generator has been completed
2003-02-11 13:28:20 StandardWrapper[/webdav efault]: Loading container servlet default
2003-02-11 13:28:20 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
[ February 11, 2003: Message edited by: tradester amagio ]
21 years ago
basically all i want to know is what I have to add to the server.xml so I can use my own path to my classes. and also want to know what is the minimum I need to put in the web.xml for tomcat 4.1.18. What is the structure for these web.xml. I dont be able to find any great examples of what should be included and what is the minimum to get away with.
The web.xml works fine with tomcat 3.2.1 but I havent modified it for tomcat 4.1.18. Therefore how do you modify tomcat 3.2.1 web.xml to change to tomcat 4.1.18??
Is adding the context for server.xml, in the way ive previously noted, correct for tomcat 4.1.18???
21 years ago
Hi, Ive been trying to get a servlet working on tomcat 4.1.18. (basically trying desperatley to upgrade from 3.2.1 to see if any perfomrnace gain)
My problem is that tomcat will now startup itself and display jsp pages and htm pages in the examples folder.
I need to add another folder.
In tomcat 3.2.1, I edited the server.xml to include an additional context like:
<!--derrick added this line
<Context
path="/intranettv"
docBase="D:\intranettv\admin\public_site"
debug="0"
reloadable="true"
crossContext="false">
</Context>-->
Then all i had to do was go to localhost:8888/intranettv/+class¶ms
When i try to add this context to tomcat 4.1.18 server.xml it goes a bit mental and complains about parser errors in web.xml
Do i also have to change web.xml somewhere else??
What do I have to do from this point to get the tomcat to recognise where the servlet is stored and where to put a pointer to the initial servlet class!!
Help please!
ps the old Web.inf for tomcat 3.2.1 looked like this. Does this need to be changed for tomcat 4.1.18
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>IntranetTV</display-name>
<description>
Guide
</description>
<servlet>
<servlet-name>IntranetTV</servlet-name>
<servlet-class>com.bt.intranettv.view.IntranetTV</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>IntranetTV</servlet-name>
<url-pattern>/IntranetTV</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ManageContent</servlet-name>
<servlet-class>com.bt.intranettv.admin.ManageContent</servlet-class>
<init-param>
<param-name>root</param-name>
<param-value>D:\intranettv\admin\public_site\</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ManageContent</servlet-name>
<url-pattern>/ManageContent</url-pattern>
</servlet-mapping>
</web-app>
[ February 10, 2003: Message edited by: tradester amagio ]
21 years ago