-
Jul 27th, 2009, 08:11 AM
#1
Unable to deploy web bundle(included in par) in eclipse
Hi
When I establish a web type bundle, it can be successfully and automatically deployed by publishing in eclipse.
EX:
test.web
------src
------------com/test/Foo.java
------webapp
------------META-INF
------------WEB-INF
------------------jsp
------------------------test.jsp
------------------web.xml
When it be deployed, the {DM_SERVER_HOME}/stage directory is
test.web.war
------META-INF
------WEB-INF
------------classes
------------------com/test/Foo.class
------------jsp
------------------test.jsp
------------web.xml
So, it can be loaded by spring-dm server.
But, when I attach this web bundle into a par project which only dependence test.web bundle, it have problem in the deployed directory({DM_SERVER_HOME}/stage).
EX:
------test.par
------------META-INF
------------test.web.war
------------------com/test/Foo.class
or sometimes it will become this.
EX:
------test.par
------------META-INF
------------test.web.war
------------------com/test/Foo.class
------------------webapp
------------------------WEB-INF
------------------------------jsp
------------------------------------test.jsp
------------------web.xml
It always lack the classes directory under WEB-INF and all the class files are located in the test.web.war directory, not the webapp/classes directory.
When I check org.eclipse.wst.common.component file under .setting directory of project test.web. It looks like :
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="test.web">
<wb-resource deploy-path="/" source-path="/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<property name="context-root" value="test.web"/>
<property name="java-output-path"/>
</wb-module>
</project-modules>
My spring-dm server is 1.0.2 version.
Is somebody know how to fix this?
Thanks in advance.
Last edited by aroky; Jul 27th, 2009 at 09:01 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules