מעכשיו פוסטים חדשים מ-Usenet לא יופיעו ואי אפשר להירשם לתוכן מ-Usenet בקבוצות Google. התוכן שכבר פורסם עדיין יופיע.

Help needed with Linux Tomcat install

צפייה אחת
מעבר להודעה הראשונה שלא נקראה

Bryan Coon

לא נקראה,
11 באפר׳ 2002, 15:15:1911.4.2002
עד
Hi,

I am trying to install tomcat 4 on my RH 7.2 box, and am having
problems. I downloaded all the binary packages recommended:
tomcat4-4.0.3-1.noarch.rpm
regexp-1.2.1.noarch.rpm
servletapi4-4.0.3-1.noarch.rpm
xerces-j-1.4.4-2.noarch.rpm
tomcat4-webapps-4.0.3-1.noarch.rpm

I installed them all, no complaints or problems. However, when I start
tomcat with /etc/rc.d/init.d/tomcat4 start,

It seems to go okay, but I cannot connect to port 8080. The messages I
get in the localhost_log file are below...

Can anyone help out on this one? The documentation is incredibly poor
for this project, to say it very politely and nicely.

Thanks,
Bryan

This message prints out 4x....

2002-04-11 12:06:07 StandardHost[localhost]: Installing web application
at context path /webdav from URL file:/var/tomcat4/webapps/webdav
2002-04-11 12:06:07 WebappLoader[/webdav]: Deploying class repositories
to work directory /var/tomcat4/work/localhost/webdav
2002-04-11 12:06:07 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-04-11 12:06:07 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-04-11 12:06:08 ContextConfig[/webdav]: Added certificates ->
request attribute Valve
2002-04-11 12:06:08 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-04-11 12:06:08 org.apache.catalina.servlets.DefaultServlet: init
2002-04-11 12:06:08 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-04-11 12:06:08 org.apache.catalina.servlets.InvokerServlet: init
2002-04-11 12:06:08 org.apache.jasper.servlet.JspServlet: init
2002-04-11 12:06:08 StandardContext[/webdav]: Servlet /webdav threw
load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:243)
----- Root Cause -----
java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getResourcePaths(Ljava/lang/String;)Ljava/util/Set;
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
at
org.apache.jasper.compiler.TldLocationsCache.<init>(TldLocationsCache.java:139)
at
org.apache.jasper.EmbededServletOptions.<init>(EmbededServletOptions.java:345)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:243)

Jerome Moliere

לא נקראה,
12 באפר׳ 2002, 6:29:1112.4.2002
עד

Bryan Coon wrote:

> Hi,
>
> I am trying to install tomcat 4 on my RH 7.2 box, and am having
> problems. I downloaded all the binary packages recommended:
> tomcat4-4.0.3-1.noarch.rpm
> regexp-1.2.1.noarch.rpm
> servletapi4-4.0.3-1.noarch.rpm
> xerces-j-1.4.4-2.noarch.rpm
> tomcat4-webapps-4.0.3-1.noarch.rpm
>
> I installed them all, no complaints or problems. However, when I start
> tomcat with /etc/rc.d/init.d/tomcat4 start,
>
> It seems to go okay, but I cannot connect to port 8080.

what is the test made for this ?

> The messages I
> get in the localhost_log file are below...
>

first check that the 8080 port answers :
telnet localhost 8080
or use your web browser (http://localhost:8080)
or netstat -an | grep 8080


> Can anyone help out on this one?

it seems that the webdav servlets fails, could you just remove the rpm
containing all examples web apps (tomcat4-webapps-4.0.3-1.noarch.rpm

).
I guess that this is just a deployment problem & that your tomcat runs
fine!!!
then tries to deploy you first dummy servlet ...

> The documentation is incredibly poor
> for this project, to say it very politely and nicely.
>

you can contribute?


H.T.H
Jerome

Bryan Coon

לא נקראה,
12 באפר׳ 2002, 12:52:5012.4.2002
עד
Jerome Moliere wrote:
>
> Bryan Coon wrote:
>
> > Hi,

> what is the test made for this ?

Exactly the tests you describe below:
telnet localhost 8080 and http://localhost:8080
netstat -an | grep 8080 shows nothing


>
> > The messages I
> > get in the localhost_log file are below...
> >
>
> first check that the 8080 port answers :
> telnet localhost 8080
> or use your web browser (http://localhost:8080)
> or netstat -an | grep 8080
>
> > Can anyone help out on this one?
>
> it seems that the webdav servlets fails, could you just remove the rpm
> containing all examples web apps (tomcat4-webapps-4.0.3-1.noarch.rpm
>
> ).

Actually, I initially tried first without the webapps rpm. When tomcat
would not work, I installed the webapps. There was no change in the
errors observed.

> I guess that this is just a deployment problem & that your tomcat runs
> fine!!!
> then tries to deploy you first dummy servlet ...
>

I'm not sure... it may certainly be something on my end, but this is
pretty much a vanilla RH 7.2 box, with a fresh install and update. It
does look like tomcat is running ( doing ps -ef | grep tomcat4 shows
many processes ), but it is certainly not listening on port 8080...

> > The documentation is incredibly poor
> > for this project, to say it very politely and nicely.
> >
> you can contribute?

Absolutely. You help me get tomcat running, and I will give you the
notes on how to fix this problem for your trouble shooting section :)

Thanks,
Bryan

Tore Skogly

לא נקראה,
12 באפר׳ 2002, 17:42:2212.4.2002
עד
Bryan Coon wrote:

> Hi,
>
> I am trying to install tomcat 4 on my RH 7.2 box, and am having
> problems. I downloaded all the binary packages recommended:
> tomcat4-4.0.3-1.noarch.rpm
> regexp-1.2.1.noarch.rpm
> servletapi4-4.0.3-1.noarch.rpm
> xerces-j-1.4.4-2.noarch.rpm
> tomcat4-webapps-4.0.3-1.noarch.rpm
>
> I installed them all, no complaints or problems. However, when I start
> tomcat with /etc/rc.d/init.d/tomcat4 start,
>
> It seems to go okay, but I cannot connect to port 8080. The messages I
> get in the localhost_log file are below...
>
> Can anyone help out on this one? The documentation is incredibly poor
> for this project, to say it very politely and nicely.
>

It sounds like your servlet classes are not found.
Have you put servlet.jar in your classpath?
In Tomcat 4.0.1 the default standalone http port is 8180 - has this changed
in Tomcat 4.0.3?

Regards,
Tore Skogly

Bryan Coon

לא נקראה,
12 באפר׳ 2002, 18:15:0912.4.2002
עד

>
> It sounds like your servlet classes are not found.
> Have you put servlet.jar in your classpath?
> In Tomcat 4.0.1 the default standalone http port is 8180 - has this changed
> in Tomcat 4.0.3?
>
> Regards,
> Tore Skogly

Thanks for the suggestion Tore. Unfortunately, the servlet classes are
found correctly... so Im still not sure what is going on. I basically
gave up and went back to tomcat 3, it fired up and works correctly with
no hassle at all...

Thanks!
B

Rob Misek

לא נקראה,
16 באפר׳ 2002, 11:40:5616.4.2002
עד
Bryan Coon <bc...@pacbell.net> wrote in message news:<3CB75D26...@pacbell.net>...

Did you try port 8180?
I had run into the exact some issues as you and it was the fact that I
was trying to access through 8080. 8080 seems to be the default for
tomcat 4.0.3 on Windows but not in the Linux rpm distribution.

0 הודעות חדשות