geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iñigo <...@nodo50.org>
Subject Re: deploy a client application
Date Wed, 31 Aug 2005 18:46:13 GMT
Well, now I get this error. The application starts running and it is 
accesing the pool connection deployed in Geronimo.

C:\geronimo-1.0-M4>java -jar bin\client.jar ejemplo/musica
20:42:58,862 INFO  [LocalConfigStore:config-store] Loaded Configuration 
geronimo
.config:name="ejemplo/musica"
20:42:58,892 INFO  [LocalConfigStore:config-store] Loaded Configuration 
geronimo
.config:name="org/apache/geronimo/Client"
20:42:59,212 INFO  [Configuration] Started configuration 
org/apache/geronimo/Cli
ent
20:42:59,863 INFO  [Configuration] Started configuration ejemplo/musica
20:43:00,244 INFO  [CommandLine] Server startup completed
Obtiene bien los grupos: 2
Tamanyo lista: 2
20:43:04,840 INFO  [CommandLine] Server shutdown begun
20:43:04,860 INFO  [Configuration] Stopping configuration ejemplo/musica
20:43:04,910 ERROR [GBeanInstance] GBeanInstance should already be 
stopped befor
e die() is called: 
objectName=geronimo.client:name=tranql/rars/tranql-connector-
1.0-20050716.rar,J2EEServer=client,J2EEApplication=client-application,j2eeType=R
esourceAdapterModule state=starting
20:43:04,910 ERROR [GBeanInstance] GBeanInstance should already be 
stopped befor
e die() is called: 
objectName=geronimo.client:JCAResource=tranql/rars/tranql-con
nector-1.0-20050716.rar,name=MySQL,J2EEServer=client,J2EEApplication=client-appl
ication,j2eeType=JCAConnectionFactory state=starting
20:43:05,431 INFO  [Configuration] Stopping configuration 
org/apache/geronimo/Cl
ient
20:43:05,511 INFO  [Configuration] Stopping configuration 
org/apache/geronimo/Cl
ientSystem
20:43:05,521 INFO  [BasicKernel] Starting kernel shutdown
20:43:05,521 INFO  [BasicKernel] Kernel shutdown complete
20:43:05,521 INFO  [CommandLine] Client shutdown completed

David Jencks escribió:

> The immediate cause of the problem is that either you should look up :
>
>> DataSource ds = (DataSource)ctx.lookup("java:comp/env/MySQL");
>
>
> or your resource-ref in application-client.xml should look like:
>
>>    <resource-ref>
>>        <res-ref-name>jdbc/DataSource</res-ref-name>
>>        <res-type>javax.sql.DataSource</res-type>
>>        <res-auth>Container</res-auth>
>>    </resource-ref>
>
>
> After that, since you don't show your entire plan I don't know what 
> else you have or are missing.  However, you need to include an 
> "resource" element in the deployment plan that includes the entire 
> connector plan for the datasource.  If the connection-factory-name 
> elements is jdbc/DataSource (or MySQL, depending on your choice 
> above), you won't need a resource-ref element in the client plan.
>
> thanks
> david jencks
>
>
>


Mime
View raw message