Hi
It mainly depends on how you import the sources and configure your project.
I have got it running as a dynamic webproject but it took me quite some time.
There may be other ways. I tryied it by manually changing the file
"org.eclipse.wst.common.component" in your .setting folder of the dynamic
webproject.
I have a linked folder in DWP called dev. It contains a javaproject with my own
javasources(dev/src) and the complete SVN-wikibranch (dev/src).
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="JSPWIKI">
//standard
<wb-resource deploy-path="/" source-path="/web-directory"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/javasources"/>
//wikistuff
<wb-resource deploy-path="/" source-path="dev/src-wiki/src/webdocs"/>
<wb-resource deploy-path="/WEB-INF" source-path="dev/src-wiki/etc"/>
<wb-resource deploy-path="/WEB-INF/lib" source-path="dev/src-wiki/lib"/>
<wb-resource deploy-path="/WEB-INF/classes"
source-path="dev/src-wiki/etc/i18n"/>
<wb-resource deploy-path="/WEB-INF/classes/ini"
source-path="dev/src-wiki/etc/ini"/>
///own stuff(properties,templates etc.)
<wb-resource deploy-path="/WEB-INF/classes"
source-path="dev/classes"/>
<wb-resource deploy-path="/images" source-path="dev/images"/>
<wb-resource deploy-path="/templates" source-path="dev/templates"/>
<wb-resource deploy-path="/WEB-INF" source-path="dev/WEB-INF"/>
<property name="context-root" value="JSPWIKI"/>
<property name="java-output-path"/>
</wb-module>
</project-modules>
I hope thats helps as a little guide
Regards,
Nicola
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Dienstag, 27. Januar 2009 19:38
An: [email protected]
Betreff: JSPWiki as WTP
Hey everyone,
Hey Janne,
For efficiency reasons, we would like to have our whole project running as a
dynamic web project in Eclipse. We have managed to set up such a project, but
we keep on getting errors when trying to extract the contents of JSPWiki.jar
from /lib in the appropriate locations of the web project (e.g., we put the
com/* and org/*
folders to /classes etc.) The error is:
---
Error Message
Exception
java.util.MissingResourceException
Place where detected
java.util.ResourceBundle.throwMissingResourceException(), line 1508
---
We need to know the right locations for all the files within the JSPWiki.jar,
that is, when not using the JSPWiki.jar, where do the ini,i18n, template etc.
folder go?
Has anyone managed to run JSPWiki as a WTP with the JSPWiki.jar unpacked?
All the best
Kai
____________
Virus checked by G DATA AntiVirus
Version: AVF 19.236 dated 28.01.2009