WAR cookie example not working. Please help!

Hi,
          The cookie example worked fine if I put everything unpackaged under the
          public_html/cookie directory. However, when I jarred this directory as
          cookie.war and registered it with WLS, I got this exception when trying
          to access CookieCounter servlet.
          javax.servlet.ServletException: Servlet class: servlets.CookieCounter
          could not
          be loaded - the requested class wasn't found in the classpath
          Also, I was able to get to the hello.html page (my welcome-file) when I
          put in this request
          http://127.0.0.1:7001/cookie
          That means the server was able to extract the cookie.war file and parse
          web.xml correctly.
          The structure of my cookie.war file is exactly the same as the cookie
          directory's.
          This is what my cookie.war file looks like
          error.jsp
          WEB-INF/classes/servlets/CookieCounter.class
          WEB-INF/classes/CookieCounter.class
          WEB-INF/CookieCounter.java
          WEB-INF/web.xml
          images/cookie.jpg
          hello.html
          This is the entry in weblogic.properties
          weblogic.httpd.webApp.cookie=c:/weblogic/myserver/public_html/cookie.war
          my web.xml is
          <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
          1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
          <web-app>
          <!--
          <context-param>
          <param-name>weblogic.servlet.reloadCheckSecs</param-name>
          <param-value>0</param-value>
          </context-param>
          -->
          <servlet>
          <servlet-name>CookieCounter</servlet-name>
          <servlet-class>servlets.CookieCounter</servlet-class>
          </servlet>
          <servlet-mapping>
          <servlet-name>CookieCounter</servlet-name>
          <url-pattern>monster</url-pattern>
          </servlet-mapping>
          <welcome-file-list>
          <welcome-file>hello.html</welcome-file>
          </welcome-file-list>
          <error-page>
          <error-code>404</error-code>
          <location>/error.jsp</location>
          </error-page>
          </web-app>
          The problem seems to be that weblogic was able to find
          CookieCounter.class under the unpackaged cookie directory but not inside
          cookie.war
          Please help.
          Thanks a lot.
          By the way, if you have a war file that works, please send it to me at
          [email protected]
          I would greatly appreciate it.
          

Try resetting it:
Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears.
Next try restoring via itunes.

Similar Messages

Maybe you are looking for

  • Change the Logo in iStore Home page

    All, Can any one tell the process to place the custom logo in iStore home page ??? Thanks in advance

  • LR Question Mark in Library

    All pix are now on my external HD. The question mark showed up on my pix in LR. I did right click to show in finder and it directed me to my external HD which was connected. However, it didn't find it by itself. I had to directed to straight to the f

  • Has anyone used LabView to control a Lumonics JK701H Laser?

    I don't want to reinvent anything and was wondering if anyone has interfaced to a Lumonics JK701H laser via LabView. I haven't been able to find any drivers or shared source for this device yet. Appreciate any pointers to finding information that wou

  • Manage Windows Server 2008 DNS role

    Hi, I'm testing Windows Server 2008 Server Core. The primary role of my server is DNS Server. Usign command line the dns was installed and configured. Now I'll be manage the dns usign mmc dns snap-in from another computer in the same subnet. When I r

  • OPC with datasocket/itools

    Hi, I have a problem with Datasocket and Dasylab 8.0 when using OPC to talk to Eurotherm PID controllers using the Eurotherm OPC server.  Dasylab sends out a 0 when the worksheet is first run and then the correct variable value. This causes problems