Hi,
I'm trying to set up a web app without a enterprise app.
I copyed default-web-site.xml to eratex-web-site.xml and edited to change the port. It looks like this minus the header.

<web-site host="[ALL]" port="8000" display-name="E-Ratex WebSite">
 <!-- The default web-app for this site, bound to the root -->
 <default-web-app application="default" name="defaultWebApp" />

 <!-- eratex app -->
 <web-app application="default"
          name="eratex"
                 root="/eratex"
   load-on-startup="true">
        </web-app>

 <!-- Access Log, where requests are logged to -->
 <access-log path="../log/eratex-access.log" />
</web-site>

I added <web-site path="./eratex-web-site.xml" /> to server.xml

I added to application.xml (document-type orion-application) the following tag.
<web-module id="eratex" path="../applications/eratex" /> and put my app in WAR
layout but not zipped.
This is my web.xml in the WEB-INF dir.

<web-app>
  <display-name>E-Ratex Web App</display-name>
 
  <description>Provides a complete shopping site.</description>
 
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
 
  <servlet>
    <jsp-file>product-demo.jsp</jsp-file>
  </servlet>

  <env-entry>
    <description>Used to find the AppConfig configuration file</description>
    <env-entry-name>configFile</env-entry-name>
    <env-entry-value>WEB-INF/eratex.xml</env-entry-value>
    <env-entry-type>java.lang.String</env-entry-type>
  </env-entry>

</web-app>

Here are the problems:
1. doesn't find welcome file list when I put http://localhost/eratex but will find it when I add index.html to the URL.
2. The server seems to find my beans on the JSP page from a JAR file inside the WEB-INF/lib dir but when it comes to the scriplet code it fails to load the superclass of Product.
Persistent <-- BaseProduct <-- Product
I check to see if Persistent is in the JAR and it is.
Here is the stack trace.
4/10/00 6:20 PM Started
4/10/00 6:20 PM defaultWebApp: Started
4/10/00 6:20 PM defaultWebApp: Started
4/10/00 6:20 PM eratex: Started
4/10/00 6:21 PM eratex: Servlet error
java.lang.NoClassDefFoundError: com/telesoft/database/Persistent
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:438)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:336)
        at com.evermind.naming.id.findClass(JAX)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:195)
        at com.evermind.naming.id.findClass(JAX)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:195)
        at com.evermind.naming.id.findClass(JAX)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:195)
        at com.evermind.naming.id.findClass(JAX)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:279)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:243)
        at __jspPage0._jspService(__jspPage0.java:66)
        at com.evermind.server.http.EvermindHttpJspPage.service(JAX)
        at com.evermind.server.http.HttpApplication.pk(JAX)
        at com.evermind.server.http.JSPServlet.service(JAX)
        at com.evermind.server.http.c1.l_(JAX)
        at com.evermind.server.http.c1.forward(JAX)
        at com.evermind.server.http.dc.ca(JAX)
        at com.evermind.util.b.run(JAX)

Can the java.lang.NoClassDefFoundError be called for a version problem in my classes or is the server really not finding my class.

Any help would be really appreciated.
Thanks,
Eric

Reply via email to