Someone helpfully tried to make the deployer errors less annoyingly
verbose but this is the unfortunate result... they are now meaningless
and useless. I believe there is a switch or flag somewhere to turn
stack traces back on, but I don't know where. You should also look in
all the logs in geronimo-1.0-SNAPSHOT/var/log to see if the trace is
logged somewhere with some useful information about where the error is
occurring.
david jencks
On Apr 14, 2005, at 11:09 AM, Katia Aresti Gonzalez wrote:
okk...
Another error... hehe This is the new openejb-jar.xml im using now.
If i understand well, is what you said me to do...
<?xml version="1.0"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar"
configId="GeronimoTestEJB"
parentId="org/apache/geronimo/Server">
<cmp-connection-factory>
��� <resource-link>SystemDatasource</resource-link>
</cmp-connection-factory>
<enterprise-beans>
<entity>
��
�� <ejb-name>CabinEJB</ejb-name>
�� <table-name>CabinTable</table-name>
��
�� �<cmp-field-mapping>
������� �<cmp-field-name>id</cmp-field-name>
������� �<table-column>col_id</table-column>
�</cmp-field-mapping>
�
�<cmp-field-mapping>
�������� <cmp-field-name>name</cmp-field-name>
��<table-column>col_name</table-column>
�</cmp-field-mapping>
�
�<cmp-field-mapping>
������� �<cmp-field-name>deckLevel</cmp-field-name>
��<table-column>col_deckLevel</table-column>
�</cmp-field-mapping>
�
�<cmp-field-mapping>
�������� <cmp-field-name>shipId</cmp-field-name>
��<table-column>col_shipId</table-column>
�</cmp-field-mapping>
�
�<cmp-field-mapping>
��<cmp-field-name>bedCount</cmp-field-name>
��<table-column>col_bedCount</table-column>
��� �</cmp-field-mapping>
�
�
�� <resource-ref>
��� �<ref-name>jdbc/titanDB</ref-name>
�<resource-link>SystemDatasource</resource-link>���
��� </resource-ref>
� �
</entity>�
<entity>
�� <ejb-name>ShipEJB</ejb-name>
���� <resource-ref>
��� �<ref-name>jdbc/titanDB</ref-name>
�<resource-link>SystemDatasource</resource-link>���
��� </resource-ref>
� �
</entity>
<session>
�� <ejb-name>TravelAgentEJB</ejb-name>
</session>
</enterprise-beans>
���
</openejb-jar>
The error when deploying....
C:\gero>java -jar bin/deployer.jar --user system --password manager
deploy d:/cm
p/build/dist/prueba-ejbs.jar
Deployment failed
� Server reports: org.apache.geronimo.common.DeploymentException:
Unable to init
ialize EJBContainer GBean: ejbName [CabinEJB]
������� Unable to initialize EJBContainer GBean: ejbName [CabinEJB]
������� -1
This is a bit desperate xD thank youuu
Katia
>From: David Jencks <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Deployment fail at persistent EJB
>Date: Thu, 14 Apr 2005 10:54:39 -0700
>
>those are all the xml files you should need.��I think the
>resource-ref��info needs to be with the BMP bean: if I understand
>your xml it is��currently with the CMP bean where it is not used.
>
>thanks
>david jencks
>
>On Apr 14, 2005, at 10:38 AM, Katia Aresti Gonzalez wrote:
>
>>David,
>>
>>���Ive changed to systemDataSource, but i still have problems. Ok,
>>Im��using the openejb-jar.xml, and the ejb-jar.xml. Do I need
>>another��deployment descriptor, or change anythig (un deply and
>>redeploy), as��well as I do in JMS to add the tophic in the
>>system-jms-plan.xml?
>>
>>Thanks a lot! Katia
>>
>>�
>>
>>C:\gero>java -jar bin/deployer.jar --user system --password manager
>>��deploy d:/cm
>>p/build/dist/prueba-ejbs.jar
>>Deployment failed
>>� Server reports: org.apache.geronimo.common.DeploymentException:��
>>Unknown or amb
>>iguous resource name query:��
>>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,* match
>>��count: 0
>>������� Unknown or ambiguous resource name query:��
>>geronimo.server:J2EEServer=ger
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
jd
>>bc/titanD
>>B,* match count: 0
>>
>>
>>
>>�
>> >From: David Jencks <[EMAIL PROTECTED]>
>>��>Reply-To: [EMAIL PROTECTED]
>>��>To: [EMAIL PROTECTED]
>>��>Subject: Re: Deployment fail at persistent EJB
>>��>Date: Thu, 14 Apr 2005 10:31:01 -0700
>>��>
>>��>Sorry, it looks like the set of plans in the default assembly
>>has��
>>��>turned into a nearly useless collection of vaguely plausible but
>>��>mostly��incorrect junk.
>>��>
>>��>Please pardon my frustration.
>>��>
>>��>Try SystemDatasource instead of DefaultDatasource.
>>��>
>>��>david jencks
>>��>
>>��>On Apr 14, 2005, at 10:21 AM, Katia Aresti Gonzalez wrote:
>>��>
>>��>>Hello David!!!!
>>��>>
>>��>>Ive done what you say and this is what i get now:
>>��>>
>>��>>C:\gero>java -jar bin/deployer.jar --user system --password
>>manager
>>��>>��deploy d:/cm
>>��>>p/build/dist/prueba-ejbs.jar
>>��>>Deployment failed
>>��>>� Server reports:
>>org.apache.geronimo.common.DeploymentException:��
>>��>>Unable to init
>>��>>ialize EJBModule GBean
>>��>>������� Unable to initialize EJBModule GBean
>>��>>������� Unknown or ambiguous resource name query:��
>>��>>geronimo.server:J2EEServer=ger
>>��
>>
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
>>De
>>��>>faultData
>>��>>source,* match count: 0
>>��>>
>>��>>This the openejb-jar.xml:
>>��>>
>>��>><?xml version="1.0"?>
>>��>>
>>��>><openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar"
>>��>>configId="GeronimoTestEJB"
>>��>>��parentId="org/apache/geronimo/Server">
>>��>>
>>��>><cmp-connection-factory>
>>��>>��� <resource-link>DefaultDatasource</resource-link>
>>��>></cmp-connection-factory>
>>��>>
>>��>>
>>��>>��<enterprise-beans>
>>��>><entity>
>>��>>��
>>��>>�� <ejb-name>CabinEJB</ejb-name>
>>��>>�� <table-name>CabinTable</table-name>
>>��>>��
>>��>>�� �<cmp-field-mapping>
>>��>>������� �<cmp-field-name>id</cmp-field-name>
>>��>>������� �<table-column>col_id</table-column>
>>��>>�</cmp-field-mapping>
>>��>>�
>>��>>�<cmp-field-mapping>
>>��>>�������� <cmp-field-name>name</cmp-field-name>
>>��>>��<table-column>col_name</table-column>
>>��>>�</cmp-field-mapping>
>>��>>�
>>��>>�<cmp-field-mapping>
>>��>>������� �<cmp-field-name>deckLevel</cmp-field-name>
>>��>>��<table-column>col_deckLevel</table-column>
>>��>>�</cmp-field-mapping>
>>��>>�
>>��>>�<cmp-field-mapping>
>>��>>�������� <cmp-field-name>shipId</cmp-field-name>
>>��>>��<table-column>col_shipId</table-column>
>>��>>�</cmp-field-mapping>
>>��>>�
>>��>>�<cmp-field-mapping>
>>��>>��<cmp-field-name>bedCount</cmp-field-name>
>>��>>��<table-column>col_bedCount</table-column>
>>��>>��� �</cmp-field-mapping>
>>��>>�
>>��>>�
>>��>>�� �<resource-ref>
>>��>>��� ��<ref-name>jdbc/titanDB</ref-name>
>>��>>����<resource-link>DefaultDatasource</resource-link>���
>>��>>��������� </resource-ref>
>>��>>��
>>��>></entity>�
>>��>>
>>��>>
>>��>>��<entity>
>>��>>�� <ejb-name>ShipEJB</ejb-name>
>>��>></entity>
>>��>>
>>��>>��<session>
>>��>>�� <ejb-name>TravelAgentEJB</ejb-name>
>>��>></session>
>>��>>
>>��>>��</enterprise-beans>
>>��>>���
>>��>></openejb-jar>
>>��>>
>>��>>��Any guess?? Thank you very much!!!!
>>��>>
>>��>>��Katia
>>��>> >From: David Jencks <[EMAIL PROTECTED]>
>>��>>��>Reply-To: [EMAIL PROTECTED]
>>��>>��>To: [EMAIL PROTECTED]
>>��>>��>Subject: Re: Deployment fail at persistent EJB
>>��>>��>Date: Thu, 14 Apr 2005 08:59:40 -0700
>>��>>��>
>>��>>��>I can't figure out how you got that error from the xml you
>>��>>show.��
>>��>>��>Can��you send the stack trace?
>>��>>��>
>>��>>��>Also, I think you can use simpler resource-refs:
>>��>>��>
>>��>>��><resource-ref>
>>��>>��>��� <ref-name>jdbc/titanDB</ref-name>
>>��>>��>����<resource-link>DefaultDatasource</resource-link>���
>>��>>��>�</resource-ref>
>>��>>��>
>>��>>��>and
>>��>>��><cmp-connection-factory>
>>��>>��>���� <resource-link>DefaultDatasource</resource-link>
>>��>>��><cmp-connection-factory>
>>��>>��>
>>��>>��>thanks
>>��>>��>david jencks
>>��>>��>
>>��>>��>�
>>��>>��>On Apr 14, 2005, at 2:45 AM, Katia Aresti Gonzalez wrote:
>>��>>��>
>>��>>��>>Hello Gianny!!!!
>>��>>��>>
>>��>>��>>I did what you said. This is my new openejb-jar.xml. I said
>>��>>��>>somethig��wrong, ShipEJB is a BMP, is this supported?
>>Anyway,
>>��>>my
>>��>>��>>problem is to��fix cmp, because its what i realy need now
>>:-).
>>��>>I
>>��>>��>>paste the error��deploying just after the descriptor.
>>��>>��>>
>>��>>��>><?xml version="1.0"?>
>>��>>��>>
>>��>>��>><openejb-jar
>>xmlns="http://www.openejb.org/xml/ns/openejb-jar"
>>��>>��>>configId="GeronimoTestEJB"
>>��>>��>>��parentId="org/apache/geronimo/Server">
>>��>>��>>
>>��>>��>><cmp-connection-factory>
>>��>>��>>������� <application>null</application>
>>��>>��>>�������
>><module>org/apache/geronimo/DefaultDatabase</module>
>>��>>��>>������� <name>DefaultDatasource</name>
>>��>>��>></cmp-connection-factory>
>>��>>��>>
>>��>>��>><enterprise-beans>
>>��>>��>><entity>
>>��>>��>>��
>>��>>��>>�� <ejb-name>CabinEJB</ejb-name>
>>��>>��>>�� <table-name>CabinTable</table-name>
>>��>>��>>��
>>��>>��>>�� �<cmp-field-mapping>
>>��>>��>>������� �<cmp-field-name>id</cmp-field-name>
>>��>>��>>������� �<table-column>col_id</table-column>
>>��>>��>>�</cmp-field-mapping>
>>��>>��>>�
>>��>>��>>�<cmp-field-mapping>
>>��>>��>>�������� <cmp-field-name>name</cmp-field-name>
>>��>>��>>��<table-column>col_name</table-column>
>>��>>��>>�</cmp-field-mapping>
>>��>>��>>�
>>��>>��>>�<cmp-field-mapping>
>>��>>��>>������� �<cmp-field-name>deckLevel</cmp-field-name>
>>��>>��>>��<table-column>col_deckLevel</table-column>
>>��>>��>>�</cmp-field-mapping>
>>��>>��>>�
>>��>>��>>�<cmp-field-mapping>
>>��>>��>>�������� <cmp-field-name>shipId</cmp-field-name>
>>��>>��>>��<table-column>col_shipId</table-column>
>>��>>��>>�</cmp-field-mapping>
>>��>>��>>�
>>��>>��>>�<cmp-field-mapping>
>>��>>��>>��<cmp-field-name>bedCount</cmp-field-name>
>>��>>��>>��<table-column>col_bedCount</table-column>
>>��>>��>>��� �</cmp-field-mapping>
>>��>>��>>�
>>��>>��>>�<resource-ref>
>>��>>��>>��� <ref-name>jdbc/titanDB</ref-name>
>>��>>��>>��<application>null</application>
>>��>>��>>����������
>><module>org/apache/geronimo/DefaultDatabase</module>
>>��>>��>>��������� �<name>DefaultDatasource</name>���
>>��>>��>>������ �</resource-ref>
>>��>>��>>��
>>��>>��>></entity>�
>>��>>��>>
>>��>>��>>��<entity>
>>��>>��>>�� <ejb-name>ShipEJB</ejb-name>
>>��>>��>></entity>
>>��>>��>>
>>��>>��>>��<session>
>>��>>��>>�� <ejb-name>TravelAgentEJB</ejb-name>
>>��>>��>></session>
>>��>>��>>
>>��>>��>>��</enterprise-beans>
>>��>>��>>���
>>��>>��>></openejb-jar>
>>��>>��>>
>>��>>��>>Error---->
>>��>>��>>
>>��>>��>>C:\gero>java -jar bin/deployer.jar --user system --password
>>��>>manager
>>��>>��>>��deploy d:/cm
>>��>>��>>p/build/dist/prueba-ejbs.jar
>>��>>��>>Deployment failed
>>��>>��>>� Server reports:
>>��>>org.apache.geronimo.common.DeploymentException:��
>>��>>��>>Unknown or amb
>>��>>��>>iguous resource name query:��
>>��>>��>>geronimo.server:J2EEServer=geronimo,J2EEApplication=
>>��
>> >>��>>null,j2eeType=JCAManagedConnectionFactory,name=jdbc/titanDB,*
>>��>>match
>>��>>��>>��count: 0
>>��>>��>>������� Unknown or ambiguous resource name query:��
>>��>>��>>geronimo.server:J2EEServer=ger
>>��>>��
>>��>>��
>>
>>onimo,J2EEApplication=null,j2eeType=JCAManagedConnectionFactory,name=
>>��>>jd
>>��>>��>>bc/titanD
>>��>>��>>B,* match count: 0
>>��>>��>>
>>��>>��>>�
>>��>>��>>
>>��>>��>>Thanks a los for four help!!!!!!!!!!!!!!!!!!!!!!!!!!!
>>��>>��>>
>>��>>��>>Katia
>>��>>��>>
>>��>>��>>
>>��>>��>>�
>>��>>��>> >From: Gianny Damour <[EMAIL PROTECTED]>
>>��>>��>>��>Reply-To: [EMAIL PROTECTED]
>>��>>��>>��>To: [EMAIL PROTECTED]
>>��>>��>>��>Subject: Re: Deployment fail at persistent EJB
>>��>>��>>��>Date: Wed, 13 Apr 2005 09:27:08 +1000
>>��>>��>>��>
>>��>>��>>��>Katia,
>>��>>��>>��>
>>��>>��>>��>The last version of Geronimo, built from source,
>>supports
>>��>>CMP.
>>��>>��>>��>
>>��>>��>>��>Also, could you please provide the error message that
>>you
>>��>>get
>>��>>��>>during
>>��>>��>>��>the deployment process?
>>��>>��>>��>
>>��>>��>>��>I comment your openejb-jar.xml deployment descriptor
>>further
>>��>>��>>down.
>>��>>��>>��>
>>��>>��>>��>Thanks,
>>��>>��>>��>Gianny
>>��>>��>>��>
>>��>>��>>��>On 12/04/2005 8:20 PM, Katia Aresti Gonzalez wrote:
>>��>>��>>��>
>>��>>��>>��>>Hello again David!!!!
>>��>>��>>��>> %
_________________________________________________________________
Acepta el reto MSN Premium: Correos m�s divertidos con fotos y textos
incre�bles en MSN Premium. Desc�rgalo y pru�balo 2 meses gratis.
http://join.msn.com?
XAPID=1697&DI=1055&HL=Footer_mailsenviados_correosmasdivertidos