E
Eirik Eldorsen
I've just decided to use Struts and my project and trying to set up my
server (Jboss 3.0.8)
I've tried running the example war files that comes with Struts, and they
worked perfect.
I then tried moving the jar files from the war file, to the server/all/lib
folder, and still everythings ok.
My problem occurs when I'm trying to move the stuff in web.xml over to the
defaultweb.xml.
Moving the taglibs was no problem, but when moving the action servlet stuff
it created an null pointer exception, before I even tried to deploy the
example war files.
Here is what I tried to put into defaultweb.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>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>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
server (Jboss 3.0.8)
I've tried running the example war files that comes with Struts, and they
worked perfect.
I then tried moving the jar files from the war file, to the server/all/lib
folder, and still everythings ok.
My problem occurs when I'm trying to move the stuff in web.xml over to the
defaultweb.xml.
Moving the taglibs was no problem, but when moving the action servlet stuff
it created an null pointer exception, before I even tried to deploy the
example war files.
Here is what I tried to put into defaultweb.xml
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>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>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>