Re: inverse-classloading error

2008-04-21 Thread bgbraga


djencks wrote:
 
 I'm having trouble distinguishing between this and the previous  
 error.  Are you sure this isn't leftover in the log from a previous  
 failed run?  You might want to start with a fresh copy of geronimo  
 just to be certain you are seeing only the most up to date problems :-)
 
 Could you show the environment element from your geronimo plan?
 


I clean the geronimo.log and installed WAR again.

At the same time the Geronimo console displays the message:
The application was successfully deployed.
The application was successfully started

and geronimo.log: (same time)
-
13:51:47,763 WARN  [ConfigurationUtil] Could not load gbean
default/globalsafe/1208796686919/war?J2EEApplication=null,j2eeType=WebModule,name=default/globalsafe/1208796686919/war
org.apache.geronimo.gbean.InvalidConfigurationException: Getter return type
in wrong classloader: type: interface javax.transaction.UserTransaction
wanted in classloader:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=default/globalsafe/1208796686919/war] actual:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=org.apache.geronimo.configs/jee-specs/2.0.2/car]
at
org.apache.geronimo.gbean.runtime.GBeanAttribute.init(GBeanAttribute.java:241)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.init(GBeanInstance.java:245)
at
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:354)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:433)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(generated)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
at 
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$dbf181f0.startConfiguration(generated)
at
org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
at java.lang.Thread.run(Thread.java:619)
-


geronimo-web.xml:
-
?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;
xmlns:naming=http://geronimo.apache.org/xml/ns/naming-1.2;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
 
environment  
dependencies
dependency
groupIdorg.apache.geronimo.configs/groupId
artifactIdjavamail/artifactId
version2.0.2/version
typecar/type
/dependency
dependency
groupIdconsole.dbpool/groupId
artifactIdjdbc%2FGlobalSafeDS/artifactId
/dependency
/dependencies

non-overridable-classes
filterjavax.transaction./filter
/non-overridable-classes
inverse-classloading/
/environment

context-root/globalsafe/context-root

resource-ref
!-- Used in web.xml --
ref-namemail/MailSession/ref-name
!-- Default Geronimo mail session --
resource-linkmail/MailSession/resource-link
/resource-ref
resource-ref
ref-namejdbc/GlobalSafeDS/ref-name
resource-linkjdbc/GlobalSafeDS/resource-link
/resource-ref
/web-app
-


An important information:
If I remove inverse-classloading and non-overridable-classes my app started
and run!!
But I have some problems with the common-lang of geronimo which is version
2.0, and I need the 2.1.

If I use the hidden-classes my application work without any error:
hidden-classes
  filterorg.apache.commons/filter
/hidden-classes

But I would like to do the inverse ... I want 

Re: inverse-classloading error

2008-04-21 Thread bgbraga


djencks wrote:
 
 Out of curiousity, what does your app do if there is no transaction  
 manager available in the tomcat environment?
 

Ok :)
I use Spring + Hibernate 3 on my app and these frameworks that use the class
TransactionManager.

Complete trace in the tomcat 6 (without WEB-INF\lib\jta.jar):
-
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'hibernateSessions' defined in ServletContext resource
[/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed;
nested exception is java.lang.NoClassDefFoundError:
javax/transaction/TransactionManager
java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at java.beans.Introspector$1.run(Introspector.java:1272)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1270)
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1136)
at java.beans.Introspector.getBeanInfo(Introspector.java:387)
at java.beans.Introspector.getBeanInfo(Introspector.java:159)
at
org.springframework.beans.CachedIntrospectionResults.init(CachedIntrospectionResults.java:150)
at
org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:87)
at
org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanWrapperImpl.java:237)
at
org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:195)
at
org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:179)
at
org.springframework.beans.BeanWrapperImpl.init(BeanWrapperImpl.java:132)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:487)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at

inverse-classloading error

2008-04-20 Thread bgbraga

Hi,

I want to load all of my WEB-INF/lib jar and the other jars from geronimo
... But this command generated an error.

environment
inverse-classloading/
/environment

ERROR:
15:52:33,442 WARN [ConfigurationUtil] Could not load gbean
default/globalsafe/1208630537244/war?J2EEApplication=null,j2eeType=WebModule,name=default/globalsafe/1208630537244/war
org.apache.geronimo.gbean.InvalidConfigurationException: Getter return type
in wrong classloader: type: interface javax.transaction.UserTransaction
wanted in classloader:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=default/globalsafe/1208630537244/war] actual:
[org.apache.geronimo.kernel.classloader.JarFileClassLoader
id=org.apache.geronimo.configs/jee-specs/2.0.2/car]
at
org.apache.geronimo.gbean.runtime.GBeanAttribute.init(GBeanAttribute.java:241)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.init(GBeanInstance.java:245)
at
org.apache.geronimo.kernel.basic.BasicKernel.loadGBean(BasicKernel.java:354)
at
org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:433)
at
org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:187)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:530)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:511)
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke(generated)
at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:830)
at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
at
org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$dbf181f0.startConfiguration(generated)
at
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.processAction(ConfigManagerPortlet.java:208)
at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229)
at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:158)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120)
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68)
at
org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164)
at
org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(PortletContainerWrapperImpl.java:82)
at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:353)
at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at

Re: inverse-classloading error

2008-04-20 Thread bgbraga



djencks wrote:
 
 
 well, no, unless you are willing to work harder.  jta is a server  
 component, so if you include it in your app and set classloading so  
 your app classes are loaded first, you are certain to run into  
 trouble.  I thought the error you are getting was moderately clear  
 about the problem that is occuring.
 
 I'm afraid my imagination is not up to thinking of a scenario in  
 which having a transaction api jar in your app would provide any  
 benefit.  
 

Hi David,

Thanks for you reply.

I will explain:
I have an application that HAVE to run on Tomcat 6 for a customer and now in
Apache Geronimo to another.

If I deploy it in the tomcat without the WEB-INF\lib\jta.jar this error
occurs:

java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

The tomcat doesn't have jta.jar as common lib. OK?
The tomcat of this customer is a external host and we can not change the
folder common lib. 

Then I need to keep this WAR interoperable with multiple servers (tomcat,
geronimo, etc). I can not remove the jta.jar. Understand?


djencks wrote:
 
 However, if you want to keep it, you can override the  
 effect of inverse-classloading/ for particular packages using non- 
 overrideable-classes filters.
 
That removed the error from deploy. But the application isn't started. I
will check that.


djencks wrote:
 
 I'm generally against default restrictions on how an application  
 classloader can be set up but maybe we should think about including  
 javax.transaction in the default non-overridable-classes filters.
 

I'm using Geronimo with Tomcat. Then I think you should do this for all
server
components that don't exist in tomcat as jta. So you can keep interoperable
between Geronimo and Tomcat more easily.

This error appeared to be silly, but I really need the jta.jar in my lib.

-- 
View this message in context: 
http://www.nabble.com/inverse-classloading-error-tp16790691s134p16797376.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploy with datasource Error

2007-08-17 Thread bgbraga

good!!

Thanks Ashish!


Ashish Jain-5 wrote:
 
 Refer the sample applications for Geronimo2.0
 http://cwiki.apache.org/GMOxDOC20/sample-applications.html
 
 If you are looking to develop a web application than you need not have
 application.xml and
 geronimo-application.xml.
 If you are looking to develop an application with application scoped
 dependency rather than server-wide dependency.Follow up this link
 
 http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html
 
 Thanks
 Ashish
 
 
 On 8/17/07, bgbraga [EMAIL PROTECTED] wrote:



 I really do not know what I'm making… hehe
 I'm following this documentation:
 http://cwiki.apache.org/GMOxDOC12/geronimo-applicationxml.html

 In this link only has one module (exactly for datasource).

 What I want is to execute the application for the Eclipse (using WTP).

 I am not creating a EAR...

 I go to try to create datasource using Administration and leave reference
 in
 geronimo-web.xml.

 In this in case, still necessary of application.xml and
 geronimo-application.xml?

 thanks


 djencks wrote:
 
  I'm not sure what you are trying to do.  the plans you show below
  indicate that you intend to construct an ear that contains only one
  module, tranql-connector-1.3.rar.  However I doubt this is what you
  want to  do.
 
  Another possibility is that you have a web app that uses a
  datasource.  In that case the simplest solution is to deploy the
  datasource using the admin console, and add the datasource config as
  a dependency in the geronimo-web.xml for the web app.
 
  It's also possible to construct a sythentic ear plan so you end up
  with only one configuration, but that's a bit more complicated.  If
  you really want to do that consult the udd server plans under configs
  in the geronimo source.
 
  thanks
  david jencks
 
  On Aug 16, 2007, at 4:35 PM, bgbraga wrote:
 
 
  I'm not having success when making deploy in the Geronimo 2.0 M6
 
  I'm user of Tomcat and Websphere Application Server. I never had
  used the
  Geronimo.
 
  I read that I would need a Deployment plans, and made these archives:
  - /META-INF/application.xml
  - /META-INF/geronimo-application.xml
  - /WEB-INF/geronimo-web.xml
  - /geronimo-database.xml (datasource config)
 
  DEPLOY ERROR:
  20:29:32,341 ERROR [Deployer] Deployment failed due to
  org.apache.geronimo.common.DeploymentException: Invalid moduleFile:
  tranql-connector-ra-1.3.rar
  
  Caused by: java.io.IOException: Jar entry does not exist:
  jarFile=C:\Users\BRUNO~1.BRA\AppData\Local\Temp\geronimo-
  deployer52299.tmpdir\globalsafe.zip,
  path=tranql-connector-ra-1.3.rar
 
 
 
  application.xml:
 
  ?xml version=1.0 encoding=UTF-8?
  application
   xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
   version=1.4
 
   module
   connectortranql-connector-ra-1.3.rar/connector
   /module
  /application
 
 
  geronimo-application.xml:
 
  ?xml version=1.0?
  application xmlns=http://geronimo.apache.org/xml/ns/j2ee/
  application
   dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/
  deployment
   dep:moduleId
   dep:groupIddefault/dep:groupId
   dep:artifactIdGlobalSafe/dep:artifactId
   dep:version1.0/dep:version
   dep:typecar/dep:type
   /dep:moduleId
   dep:dependencies/
   dep:hidden-classes/
   dep:non-overridable-classes/
   /dep:environment
   module
   connectortranql-connector-ra-1.3.rar/connector
   alt-ddgeronimo-database.xml/alt-dd
   /module
  /application
 
  How to resolve the problem?
  connectortranql-connector-ra-1.3.rar/connector and
  connectortranql-connector-1.2.rar/connector don't work.
 
  Thanks!
 
  --
  View this message in context: http://www.nabble.com/Deploy-with-
  datasource-Error-tf4282757s134.html#a12191411
  Sent from the Apache Geronimo - Users mailing list archive at
  Nabble.com.
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Deploy-with-datasource-Error-tf4282757s134.html#a12192137
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://www.nabble.com/Deploy-with-datasource-Error-tf4282757s134.html#a12208099
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Deploy with datasource Error

2007-08-16 Thread bgbraga

I'm not having success when making deploy in the Geronimo 2.0 M6

I'm user of Tomcat and Websphere Application Server. I never had used the
Geronimo.

I read that I would need a Deployment plans, and made these archives:
- /META-INF/application.xml
- /META-INF/geronimo-application.xml
- /WEB-INF/geronimo-web.xml
- /geronimo-database.xml (datasource config)

DEPLOY ERROR:
20:29:32,341 ERROR [Deployer] Deployment failed due to 
org.apache.geronimo.common.DeploymentException: Invalid moduleFile:
tranql-connector-ra-1.3.rar

Caused by: java.io.IOException: Jar entry does not exist:
jarFile=C:\Users\BRUNO~1.BRA\AppData\Local\Temp\geronimo-deployer52299.tmpdir\globalsafe.zip,
path=tranql-connector-ra-1.3.rar



application.xml:

?xml version=1.0 encoding=UTF-8?
application
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
version=1.4

module
connectortranql-connector-ra-1.3.rar/connector
/module
/application


geronimo-application.xml:

?xml version=1.0?
application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application;
dep:environment 
xmlns:dep=http://geronimo.apache.org/xml/ns/deployment;
dep:moduleId
dep:groupIddefault/dep:groupId
dep:artifactIdGlobalSafe/dep:artifactId
dep:version1.0/dep:version
dep:typecar/dep:type
/dep:moduleId
dep:dependencies/
dep:hidden-classes/
dep:non-overridable-classes/
/dep:environment
module
connectortranql-connector-ra-1.3.rar/connector
alt-ddgeronimo-database.xml/alt-dd
/module
/application

How to resolve the problem?
connectortranql-connector-ra-1.3.rar/connector and
connectortranql-connector-1.2.rar/connector don't work.

Thanks!

-- 
View this message in context: 
http://www.nabble.com/Deploy-with-datasource-Error-tf4282757s134.html#a12191411
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploy with datasource Error

2007-08-16 Thread bgbraga


I really do not know what I'm making… hehe
I'm following this documentation:
http://cwiki.apache.org/GMOxDOC12/geronimo-applicationxml.html

In this link only has one module (exactly for datasource).

What I want is to execute the application for the Eclipse (using WTP).

I am not creating a EAR...

I go to try to create datasource using Administration and leave reference in
geronimo-web.xml.

In this in case, still necessary of application.xml and
geronimo-application.xml?

thanks


djencks wrote:
 
 I'm not sure what you are trying to do.  the plans you show below  
 indicate that you intend to construct an ear that contains only one  
 module, tranql-connector-1.3.rar.  However I doubt this is what you  
 want to  do.
 
 Another possibility is that you have a web app that uses a  
 datasource.  In that case the simplest solution is to deploy the  
 datasource using the admin console, and add the datasource config as  
 a dependency in the geronimo-web.xml for the web app.
 
 It's also possible to construct a sythentic ear plan so you end up  
 with only one configuration, but that's a bit more complicated.  If  
 you really want to do that consult the udd server plans under configs  
 in the geronimo source.
 
 thanks
 david jencks
 
 On Aug 16, 2007, at 4:35 PM, bgbraga wrote:
 

 I'm not having success when making deploy in the Geronimo 2.0 M6

 I'm user of Tomcat and Websphere Application Server. I never had  
 used the
 Geronimo.

 I read that I would need a Deployment plans, and made these archives:
 - /META-INF/application.xml
 - /META-INF/geronimo-application.xml
 - /WEB-INF/geronimo-web.xml
 - /geronimo-database.xml (datasource config)

 DEPLOY ERROR:
 20:29:32,341 ERROR [Deployer] Deployment failed due to
 org.apache.geronimo.common.DeploymentException: Invalid moduleFile:
 tranql-connector-ra-1.3.rar
 
 Caused by: java.io.IOException: Jar entry does not exist:
 jarFile=C:\Users\BRUNO~1.BRA\AppData\Local\Temp\geronimo- 
 deployer52299.tmpdir\globalsafe.zip,
 path=tranql-connector-ra-1.3.rar



 application.xml:

 ?xml version=1.0 encoding=UTF-8?
 application
  xmlns=http://java.sun.com/xml/ns/j2ee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/application_1_4.xsd;
  version=1.4

  module
  connectortranql-connector-ra-1.3.rar/connector
  /module
 /application


 geronimo-application.xml:

 ?xml version=1.0?
 application xmlns=http://geronimo.apache.org/xml/ns/j2ee/ 
 application
  dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/ 
 deployment
  dep:moduleId
  dep:groupIddefault/dep:groupId
  dep:artifactIdGlobalSafe/dep:artifactId
  dep:version1.0/dep:version
  dep:typecar/dep:type
  /dep:moduleId
  dep:dependencies/
  dep:hidden-classes/
  dep:non-overridable-classes/
  /dep:environment
  module
  connectortranql-connector-ra-1.3.rar/connector
  alt-ddgeronimo-database.xml/alt-dd
  /module
 /application

 How to resolve the problem?
 connectortranql-connector-ra-1.3.rar/connector and
 connectortranql-connector-1.2.rar/connector don't work.

 Thanks!

 -- 
 View this message in context: http://www.nabble.com/Deploy-with- 
 datasource-Error-tf4282757s134.html#a12191411
 Sent from the Apache Geronimo - Users mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/Deploy-with-datasource-Error-tf4282757s134.html#a12192137
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.