Erro ao iniciar o jboss

2 respostas
J
Oi como vão!

Eu criei um ejb User usei o Ant e comentários XDoclet para gerar o arquivo .jar e criar o arquivo descritor. Na inicialização do JBoss-3.2.3 default ou all, da o seguinte erro:

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>

Se alguem puder ajudar ficarei muito grato.

2 Respostas

A

Provavelmente os xml’s gerados pelo xdoclet e os xml’s q vc deve ter criado não estão corretos. Analise-os ou coloque-os no forum para que possamos analisa-lo.

J
Obrigado pelo retorno.

<img src="//https://cdn.jsdelivr.net/gh/twitter/twemoji@14/assets/72x72/s.pngmiley.png?v=5" title=":smiley:" class="emoji" alt=":smiley:">

----------------------------------  EJB-JAR---------------------------------------

<?xml version=“1.0” encoding=“UTF-8”?>

<!DOCTYPE ejb-jar PUBLIC “-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN” “<a href="http://java.sun.com/dtd/ejb-jar_2_0.dtd">http://java.sun.com/dtd/ejb-jar_2_0.dtd</a>”>

<ejb-jar >

<description><![CDATA[Sem Descrição.]]></description>
<display-name>Gerado pelo XDoclet</display-name>

<enterprise-beans>

&lt;!-- Session Beans --&gt;
 &lt;!--
   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 &lt;session&gt;&lt;/session&gt; markup for those beans.
 --&gt;

  &lt;!-- Entity Beans --&gt;
  &lt;entity &gt;
     &lt;description&gt;&lt;![CDATA[Representa o objeto de negocio User]]&gt;&lt;/description&gt;
     &lt;display-name&gt;User&lt;/display-name&gt;

     &lt;ejb-name&gt;User&lt;/ejb-name&gt;

     &lt;home&gt;teste.business.identity.UserHome&lt;/home&gt;
     &lt;remote&gt;teste.business.identity.User&lt;/remote&gt;
     &lt;local-home&gt;teste.business.identity.UserLocalHome&lt;/local-home&gt;
     &lt;local&gt;teste.business.identity.UserLocal&lt;/local&gt;

     &lt;ejb-class&gt;teste.business.identity.User&lt;/ejb-class&gt;
     &lt;persistence-type&gt;Container&lt;/persistence-type&gt;
     &lt;prim-key-class&gt;java.lang.Integer&lt;/prim-key-class&gt;
     &lt;reentrant&gt;False&lt;/reentrant&gt;
     &lt;cmp-version&gt;2.x&lt;/cmp-version&gt;
     &lt;abstract-schema-name&gt;User&lt;/abstract-schema-name&gt;
     &lt;cmp-field &gt;
        &lt;description&gt;&lt;![CDATA[]]&gt;&lt;/description&gt;
        &lt;field-name&gt;id&lt;/field-name&gt;
     &lt;/cmp-field&gt;
     &lt;cmp-field &gt;
        &lt;description&gt;&lt;![CDATA[]]&gt;&lt;/description&gt;
        &lt;field-name&gt;login&lt;/field-name&gt;
     &lt;/cmp-field&gt;
     &lt;cmp-field &gt;
        &lt;description&gt;&lt;![CDATA[]]&gt;&lt;/description&gt;
        &lt;field-name&gt;password&lt;/field-name&gt;
     &lt;/cmp-field&gt;
     &lt;primkey-field&gt;id&lt;/primkey-field&gt;

     &lt;query&gt;
        &lt;query-method&gt;
           &lt;method-name&gt;findByLogin&lt;/method-name&gt;
           &lt;method-params&gt;
              &lt;method-param&gt;java.lang.String&lt;/method-param&gt;
           &lt;/method-params&gt;
        &lt;/query-method&gt;
        &lt;ejb-ql&gt;&lt;![CDATA[select object (user) from user where login= ?1]]&gt;&lt;/ejb-ql&gt;
     &lt;/query&gt;
  &lt;!-- Write a file named ejb-finders-User.xml if you want to define extra finders. --&gt;
  &lt;/entity&gt;

 &lt;!--
   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 &lt;entity&gt;&lt;/entity&gt; markup for those beans.
 --&gt;

  &lt;!-- Message Driven Beans --&gt;
 &lt;!--
   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 &lt;message-driven&gt;&lt;/message-driven&gt; markup for those beans.
 --&gt;

</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>

&lt;!--
   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 &lt;session&gt;&lt;/session&gt;, &lt;entity&gt;&lt;/entity&gt; and &lt;message-driven&gt;&lt;/message-driven&gt;
   markup for those beans.
 --&gt;

  &lt;entity&gt;
     &lt;ejb-name&gt;User&lt;/ejb-name&gt;
     &lt;jndi-name&gt;User&lt;/jndi-name&gt;
     &lt;local-jndi-name&gt;ejb/User&lt;/local-jndi-name&gt;

  &lt;/entity&gt;

</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>

&lt;!--
   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 &lt;entity&gt;&lt;/entity&gt; markup for those beans.
 --&gt;

  &lt;entity&gt;
     &lt;ejb-name&gt;User&lt;/ejb-name&gt;
	 &lt;datasource&gt;java:/MS_SQL_DS&lt;/datasource&gt;
	 &lt;datasource-mapping&gt;sqlServer&lt;/datasource-mapping&gt;
     &lt;create-table&gt;true&lt;/create-table&gt;
     &lt;remove-table&gt;false&lt;/remove-table&gt;

     &lt;cmp-field&gt;
        &lt;field-name&gt;id&lt;/field-name&gt;

    &lt;/cmp-field&gt;
     &lt;cmp-field&gt;
        &lt;field-name&gt;login&lt;/field-name&gt;

    &lt;/cmp-field&gt;
     &lt;cmp-field&gt;
        &lt;field-name&gt;password&lt;/field-name&gt;

    &lt;/cmp-field&gt;

  &lt;/entity&gt;

</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}…”/>

&lt;ejbdoclet destdir="${dir.bin}" ejbspec="2.0" 
	excludedtags="@version, @author, @param"&gt;
	
	&lt;fileset dir="."&gt;
		&lt;include name="**/*.java"/&gt;
	&lt;/fileset&gt;
	
	&lt;homeinterface/&gt;
	&lt;localhomeinterface pattern="{0}LocalHome" destdir="."/&gt;
	&lt;remoteinterface/&gt;
	&lt;localinterface pattern="{0}Local" destdir="."/&gt;
	&lt;deploymentdescriptor destdir="teste/business/identity/META-INF"/&gt;
	&lt;jboss destdir="teste/business/identity/META-INF" version="3.0" /&gt;
            &lt;valueobject/&gt;
             
&lt;/ejbdoclet&gt; 
    &lt;antcall target="compile"/&gt;
</target>

<target description=“Compila as classes” name=“compile”>

<javac classpathref=“jboss.client.class.path” destdir="." includes="<em>.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="</em>.class"/>

<include name=“META-INF/*”/>

</jar>

</target>

</project>
Criado 12 de fevereiro de 2004
Ultima resposta 13 de fev. de 2004
Respostas 2
Participantes 2