File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Problems with PropertyMessageResource Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problems with PropertyMessageResource" Watch "Problems with PropertyMessageResource" New topic
Author

Problems with PropertyMessageResource

Ingo Weissmann
Greenhorn

Joined: Sep 01, 2003
Posts: 1
Hi all,
I'm a neewbie to struts and try to create an application based upon
struts-blank. I added some key-value pairs for ApplicationResources.properties
and currently try only to use a welcome page and a simple login.
But I get some nasty error like ClassNotFoundException for
'Property Message Ressource Factory'.
There is only one struts application is running in the webapps.
The path to ApplicationResources is valid.
I'm trying to get this stuff running til 2 weeks and don't know
where else to look...

Can someone please help me?

Here is my web.xml and my struts-config:
<web-app>

<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>qdbx</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>com.zf.qdb.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>3</load-on-startup>
</servlet>

<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>qdbx</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>

<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

-- struts-config ----------------------------
<form-beans>
<form-bean name="loginForm" type="com.zf.qdb.login.LoginForm"/>
</form-beans>
<global-forwards>
<forward name="login" path="/login.jsp"/>
<forward name="success" path="/login.jsp"/>
<forward name="confirmation" path="/login.jsp"/>
</global-forwards>
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
The message-resources element s'd be present in the struts-config.xml.
To start off with lets just keep it the WEB-INF/classes folder. Later
you can move it to a different place.
Am not sure if you have an entry like this in your struts-config.xml file.

Then you can drop the ApplicationResources.properties into the WEB-INF/classes folder. Btw, now i notice this
'Property Message Ressource Factory' in your post..It is in struts.jar
Hope it is present in your WEB-INF/LIB.
Do not change the directory structure on struts-blank web application.
 
 
subject: Problems with PropertyMessageResource
 
Similar Threads
Struts 1.1 - Tomcat 4.1.30 deployment problem
Http status 404 resource not available
Error: creating bean of class (HELP THE NEWBE)
servlet action is not available
Error while deploying struts application