tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Calsbeek" <nexua...@gmail.com>
Subject Getting a project deployed
Date Tue, 17 Apr 2007 22:29:38 GMT
I'm trying to manually deploy a JSP website that I didn't make on a
web server that I didn't set up, so I'm kind of in strange territory
here (first time using Tomcat). Here's what I have/know:

Linux webserver using Apache 2 and Tomcat 5, mod_jk. Tomcat is
working—the default base URL of /jsp-examples is working. I can give
sections of the config web.xml and server.xml files if needed.

I've got a website located at <tomcat5>/base/webapps/jmarks. I believe
it was created with NetBeans 5. It's a royal hodgepodge of *.html,
*.jsp, JavaScript/CSS/images/etc., with a WEB-INF and META-INF folder.
WEB-INF contains classes and libs folders, fully loaded, and a web.xml
file. META-INF has a context.xml file. All files have identical
permissions, owner, and group to the jsp-examples. Here is the
WEB-INF/web.xml file. I added the <servlet> and <servlet-mapping> tags
to what NetBeans generated.

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         version="2.4">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>
            index.jsp
        </welcome-file>
    </welcome-file-list>

    <servlet>
        <servlet-name>DoverWebsite</servlet-name>
        <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>DoverWebsite</servlet-name>
        <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
</web-app>

This folder is aliased to /path/to/jmarks in Apache's configuration,
in the jk.conf file (as per /jsp-examples). It also includes a
'JkMount /path/to/jmarks/*.jsp ajp13' line. This partially works—I can
read any of the *.html pages. However, trying any of the *.jsp files
gives me this error in the browser:

HTTP Status 404 - /path/to/jmarks/index.jsp

type: Status report

message: /path/to/jmarks/index.jsp

description: The requested resource (/path/to/jmarks/index.jsp) is not
available.

Apache Tomcat/5.0

I'm not sure where to go to get more information on the exact error.
The Tomcat log I found
(<tomcat5>/base/logs/localhost_log.2007-04-17.txt) shows this at the
last restart of the Tomcat daemon:

2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@b05acd')
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1989b5')
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@a00185')
2007-04-17 12:00:12
StandardContext[/servlets-examples]SessionListener: contextDestroyed()
2007-04-17 12:00:12
StandardContext[/servlets-examples]ContextListener: contextDestroyed()
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1328c7a')
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@1a4ded3')
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@121177e')
2007-04-17 12:00:12 StandardContext[/jsp-examples]SessionListener:
contextDestroyed()
2007-04-17 12:00:12 StandardContext[/jsp-examples]ContextListener:
contextDestroyed()
2007-04-17 12:00:33 StandardContext[/jsp-examples]ContextListener:
contextInitialized()
2007-04-17 12:00:33 StandardContext[/jsp-examples]SessionListener:
contextInitialized()
2007-04-17 12:00:34
StandardContext[/servlets-examples]ContextListener:
contextInitialized()
2007-04-17 12:00:34
StandardContext[/servlets-examples]SessionListener:
contextInitialized()

Doesn't show my application anywhere on startup, only the example
applications. start.log, stop.log, and mod_jk.log don't appear to be
any help.

Does anyone have any suggestions as to what I can do to figure out the
problem from here? I've seen references to a webapp manager JSP
application, but I haven't had any success in finding it on this web
server.

Sorry if this kind of thing comes up a lot—I appreciate any help!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message