Bugs item #680269, was opened at 2003-02-04 16:55
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=680269&group_id=22866
Category: JBossWeb
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Oliver Busch (oliverbusch)
Assigned to: Nobody/Anonymous (nobody)
Summary: NoClassDefFoundError with struts1.0.2
Initial Comment:
I get the following error while loading a entry from a
resource. The code works fine with JBoss-2.4.6_Jetty-
4.0.1 but jboss-3.0.6 makes problems.
We use the following code to get the key:
import org.apache.struts.util.MessageResources;
/**
* reads the message to the given key out of
the struts-message-ressource-bundle.
* @param resources MessageResource of
the action
* @param locale Locale the
user has set
* @param key
the key in the ressource-bundle
* @return String the
message
*/
public static String getMessage
(MessageResources resources, Locale locale, String
key) {
return getMessage(resources,
locale, key, null);
}
/**
* reads the message to the given key out of
the struts-message-ressource-bundle.
*
* This method reads a message to the given
key out of the
* struts-message-ressource-bundle. It uses
the currently activated struts-locale
* of this session to determin the correct
ressource and replaces placeholders
* with the given arguments.
*
* @param resources MessageResource of
the action
* @param locale Locale the
user has set
* @param key
the key in the ressource-bundle
* @param args a list of
arguments to replace placeholders in the message
* @return String the
message
*/
public static String getMessage
(MessageResources resources, Locale locale, String
key, Object args[]) {
String message = null;
try {
if(args != null) {
message =
resources.getMessage(locale, key, args);
} else {
message =
resources.getMessage(locale, key);
}
if(message == null) {
message =
key + " not found!";
}
} catch (Exception ex) {
// set messasge to
error-description
message
= "exception: " + ex.getMessage();
}
return message;
}
16:36:06,256 WARN [jbossweb] WARNING: Error
for /pweb/xxx/genericAnalyseRequest.do?
id=de.xxx.pweb.a
nalyse.player.AnalyseAttendance
java.lang.NoClassDefFoundError:
org/apache/struts/util/MessageResources
at de.xxx.pweb.utils.MessageUtils.getMessage
(MessageUtils.java:50)
at de.xxx.pweb.utils.MessageUtils.getMessage
(MessageUtils.java:25)
at
de.xxx.pweb.xxx.analyse.GenericAnalyseSearchAction.
perform(GenericAnalyseSearchAction.jav
a:89)
at
org.apache.struts.action.ActionServlet.processActionPerf
orm(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doGet
(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:360)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.d
oFilter(WebApplicationHandler.java
:328)
at
de.xxx.pweb.accessmanager.AccessFilter.doFilter
(AccessFilter.java:135)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.d
oFilter(WebApplicationHandler.java
:320)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatc
h(WebApplicationHandler.java:272)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:553)
at org.mortbay.http.HttpContext.handle
(HttpContext.java:1717)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:549)
at org.mortbay.http.HttpContext.handle
(HttpContext.java:1667)
at org.mortbay.http.HttpServer.service
(HttpServer.java:862)
at org.jboss.jetty.Jetty.service(Jetty.java:497)
at org.mortbay.http.HttpConnection.service
(HttpConnection.java:759)
at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:923)
at org.mortbay.http.HttpConnection.handle
(HttpConnection.java:776)
at
org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:202)
at org.mortbay.util.ThreadedServer.handle
(ThreadedServer.java:289)
at org.mortbay.util.ThreadPool$PoolThread.run
(ThreadPool.java:455)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=680269&group_id=22866
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development