I was deploying the webapp with the expanded directory structure (not as a .war
file)and didn't have struts.jar or WEB-INF/classes in WebLogic's classpath. Once I
added both to WebLogic's classpath, all was well. :)
Thanks,
Tiff
Tiffany Dodge <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I got the struts-example working and have begun trying to implement a small
> test app using struts, but have run into a problem. Below is the exception
> I'm receiving ...
>
> Thu Jun 28 17:32:41 PDT 2001:<E> <WebAppServletContext-bumbletrak> Root
> cause of
> ServletException
> javax.servlet.ServletException: runtime failure in custom tag 'message'
> at
> jsp_servlet._createnewperson2._jspService(_createnewperson2.java:108)
>
> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:106)
> at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> pl.java:124)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:907)
> at
> weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
> textImpl.java:851)
> at
> weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
> ContextManager.java:252)
> at
> weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
> a:364)
> at
> weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)
>
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
>
> >From searching the mailing list, I think it is due to not finding the
> ApplicationResources.properties file. Below are the reasons that I found
> (from the struts-user mailng list) which could cause the problem ...
>
> - Not having the <param-name>application</param-name> element in the web.xml
> file.
> - Miss typing the path for <param-name>application</param-name>'s value. Or
> not placing the ApplicationResources.properties file in the correct
> directory.
> - Not having the <load-on-startup> element in the web.xml file.
> - Having struts.jar in my CLASSPATH.
>
> >From what I can tell, I don't have any of the above problems. But I'm gonna
> include everything for review so some new/more experienced eyes can look at
> it.
>
> CreateNewPerson2.jsp
> ====================
> <%@ page language="java"%>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>
> <html:html locale="true">
> <head>
> <% System.out.println("Before the title tag."); %>
> <title><bean:message key="CreateNewPerson2.title"/></title>
> <html:base/>
> </head>
> <body bgcolor="white">
> </body>
> </html:html>
>
>
> web.xml
> =======
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!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>
>
> <!-- Action Servlet Configuration -->
> <servlet>
> <servlet-name>action</servlet-name>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>application</param-name>
> <param-value>com.ubermind.bumbletrak.ApplicationResources</param-value>
>
> </init-param>
> <init-param>
> <param-name>config</param-name>
> <param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>debug</param-name>
> <param-value>2</param-value>
> </init-param>
> <init-param>
> <param-name>detail</param-name>
> <param-value>2</param-value>
> </init-param>
> <init-param>
> <param-name>validate</param-name>
> <param-value>true</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
>
> <!-- Action Servlet Mapping -->
> <servlet-mapping>
> <servlet-name>action</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
>
>
> <!-- The Welcome File List -->
> <welcome-file-list>
> <welcome-file>CreateNewPerson2.jsp</welcome-file>
> </welcome-file-list>
>
> <!-- Struts Tag Library Descriptors -->
> <taglib>
> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
> </taglib>
>
> <taglib>
> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
> <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
> </taglib>
>
> <taglib>
> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
> </taglib>
>
> </web-app>
>
>
> ApplicationResources.properties
> ===============================
> button.cancel=Cancel
> button.confirm=Confirm
> button.reset=Reset
> button.save=Save
> error.fistName.required=<li>First Name is required</li>
> error.lastName.required=<li>Last Name is required</li>
> CreateNewPerson2.title=BumbleTrak
> prompt.firstName=First Name *
> prompt.lastName=Last Name *
> prompt.middleName=Middle Name
> prompt.imHandle=IM Handle
> prompt.gender=Gender
>
>
>
> (NOTE: I am using WebLogic 5.1 with SP8)
>
> DIRECTORY STRUCTURE
> ===================
> CreateNewPerson2.jsp
> -WEB-INF
> _tmp_war_bumbletrak
> -com
> -ubermind
> -bumbletrak
> ApplicationResources.properties
> -jsp_servlet
> _createnewperson2.class
> struts.jar
> -classes
> -com
> -ubermind
> -bumbletrak
> ApplicationResources.properties
> -lib
> struts.jar
> struts.tld
> struts-bean.tld
> struts-config.xml
> struts-form.tld
> struts-html.tld
> struts-logic.tld
> struts-template.tld
> web.xml
>
> Please give me any suggestions or comments. PLEASE!!!!
>
> Thanks,
> Tiff
>
>