ejbModule and WebContent directory in WTP 2.0 [message #197840] |
Fri, 03 August 2007 14:28 |
Eclipse User |
|
|
|
Originally posted by: lpkooijman.gmail.com
Hi all,
AFAIK it used to be possible with WTP to change the location of the
content directories for an ejb project (ejbModule) or dynamic web project
(WebContent). I have figured out a way to do this for a dynamic web
project but does anyone know how to do it for an EJB project?
It is quite strange this feature is not available in WTP anymore because
it is quite vital if you combine WTP with Maven. Am I missing something?
Thanks in advance,
Bart.
|
|
|
|
Re: ejbModule and WebContent directory in WTP 2.0 [message #197967 is a reply to message #197867] |
Wed, 08 August 2007 15:52 |
Eclipse User |
|
|
|
Originally posted by: lpkooijman.gmail.com
Hi Rob,
Thanks for your reply. I tried your suggestion but I still have some
problems. What I did is:
1. Created a dynamic web project (servlet 2.4, JDK 5).
2. I renamed or replaced the WebContent directory using refactor -> rename
or refactor -> move.
3. I have a problem saying: "CHKJ3000E: WAR Validation Failed:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml" error.
I tried to refresh and clean the project but the problem remains. The log
file in the .metadata directory of my workspace showed the following
nested exception (it shows a path that is wrong):
!ENTRY org.eclipse.wst.validation 4 0 2007-08-08 17:45:37.937
!MESSAGE
*** ERROR ***: Wed Aug 08 17:45:37 CEST 2007
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml
Stack trace of nested exception:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.Em ptyResourceException:
platform:/resource/j2portaltest3/webapp/WEB-INF/web.xml
at
org.eclipse.jst.j2ee.commonarchivecore.internal.util.Archive Util.getRoot(ArchiveUtil.java:440)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Xml BasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBase dImportStrategyImpl.java:42)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.loadDeploymentDescriptor(War22ImportStr ategyImpl.java:87)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.importMetaData(War22ImportStrategyImpl. java:81)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFile Impl.getDeploymentDescriptor(WARFileImpl.java:145)
at
org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:328)
at
org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:111)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Do you know what is wrong?
Thanks in advance,
Bart Kooijman
|
|
|
|
Re: ejbModule and WebContent directory in WTP 2.0 [message #198024 is a reply to message #197975] |
Thu, 09 August 2007 11:41 |
Eclipse User |
|
|
|
Originally posted by: lpkooijman.gmail.com
Hi Rob,
I am using the JST plugin version 2.0.0.v200706110805 (Build id:
200706212235) and the WST plugin 2.0.0.v200706041905 (Build id:
200706212235). I received them via the Europa discovery site. I am using
Eclipse version 3.3.0 (Build id: I20070625-1500). I created a dynamic web
project called j2portaltest leaving everything default and only renaming
the WebContent folder to webapp. After doing that the component settings
look as follows:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="j2portaltest">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
<wb-resource deploy-path="/" source-path="/webapp"/>
<property name="context-root" value="j2portaltest"/>
<property name="java-output-path" value="build/classes"/>
</wb-module>
</project-modules>
The complete log of the exception in the .log file in the .metadata
directory looks as follows:
!ENTRY org.eclipse.jdt.core 4 4 2007-08-09 13:27:38.486
!MESSAGE ClassFormatException in
C:/java/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar|com/sun/ crypto/provider/SunJCE_am.class.
Please report this issue to JDT/Core including the problematic document
!STACK 0
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatExcept ion
at
org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init >(ClassFileReader.java:342)
at
org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init >(ClassFileReader.java:121)
at
org.eclipse.jdt.internal.core.search.indexing.BinaryIndexer. indexDocument(BinaryIndexer.java:622)
at
org.eclipse.jdt.internal.core.search.JavaSearchParticipant.i ndexDocument(JavaSearchParticipant.java:74)
at
org.eclipse.jdt.internal.core.search.indexing.IndexManager.i ndexDocument(IndexManager.java:314)
at
org.eclipse.jdt.internal.core.search.indexing.AddJarFileToIn dex.execute(AddJarFileToIndex.java:197)
at
org.eclipse.jdt.internal.core.search.processing.JobManager.r un(JobManager.java:392)
at java.lang.Thread.run(Thread.java:595)
!ENTRY org.eclipse.wst.validation 4 0 2007-08-09 13:27:58.925
!MESSAGE
*** ERROR ***: Thu Aug 09 13:27:58 CEST 2007
org.eclipse.wst.validation.internal.core.ValidationException : CHKJ3000E:
WAR Validation Failed:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml
at
org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:343)
at
org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:111)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.wst.validation 4 0 2007-08-09 13:27:59.927
!MESSAGE
*** ERROR ***: Thu Aug 09 13:27:59 CEST 2007
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
WEB-INF/web.xml
Stack trace of nested exception:
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.Em ptyResourceException:
platform:/resource/j2portaltest/WebContent/WEB-INF/web.xml
at
org.eclipse.jst.j2ee.commonarchivecore.internal.util.Archive Util.getRoot(ArchiveUtil.java:440)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Xml BasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBase dImportStrategyImpl.java:42)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.loadDeploymentDescriptor(War22ImportStr ategyImpl.java:87)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.importMetaData(War22ImportStrategyImpl. java:81)
at
org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFile Impl.getDeploymentDescriptor(WARFileImpl.java:145)
at
org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:328)
at
org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:111)
at
org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Do you know what is going wrong?
Thanks in advance,
Bart Kooijman.
|
|
|
Re: ejbModule and WebContent directory in WTP 2.0 [message #198048 is a reply to message #198024] |
Thu, 09 August 2007 14:08 |
Rob Frost Messages: 64 Registered: July 2009 |
Member |
|
|
hi Bart,
OK - based on the content of the component file, the refactoring is working
as expected (the wb-resource mapping is being altered to the new value
"/webapp").
Regarding the WarValidator error on the old WebContent location, errors in
the log of this form have been seen due to the validator processing the
project when things are in an inconsistent state (i.e. WebContent has been
renamed but the metadata has not yet been updated - see comment #6 in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=180739 and the bugzillas
referenced there), however, you should not get a lingering error problem
marker in the project.
If the WarValidator is continuing to generate such an error despite a
correct component file, that speaks to an issue in the Virtual Component
model logic, so please go ahead and open a new bugzilla for this.
In the meantime, your project metadata is being correctly updated, so
everything should function correctly during a new Eclipse session.
-Rob
"Bart Kooijman" <lpkooijman@gmail.com> wrote in message
news:6d0b706d36e54171b1e356001b371dd2$1@www.eclipse.org...
> Hi Rob,
>
> I am using the JST plugin version 2.0.0.v200706110805 (Build id:
> 200706212235) and the WST plugin 2.0.0.v200706041905 (Build id:
> 200706212235). I received them via the Europa discovery site. I am using
> Eclipse version 3.3.0 (Build id: I20070625-1500). I created a dynamic web
> project called j2portaltest leaving everything default and only renaming
> the WebContent folder to webapp. After doing that the component settings
> look as follows:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <project-modules id="moduleCoreId" project-version="1.5.0">
> <wb-module deploy-name="j2portaltest">
> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
> <wb-resource deploy-path="/" source-path="/webapp"/>
> <property name="context-root" value="j2portaltest"/>
> <property name="java-output-path" value="build/classes"/>
> </wb-module>
> </project-modules>
>
> The complete log of the exception in the .log file in the .metadata
> directory looks as follows:
>
> !ENTRY org.eclipse.jdt.core 4 4 2007-08-09 13:27:38.486
> !MESSAGE ClassFormatException in
> C:/java/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar|com/sun/ crypto/provider/SunJCE_am.class.
> Please report this issue to JDT/Core including the problematic document
> !STACK 0
> org.eclipse.jdt.internal.compiler.classfmt.ClassFormatExcept ion
> at
> org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init >(ClassFileReader.java:342)
> at
> org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init >(ClassFileReader.java:121)
> at
> org.eclipse.jdt.internal.core.search.indexing.BinaryIndexer. indexDocument(BinaryIndexer.java:622)
> at
> org.eclipse.jdt.internal.core.search.JavaSearchParticipant.i ndexDocument(JavaSearchParticipant.java:74)
> at
> org.eclipse.jdt.internal.core.search.indexing.IndexManager.i ndexDocument(IndexManager.java:314)
> at
> org.eclipse.jdt.internal.core.search.indexing.AddJarFileToIn dex.execute(AddJarFileToIndex.java:197)
> at
> org.eclipse.jdt.internal.core.search.processing.JobManager.r un(JobManager.java:392)
> at java.lang.Thread.run(Thread.java:595)
>
> !ENTRY org.eclipse.wst.validation 4 0 2007-08-09 13:27:58.925
> !MESSAGE *** ERROR ***: Thu Aug 09 13:27:58 CEST 2007
> org.eclipse.wst.validation.internal.core.ValidationException : CHKJ3000E:
> WAR Validation Failed:
> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
> WEB-INF/web.xml
> at
> org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:343)
> at
> org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:111)
> at
> org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:75)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
> !ENTRY org.eclipse.wst.validation 4 0 2007-08-09 13:27:59.927
> !MESSAGE *** ERROR ***: Thu Aug 09 13:27:59 CEST 2007
> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.De ploymentDescriptorLoadException:
> WEB-INF/web.xml
> Stack trace of nested exception:
>
> org.eclipse.jst.j2ee.commonarchivecore.internal.exception.Em ptyResourceException:
> platform:/resource/j2portaltest/WebContent/WEB-INF/web.xml
> at
> org.eclipse.jst.j2ee.commonarchivecore.internal.util.Archive Util.getRoot(ArchiveUtil.java:440)
> at
> org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.Xml BasedImportStrategyImpl.primLoadDeploymentDescriptor(XmlBase dImportStrategyImpl.java:42)
> at
> org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.loadDeploymentDescriptor(War22ImportStr ategyImpl.java:87)
> at
> org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.War 22ImportStrategyImpl.importMetaData(War22ImportStrategyImpl. java:81)
> at
> org.eclipse.jst.j2ee.commonarchivecore.internal.impl.WARFile Impl.getDeploymentDescriptor(WARFileImpl.java:145)
> at
> org.eclipse.jst.j2ee.model.internal.validation.WarValidator. validateInJob(WarValidator.java:328)
> at
> org.eclipse.jst.j2ee.internal.web.validation.UIWarValidator. validateInJob(UIWarValidator.java:111)
> at
> org.eclipse.wst.validation.internal.operations.ValidatorJob. run(ValidatorJob.java:75)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> Do you know what is going wrong?
>
> Thanks in advance,
>
> Bart Kooijman.
>
|
|
|
Powered by
FUDForum. Page generated in 0.02507 seconds