Resolving war deployment problem in jboss-as-7

Posted on Updated on

If you are stuck with the following stacktrace:

09:19:05,123 INFO [] (MSC service thread 1-7) JBAS015876: Starting deployment of “HelloWorld.war”
09:19:07,168 ERROR [] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit.”HelloWorld.war”.POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit.”HelloWorld.war”.POST_MODULE: Failed to process phase POST_MODULE of deployment “HelloWorld.war”
at [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService( [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$ [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask( [rt.jar:1.6.0_45]
at java.util.concurrent.ThreadPoolExecutor$ [rt.jar:1.6.0_45]
at [rt.jar:1.6.0_45]
Caused by: JBAS011093: Could not load component class org.apache.struts.taglib.template.InsertTag Read the rest of this entry »


Remove struts mapping messages from console

Posted on Updated on

You might be wandering that you have configured struts correctly but you still see some debug messages on the console related to struts config while starting any application server. Dont worry, struts is configured correctly. It is some other configurations that is displaying this message.  Read below to solve your issue.

It is due to some excessive code written in log4j configuration of your project. When the server runs, the debug message shown is something like below:


Convert string ‘/’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘/’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setInput(java.lang.String) with value / (class java.lang.String)
setProperty(ActionConfig[cancellable=false,path=null,validate=true,input=/,scope=session, parameter, methodName)
Target bean = ActionConfig[cancellable=false,path=null,validate=true,input=/,scope=session
Target name = parameter
Convert string ‘methodName’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]

Read the rest of this entry »