myna under axis2

16 views
Skip to first unread message

AnRei

unread,
Nov 8, 2012, 12:56:15 PM11/8/12
to mynajs-...@googlegroups.com
Hallo,

Is it possible to deploy myna-1.0_beta_9.war into axis2 standalone server and if how can it be done?
Many thanks for help.
Regards

Mark Porter

unread,
Nov 8, 2012, 3:29:06 PM11/8/12
to mynajs-...@googlegroups.com
I took a quick look at the standalone server for axis and I didn't see any obvious conflicts. I would backup your axis installation and then run this command line:

java -jar myna-1.0_beta_9.war -m upgrade -w $AXIS_HOME/webapp/

Assuming $AXIS_HOME points to your Axis installation. This will unpack Myna into the webapp folder. This is effectively the same as renaming the war file to .zip and unzipping it in that directory. However this method is preferable for upgrading in the future.

If this breaks Axis you could try running them side-by-side in a servlet container like tomcat. Or, if you are looking for something simpler and more portable, check out the Winstone Servlet Container[1] which can run arbitrary servlet apps from the command line with no setup.

Mark Porter

unread,
Nov 8, 2012, 3:40:45 PM11/8/12
to mynajs-...@googlegroups.com
oops! I just realized this will whomp your $AXIS_HOME/webapp/WEB-INF/web.xml file. After installing, restore your original web.xml file and try adding this to the bottom of the web-app tag:

<!-- JSServlet -->
<servlet>
<servlet-name>JSServlet</servlet-name>
<servlet-class>info.emptybrain.myna.JSServlet</servlet-class>
<load-on-startup>1</load-on-startup>

</servlet>
<!-- map all to Myna -->
<servlet-mapping>
<servlet-name>JSServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>


That way Axis will still handle it's url patterns and Myna will get everything else
Reply all
Reply to author
Forward
0 new messages