geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: deploy a client application
Date Wed, 31 Aug 2005 18:59:31 GMT
there should be a client.log in geronimo-1.0-SNAPSHOT/var/log

I suspect some error is preventing all the gbeans from starting.  You  
might be able to find out what is happening by looking at this log and  
in particular looking for missing dependencies or references.  They  
usually show up in lines like this:

22:37:35,432 DEBUG [GBeanSingleReference] Waiting to start  
geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/ 
RuntimeDeployer,J2EEServer=geronimo,j2eeType=ModuleBuilder,name=AppClien 
tBuilder because no targets are running for reference  
ResourceReferenceBuilder matching the patternspatterns  
geronimo.server:J2EEApplication=null,J2EEModule=org/apache/geronimo/ 
RuntimeDeployer,J2EEServer=geronimo,j2eeType=ModuleBuilder,name=Connecto 
rBuilder


Most of these are normal and the gbean eventually starts when all its  
references have started, but you can look at these and find non-started  
gbeans.

david jencks

On Aug 31, 2005, at 11:46 AM, Iñigo wrote:

> 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