This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

error initializing Jboss-3.2.3

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello srs!
I create a ejb name User,(Ant and XDoclet) to to generate the files .jar and descriptor. when JBoss-3.2.3 default ou all is started, see
the error:
16:25:50,726 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@6b1ed82d { url=file:/E:/jboss/jboss-3.2.3/server/all/deploy/user.jar }
deployer: org.jboss.ejb.EJBDeployer@e53220
status: Deployment FAILED reason: Verification of Enterprise Beans failed, see above for error messages.
state: FAILED
watch: file:/E:/jboss/jboss-3.2.3/server/all/deploy/user.jar
lastDeployed: 1076613942344
lastModified: 1076613942193
mbeans:
]MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
<none>
--------------------------------------------------------------------------------------- SOURCE FILES XML------------------------------------------------------------------------------
---------------------------------- EJB-JAR---------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
<display-name>Create by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<!--
To add session beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called session-beans.xml that contains
the <session></session> markup for those beans.
-->
<!-- Entity Beans -->
<entity >
<display-name>User</display-name>
<ejb-name>User</ejb-name>
<home>teste.business.identity.UserHome</home>
<remote>teste.business.identity.User</remote>
<local-home>teste.business.identity.UserLocalHome</local-home>
<local>teste.business.identity.UserLocal</local>
<ejb-class>teste.business.identity.User</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>User</abstract-schema-name>
<cmp-field >
<description><![CDATA[]]></description>
<field-name>id</field-name>
</cmp-field>
<cmp-field >
<description><![CDATA[]]></description>
<field-name>login</field-name>
</cmp-field>
<cmp-field >
<description><![CDATA[]]></description>
<field-name>password</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<query>
<query-method>
<method-name>findByLogin</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[select object (user) from user where login= ?1]]></ejb-ql>
</query>
<!-- Write a file named ejb-finders-User.xml if you want to define extra finders. -->
</entity>
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called entity-beans.xml that contains
the <entity></entity> markup for those beans.
-->
<!-- Message Driven Beans -->
<!--
To add message driven beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called message-driven-beans.xml that contains
the <message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
<!-- Relationships -->
<!-- Assembly Descriptor -->
<assembly-descriptor >
<!--
To add additional assembly descriptor info here, add a file to your
XDoclet merge directory called assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->
<!-- finder permissions -->
<!-- transactions -->
<!-- finder transactions -->
</assembly-descriptor>
</ejb-jar>
----------------------------------- JBOSS -----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
<jboss>
<enterprise-beans>
<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jboss-beans.xml that contains
the <session></session>, <entity></entity> and <message-driven></message-driven>
markup for those beans.
-->
<entity>
<ejb-name>User</ejb-name>
<jndi-name>User</jndi-name>
<local-jndi-name>ejb/User</local-jndi-name>
</entity>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>

------------------------------------ JBOSSCMP-JDBC-----------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 3.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd">
<jbosscmp-jdbc>
<defaults>
</defaults>
<enterprise-beans>
<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml
that contains the <entity></entity> markup for those beans.
-->
<entity>
<ejb-name>User</ejb-name>
<datasource>java:/MS_SQL_DS</datasource>
<datasource-mapping>sqlServer</datasource-mapping>
<create-table>true</create-table>
<remove-table>false</remove-table>
<cmp-field>
<field-name>id</field-name>
</cmp-field>
<cmp-field>
<field-name>login</field-name>
</cmp-field>
<cmp-field>
<field-name>password</field-name>
</cmp-field>
</entity>
</enterprise-beans>
</jbosscmp-jdbc>
------------------------------------------- build.xml -------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="Main" name="testeApplication">
<property name="dir.src" location="."/>
<property name="dir.bin" location="."/>

<!--Define o classpath do XDoclet-->
<path id="xdoclet.class.path">
<fileset dir="e:xdocletxdoclet-1.2lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="e:j2sdkee1.3.1lib">
<include name="j2ee.jar"/>
</fileset>
</path>
<path id="jboss.client.class.path">
<fileset dir="E:/jboss/jboss-3.2.3/client">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="project.class.path">
<path refid="jboss.client.class.path"/>
<path refid="xdoclet.class.path"/>
</path>
<!--Define a tarefa do XDoclet-->
<target name="defXdoclet" description="Define a tarefa do XDoclet">
<taskdef classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.class.path" name="ejbdoclet"/>
</target>
<!--Tarefa Principal-->
<target name="Main" depends="defXdoclet">
<echo message="Utilizando ${basedir}..."/>
<ejbdoclet destdir="${dir.bin}" ejbspec="2.0"
excludedtags="@version, @author, @param">
<fileset dir=".">
<include name="**/*.java"/>
</fileset>
<homeinterface/>
<localhomeinterface pattern="{0}LocalHome" destdir="."/>
<remoteinterface/>
<localinterface pattern="{0}Local" destdir="."/>
<deploymentdescriptor destdir="teste/business/identity/META-INF"/>
<jboss destdir="teste/business/identity/META-INF" version="3.0" />
<valueobject/>
</ejbdoclet>
<antcall target="compile"/>
</target>
<target description="Compila as classes" name="compile">
<javac classpathref="jboss.client.class.path" destdir="." includes="*.java" srcdir="teste/business/identity"/>
<antcall target="jar"/>
</target>
<target description="Gera o arquivo de instala��o" name="jar">
<jar basedir="teste/business/identity" destfile="e:/jboss/jboss-3.2.3/server/all/deploy/user.jar">
<include name="*.class"/>
<include name="META-INF/*"/>
</jar>
</target>
</project>


thanks for help!
 
I knew that guy would be trouble! Thanks tiny ad!
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!