Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » error while generating the deployment descriptor
error while generating the deployment descriptor [message #145655] Sun, 30 October 2005 22:02 Go to next message
Eclipse UserFriend
Originally posted by: alexander.wiesloch.freenet.de

Hello,

I tried to create und deploy a simple EJB with several Eclipse and WT
versions
( http://www.eclipse.org/webtools/community/tutorials/ejbtutor ial/buildingejbs.html).
My current installation is the Lomboz-Bundle
lomboz-eclipse-emf-gef-jem-3.1RC2.zip.

My annotation provider is Xdoclet 1.2.3. In all cases an error occurred
while generating the deployment descriptor:
--------Error------------
The content of element type "ejb-jar" must match
" (description?,display-name?,small-icon?,large-icon?,enterpri se-beans,relationships?,assembly-descriptor?,ejb-client-jar? ) ".
-------------------------
Furthermore the other classes were never generated. (TigerHome, TigerLocal
... )

further particulars:
Win XP
jsdk 1.4.2_09

Thank you for your help
Peter
Re: error while generating the deployment descriptor [message #146490 is a reply to message #145655] Tue, 08 November 2005 05:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sachin1618.gmail.com

I'm having the same problem using Eclipse 3.1 and WTP 0.7 Final. I think it
has something do with using JDK 5.0 with Xdoclet 1.2.3. Even turning the
validation off doesn't help. No bean classes are been generated, nor any
error messages are displayed.

Does anyone know what the problem is?






"Peter Alexander" <alexander.wiesloch@freenet.de> wrote in message
news:op.szhbi4zgt9ut3i@winxp...
> Hello,
>
> I tried to create und deploy a simple EJB with several Eclipse and WT
> versions
> ( http://www.eclipse.org/webtools/community/tutorials/ejbtutor ial/buildingejbs.html).
> My current installation is the Lomboz-Bundle
> lomboz-eclipse-emf-gef-jem-3.1RC2.zip.
>
> My annotation provider is Xdoclet 1.2.3. In all cases an error occurred
> while generating the deployment descriptor:
> --------Error------------
> The content of element type "ejb-jar" must match
> " (description?,display-name?,small-icon?,large-icon?,enterpri se-beans,relationships?,assembly-descriptor?,ejb-client-jar? ) ".
> -------------------------
> Furthermore the other classes were never generated. (TigerHome, TigerLocal
> .. )
>
> further particulars:
> Win XP
> jsdk 1.4.2_09
>
> Thank you for your help
> Peter
Re: error while generating the deployment descriptor [message #146571 is a reply to message #146490] Tue, 08 November 2005 19:11 Go to previous message
Eclipse UserFriend
Originally posted by: alexander.wiesloch.freenet.de

On Tue, 08 Nov 2005 06:53:11 +0100, ThirdIon <sachin1618@gmail.com> wrote:




Hello ThirdIon

I have tried a lot of configurations to solve this problem.
In some reasons the tempAnt.xml in

(<your workspace>
..metadata\.plugins\org.eclipse.jst.j2ee.ejb.annotations.xdo clet\tempAnt.xml)
will never exectue from ant.This script will generate the Classes.
Now I execute this tempAnt.xml manually with an externalTool -
configuration.

################################### My externalTool - configuration
#################################################
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.ant.AntLaunchConfigurationType">
<stringAttribute key="process_factory_id"
value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL"
value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH"
value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE"
value="org.eclipse.ant.internal.ui.antsupport.InternalAntRunner "/>
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
<listEntry value="org.eclipse.ui.externaltools.launchGroup"/>
</listAttribute>
<stringAttribute key="org.eclipse.debug.ui.ATTR_CAPTURE_IN_FILE"
value="${workspace_loc:/PeterTest}"/>
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables"
value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER"
value="org.eclipse.ant.ui.AntClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER"
value="org.eclipse.ant.ui.AntClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_TYPE_ID"
value="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType "/>
<stringAttribute key="org.eclipse.jdt.launching.VM_INSTALL_NAME"
value="j2sdk1.4.2_09"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#10;&lt; runtimeClasspathEntry
type=&quot;4&quot; path=&quot;1&quot;
containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAI NER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMTyp e/j2sdk1.4.2_09&quot;/&gt;&#10; "/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#10;&lt; runtimeClasspathEntry
type=&quot;2&quot; path=&quot;3&quot;
externalArchive=&quot;C:/JAVA_STUFF/J2ee/j2ee1.4/lib/j2e e.jar&quot;/&gt;&#10; "/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#10;&lt; runtimeClasspathEntry
id=&quot;org.eclipse.ant.ui.classpathentry.antHome&q uot;&gt;&#10;&lt;memento
default=&quot;true&quot;/&gt;&#10;&lt;/r untimeClasspathEntry&gt;&#10; "/>
<listEntry value="&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;&#10;&lt; runtimeClasspathEntry
id=&quot;org.eclipse.ant.ui.classpathentry.extraClasspat hEntries&quot;&gt;&#10;&lt;memento/&gt;& amp;#10;&lt;/runtimeClasspathEntry&gt;&#10; "/>
</listAttribute>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION"
value="C:\Dokumente und Einstellungen\JavaDev\Eigene
Dateien\Projekte\WORKSPACES\Lomboz\.metadata\.plugins\org.ec lipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml "/>
</launchConfiguration>
############################################################ ###############


Its important to add j2ee.jar to the externalTool-configuration

1. Set a jsdk e.g. 1.4.2
2. Make a new e.g EJB-Project, choose an server, set xdoclet (3.1.2)
3. -> now a new project with ejb-jar.xml and other specific files were
generated.
The ejb-jar.xml is not valid. Nevertheless, in this situation it is
correct.After the generation of the other files with tempAnt.xml you will
find now a lot of new rows with several ejb-specific information in the
ejb-jar.xml.
Now the file is valid.

If there a problem with the generation you will get detailed information
in the console-view.

####################### Log on console view while execute tempAnt.xml
###################
Buildfile: C:\Dokumente und Einstellungen\JavaDev\Eigene
Dateien\Projekte\WORKSPACES\Lomboz\.metadata\.plugins\org.ec lipse.jst.j2ee.ejb.annotations.xdoclet\tempAnt.xml
init:
ejbdoclet:
[ejbdoclet] (XDocletMain.start 47 ) Running
<dataobject/>
[ejbdoclet] (XDocletMain.start 47 ) Running <dao/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<valueobject/>
[ejbdoclet] (XDocletMain.start 47 ) Running
<utilobject/>
[ejbdoclet] Generating Util class for 'test.MyBean'.

......... .
##########################################

Some combinations of jsdk ( jsdk1.4.2.x, 1.5.x) , eclipse-versions ( 3.1,
3.11, 3.1M1, 3.1M2, Lomboz, Jboss 1.5 r1), webtools (0.7, 0.71, 1.0M8,
spezific Lomboz extensions, Jboss-extensions .. .) and some other dark
horses does not work properly for specific circumstances.


My working configuration:

-WinXP prof.
-Eclipse SDK
Version: 3.1.0
Build id: I20050811-1530 -> 3.1M1
-wt1.0 M8 and the required gef, sdk, emf .. see
http://download.eclipse.org/webtools/downloads/drops/S-1.0M8 -200509230840/
-Geronimodriver 0.5 see http://geronimo.apache.org/devtools/index.html
-jsdk 1.4.2_09
-xdoclet 3.2.1
-Jboss 3.2.3
-Geronimo 1.0M5


Regards Peter



> I'm having the same problem using Eclipse 3.1 and WTP 0.7 Final. I think
> it
> has something do with using JDK 5.0 with Xdoclet 1.2.3. Even turning the
> validation off doesn't help. No bean classes are been generated, nor any
> error messages are displayed.
>
> Does anyone know what the problem is?
>
>
>
>
>
>
> "Peter Alexander" <alexander.wiesloch@freenet.de> wrote in message
> news:op.szhbi4zgt9ut3i@winxp...
>> Hello,
>>
>> I tried to create und deploy a simple EJB with several Eclipse and WT
>> versions
>> ( http://www.eclipse.org/webtools/community/tutorials/ejbtutor ial/buildingejbs.html).
>> My current installation is the Lomboz-Bundle
>> lomboz-eclipse-emf-gef-jem-3.1RC2.zip.
>>
>> My annotation provider is Xdoclet 1.2.3. In all cases an error occurred
>> while generating the deployment descriptor:
>> --------Error------------
>> The content of element type "ejb-jar" must match
>> " (description?,display-name?,small-icon?,large-icon?,enterpri se-beans,relationships?,assembly-descriptor?,ejb-client-jar? ) ".
>> -------------------------
>> Furthermore the other classes were never generated. (TigerHome,
>> TigerLocal
>> .. )
>>
>> further particulars:
>> Win XP
>> jsdk 1.4.2_09
>>
>> Thank you for your help
>> Peter
>
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:weblogin vs tomcat
Next Topic:WSDL validate errors
Goto Forum:
  


Current Time: Fri Mar 29 06:10:34 GMT 2024

Powered by FUDForum. Page generated in 0.03378 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top