Re: how to run Ejb program on geronimo

2008-04-01 Thread atul12345



Hi Sir,
 Thanks for help. I appreciate your attention. See ya!
This is my ejb-jar.xml file here i do have  all the classes means 
interface
name.

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/ejb-jar_2_1.xsd"; version="2.1">
Example of a session bean
MyTimeBeanEJBName



My.DemoEJB
My.DemoHome
My.DemoInter
My.DemoBean

Stateful
Container




When I try to execute my client , I receive this error message:
java.lang.ClassCastException.
Could anyone tell me what I’m doing wrong? Thanks a lot. Looking forward to
hearing from you.




manucet wrote:
> 
> Hi Atul,
> I am not sure but did you specify the home and remote
> interfaces in the ejb-jar.xml file? If yes it will be helpful if you
> can provide a test case.
> 
> Regards
> Manu
> 
> On Tue, Apr 1, 2008 at 4:33 PM, atul12345 <[EMAIL PROTECTED]> wrote:
>>
>>  Actually after resolved jndi name problem i get one new error that is
>>
>>  java.lang.ClassCastException: $Proxy0 cannot be cast to My.DemoHome
>>   if anyone have any idea what is this so please give  me suitable
>> soluation
>>  to resolve that problem.
>>
>>
>>
>>
>>
>>  atul12345 wrote:
>>  >
>>  >  Dear Sir,
>>  >
>>  >   I am new programmer to Geronimo and EJB which are
>> running on
>>  > gentoo. i am createing stateful session bean like that
>>  > This is remote Interface..
>>  > package My;
>>  >
>>  > import java.rmi.*;
>>  >
>>  > import javax.ejb.*;
>>  >
>>  > public interface DemoInter extends EJBObject
>>  > {
>>  >public int add(int a,int b) throws RemoteException;
>>  > }
>>  >
>>  >
>>  > This is Home Interface..
>>  > package My;
>>  >
>>  > import javax.ejb.*;
>>  > import java.rmi.*;
>>  >
>>  >
>>  >
>>  > public interface DemoHome extends EJBHome
>>  > {
>>  > public DemoInter create() throws CreateException,RemoteException;
>>  > }
>>  >
>>  > This is Bean class
>>  >
>>  > package My;
>>  >
>>  > import java.rmi.*;
>>  >
>>  > import javax.ejb.*;
>>  >
>>  > public class DemoBean implements SessionBean
>>  > {
>>  >  public DemoBean() {
>>  > // TODO Auto-generated constructor stub
>>  >}
>>  > public void ejbCreate()
>>  > {
>>  >System.out.println("ejbCreate()");
>>  > }
>>  >
>>  > public void ejbRemove()
>>  > {
>>  >System.out.println("ejbRemove()");
>>  > }
>>  >
>>  >
>>  > public void ejbActivate()
>>  > {
>>  >System.out.println("ejbActivate()");
>>  > }
>>  >
>>  > public void ejbPassivate()
>>  > {
>>  >System.out.println("ejbPassivate()");
>>  > }
>>  >
>>  >
>>  > public void setSessionContext(SessionContext ctx){}
>>  >
>>  >
>>  > public int add(int a,int b) throws RemoteException
>>  > {
>>  > return (a+b);
>>  > }
>>  >
>>  > }
>>  >
>>  >
>>  > open-ejb.xml is where i specified the jndi name
>>  >
>>  > http://www.openejb.org/xml/ns/openejb-jar-2.1";
>>  > 
>> xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";
>>  >
>>  > xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1";
>>  >   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>>  >
>>  >   
>>  > 
>>  > Demo
>>  > org.geronimo.ejbsample.HomeBean
>>  > 
>>  >   
>>  > 
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >
>>  >  and this is my client code...
>>  >
>>  > import java.util.*;
>>  > import javax.naming.*;
>>  > import javax.rmi.*;
>>  > import My.*;
>>  >
>>  >
>>  > public class Client {
>>  >
>>  > /**
>>  >  * @param args
>>  >  */
>>  > public static void main(String[] args) {
>>  > // TODO Auto-generated method stub
>>  > try {
>>  >
>>  > Properties properties=new Properties();
>>  > properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
>>  > "org.apache.openejb.client.RemoteInitialContextFactory");
>>  >
>>  > properties.setProperty(Context.PROVIDER_URL,
>>  > "ejbd://localhost:4201" );
>>  >
>>  > Context ctx=new InitialContext(properties);
>>  >
>>  >  My.DemoHome
>>  > home=(My.DemoHome)ctx.lookup("java:org.geronimo.ejbsample.HomeBean");
>>  >
>>  >   My.DemoInter object =home.create();
>>  >   System.out.println(object.add(12,22));
>>  >
>>  > that is my code, everything is ok means deploy successfully but
>> problem is
>>  > when i execute client program, that time i get error that is
>>  >
>>  > javax.na

adding apache FOP jars to Geronimo Classpath

2008-04-01 Thread someperson

Hi
How would I add references to FOP jars in the Geronimo classpath. I am
trying to integrate FOP support into my application on a prepackaged and
built  Geronimo Server
How can I do this?

thanks in advance.
il
-- 
View this message in context: 
http://www.nabble.com/adding-apache-FOP-jars-to-Geronimo-Classpath-tp16432027s134p16432027.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: maven2: deployment quickstart?

2008-04-01 Thread Kevan Miller


On Mar 27, 2008, at 3:03 AM, Kristian Rink wrote:




So far, the same time we look at geronimo, we are into playing around
with glassfish which seems to do better about these things for a  
simple
reason: It provides a fairly sophisticated management interface to  
deal

with all these issues in an easy way.


I'd be interested to hear what specific features you are finding  
particularly useful (and feel Geronimo is lacking).



Given that, and assuming to
replace an existing, distributed environment by one "huge" (indeed
monolithic it seems) Java EE container, there seems to be quite a
benefit compared to our given situation, plus the chance to throw in
things like EJB, JMS, ... easily to our Spring based applications. But
the idea of the Java EE server being a standalone, well-administered
runtime to just dump applications to and be reasonably sure they will
start out is a tempting thing. From that point of view, I have indeed
get acquainted to the idea of, say, building "my own app server
distribution" by assembling an application server containing just my
application. But maybe indeed it's just about getting used to it. At
least, is there a way of running geronimo 2.x as a "traditional"
application server (standalone installation on some dedicated host
ready to recieve apps) as well?


Absolutely. We distribute a full-functioned, EE 5 compliant version of  
Geronimo. We just have additional features which permit you to create  
server images which are custom built to the requirements of your  
application. Alternatively, you can create server images with custom  
feature sets (JSP/Servlet, JPA, etc), but leaving out functions that  
you'll never use and deploy applications in a traditional fashion.


--kevan



Re: Jetty Deployment....

2008-04-01 Thread Kevan Miller


On Mar 26, 2008, at 10:09 AM, nuffink wrote:



Hi,

I am a newbie (to a point) at J2EE and a defo newbie at Geronimo so  
please

be constructive and patient...

I have an old war file from something that was developed using IBM  
WSAD ages
back and so far have managed to get it all str8 in Eclipse J2EE  
distro via
importation (nothing fancy so far). i have created my DB2 databse  
pool and
that works fine too BUT when I importied the war into Eclipse in  
creating
the project and EAR project and web-inf stuff etc it also imported  
some
struts stuff too in the form of tlds. I have read a number of  
articles on
tlds and understand their use and the references that have been made  
in the
jsps to them,  again no probs. On deploying to the Geronimo Jetty  
server
v2.1 it is here that I am having issues that I don't fully  
understand. the

consiole comes back with the following warnings:

13:49:15, 015 WARN (JspModuleBuilderExtension)  
JspModuleBuilderExtension:
Could not load tag class: org.apache.struts.taglib.bean.WriteTag  
mentioned

in TLD file at file:/D:/<..my geronimo server
path..>/geronimo-jetty6-javaee5-2.1/repository/com/gyr/EAR/1.0/ 
EAR-1.0.car/.war/

WEB-INF/struts-bean.tld

but thats all it says no reason why...the struts jar and named  
classes are
in the lib directory under WEB-INF...so any help or pointers would  
be good.


That warning message means we got a ClassNotFoundException attempting  
to load the WriteTag class. Are you certain the struts-taglib jar is  
in your lib directory?


--kevan


Re: Error: Unable to distribute MusicApp.ear: Failed parsing descriptors for module:

2008-04-01 Thread newbie-gero

Hi, 
thanks for the help. and thanks to david for the upmost
support:clap::clap::clap:



Jarek Gawor-2 wrote:
> 
> Change:
> 
>  xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
> 
> to
> 
>  xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";>
> 
> in your openejb-jar.xml file.
> 
> Jarek
> 
> On Tue, Apr 1, 2008 at 5:59 AM, newbie-gero <[EMAIL PROTECTED]> wrote:
>>
>> /home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar
>>  MIME-Version: 1.0
>>  Content-Type: text/plain; charset=us-ascii
>>  Content-Transfer-Encoding: 7bit
>>  X-Nabble-From: [EMAIL PROTECTED]
>>
>>
>>  This is in response from the message : Unable to resolve resource
>> reference
>>  'jdbc/MusicDB' (Found multiple matching resources. Try being more
>> specific
>>  in a resource-ref mapping in your Geronimo deployment plan.
>>
>>  Throughout the entire conversation and helpful discussions, i writing a
>>  openejb.xml file for the deployment of my session bean with jdbc ear
>> file.
>>
>>  Actually i do not know how to write the xml files. I just copied from
>>  various sources and put into the xml file and hope it could work.
>>
>>  Previously, my ear file could not find the resource ref of jdbc/MusicDB.
>>  Therefore from the previous message advise, i follow the advise to write
>> an
>>  openejb.xml as show below:
>>  http://www.nabble.com/file/p16417501/openejb-jar.xml openejb-jar.xml
>>
>>  This are the errors i encounter:
>>  [EMAIL PROTECTED]:~/geronimo-2.1> java -jar bin/deployer.jar --user
>> system
>>  --password manager deploy MusicApp.ear
>> Error: Unable to distribute MusicApp.ear: Failed parsing descriptors
>> for module:
>>
>> /home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar
>>
>> Cannot unmarshall the openejb-jar.xml. Xml content written to:
>> /home/chongming/geronimo-2.1/var/temp/openejb-jar-55903.xml:
>> unexpected element
>> (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
>> local:"environment"). Expected elements are
>>
>> 
>> <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>
>>
>> unexpected element
>> (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
>> local:"environment"). Expected elements are
>>
>> 
>> <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>
>>
>>
>>  How can i solve?
>>
>>  Thanks
>>  --
>>  View this message in context:
>> http://www.nabble.com/Error%3A-Unable-to-distribute-MusicApp.ear%3A-Failed-parsing-descriptors%0D%0Afor-module%3A%0D%0A-home-chongming-geronimo-2.1-var-temp-geronimo-deploymentUtil55902.jar-tp16417501s134p16417501.html
>>  Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error%3A-Unable-to-distribute-MusicApp.ear%3A-Failed-parsing-descriptors%0D%0Afor-module%3A%0D%0A-home-chongming-geronimo-2.1-var-temp-geronimo-deploymentUtil55902.jar-tp16417501s134p16427199.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



[ANN] Geronimo JavaMail_1.4 version 1.4 (geronimo-javamail_1.4-1.4) released

2008-04-01 Thread Joe Bohn
The Geronimo team is pleased to announce the release of the Geronimo 
JavaMail_1.4 version 1.4 (yes, the javamail spec version and the 
Geronimo bundle version are at the moment both 1.4).


This release includes an upgrade to leverage Genesis 1.4, leveraging the 
new 1.3 version of the Javamail_1.4 spec from Geronimo, and fixes for 
GERONIMO-3842 and GERONIMO-3853.


Enjoy,

-The Geronimo team


[ANN] Geronimo JavaMail Spec 1.4 version 1.3 (geronimo-javamail_1.4_spec-1.3) released

2008-04-01 Thread Joe Bohn
The Geronimo team is pleased to announce the release of the Geronimo 
JavaMail Spec 1.4, version 1.3


This release includes two bug fixes, GERONIMO-3842 and GERONIMO-3853.

Enjoy,

-The Geronimo team


RE: Classloader issue

2008-04-01 Thread Jean-Baptiste
This is fixed in 2.1, haven’t tried 2.0.2.

 

Regards

 

JB

 

   _  

From: Jean-Baptiste [mailto:[EMAIL PROTECTED] 
Sent: March 31, 2008 9:59 PM
To: 'user@geronimo.apache.org'
Subject: Classloader issue

 

Hello,

 

I have decided to  from a good old plain Web Container (Tomcat) to
Geronimo and I’m having issues with the way the classloader for my WebApp
loads the classes…

Under Tomcat the classloader would look for classes in this order (resource:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html)

*   Bootstrap classes of your JVM
*   System class loader classses (described above)
*   /WEB-INF/classes of your web application
*   /WEB-INF/lib/*.jar of your web application
*   $CATALINA_HOME/lib
*   $CATALINA_HOME/lib/*.jar

Now with Geronimo 2.0.1 (the version I use, have not tried another version)
and Tomcat (6.0) it seems that this order is NOT respected. The classes
defined in my *.jar in under WEB-INF/lib always takes precedence over the
ones in WEB-INF/classes

 

I have created a simple WAR file with one jar under WEB-INF/lib that
contains a class. I then defined the same class under WEB-INF/classes and I
can see that it is always the class defined into the jar that is used at run
time.

 

Is this a normal behavior for Tomcat under Geronimo? Am I doing something
wrong ? 

 

Regards,

 

Jean-Baptiste


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008
12:32 PM



No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.2/1353 - Release Date: 31/03/2008
6:21 PM
 


Exception by using EJB3 on Geronimo 2

2008-04-01 Thread thomas2004

Hi all,

I am learning the EJB3. I follow a tutorial under:
http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html

and it runs quite well since I use the SUN Application Server.

So I deployed the EJB Jars onto Geronimo 2. Bu tas I try to start the client
I got exception as follow:

Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:464)
at
com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
... 16 more

Here is my session bean:
[code]
@Stateless(name = "Example",  mappedName = "ejb/SimpleBeanJNDI")
public class SimpleBeanImpl implements SimpleBean {
public String sayHello(String name) {
return "Hello, the text you enter is: " + name + "!";
}
}

[/code]

And here is the client and lookup:

[code]
public class TestClient {

public void runTest() throws Exception {
InitialContext ctx = new InitialContext();
SimpleBean bean = (SimpleBean) ctx.lookup("ejb/SimpleBeanJNDI");
String result = bean.sayHello("Billy Bob, Wei Chen");
System.out.println(result);
}

public static void main(String[] args) {
try {
TestClient cli = new TestClient();
cli.runTest();

} catch (Exception e) {
e.printStackTrace();
}
}
}
[/code]

Has someone idea?

Regards

Thomas


-- 
View this message in context: 
http://www.nabble.com/Exception-by-using-EJB3-on-Geronimo-2-tp16418687s134p16418687.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Persistence unit deploy error in 2.1 but works in 2.02

2008-04-01 Thread luoluo

I un-comment the hibernate data source property. It could be deployed and
works fine. 

It seems the first jta-data-source makes the persistence unit to be accepted
by Geronimo. And the hibernate data source setting makes hibernate could
correctly locate the data source.



luoluo wrote:
> 
> The data source is created by wizard. The dependency is created in
> Geronimo plan. Here is the plan:
> geronimo-web.xml
>   
>   
>   inpulse8
>   CMWS
>   1.0.0
>   war
>   
>   
>   
>   console.dbpool
>   inpulse8_cmws
>   
>   
>   
>   org.hibernate
>   
> 
>   
> 
>   /CMWS
> 
>   
>   jdbc/cmwsDS
>   inpulse8_cmws
>   
> 
> in web.xml, the data source is declared:
>   
>   jdbc/cmwsDS
>   javax.sql.DataSource
>   Container
>   Shareable
>   
> 
> Now I changed the persistence.xml to:
> 
>  transaction-type="RESOURCE_LOCAL">
>   org.hibernate.ejb.HibernatePersistence
>   inpulse8_cmws
>   inpulse8_cmws
>   
>  value="class" />
> 
>   
> 
>  
> value="org.hibernate.dialect.MySQL5InnoDBDialect" />
> 
>  
> value="org.hibernate.transaction.JDBCTransactionFactory" />
>   
> 
>   
> 
> It could be deployed, but the entity manager can not be initialized
> because of exceptions:
> 
> WARNING: Found unrecognized persistence provider
> "org.hibernate.ejb.HibernatePersistence" in place of OpenJPA provider. 
> This provider's properties will not be used.
> javax.persistence.PersistenceException: Provider error. Provider:
> org.hibernate.ejb.HibernatePersistence
> at
> javax.persistence.Persistence.createFactory(Persistence.java:176)
> at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:112)
> at
> javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:66)
> at
> com.ek3.inpulse.cmws.persistence.JpaUtil.(JpaUtil.java:39)
> at
> com.ek3.inpulse.cmws.domain.sessionproxy.SessionInvocationHandler.invoke(SessionInvocationHandler.java:37)
> at $Proxy74.listConfigedClients(Unknown Source)
> at
> com.ek3.inpulse.cmws.serviceinterface.ProcessConfigurationServiceImpl.listConfigedClients(ProcessConfigurationServiceImpl.java:459)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:107)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:77)
> at
> org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:100)
> at
> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:63)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
> at
> org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> at
> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
> at
> org.apache.geronimo.cxf.GeronimoDestination.invoke(GeronimoDestination.java:115)
> at
> org.apache.geronimo.cxf.CXFWebServiceContainer.processPOST(CXFWebServiceContainer.java:107)
> at
> org.apache.geronimo.cxf.CXFWebServiceContainer.invoke(CXFWebServiceContainer.java:83)
> at
> org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:84)
> at
> org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79)
> 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:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
> org.apache.geronimo.tomc

Re: Error: Unable to distribute MusicApp.ear: Failed parsing descriptors for module:

2008-04-01 Thread Jarek Gawor
Change:

http://geronimo.apache.org/xml/ns/deployment-1.1";>

to

http://geronimo.apache.org/xml/ns/deployment-1.2";>

in your openejb-jar.xml file.

Jarek

On Tue, Apr 1, 2008 at 5:59 AM, newbie-gero <[EMAIL PROTECTED]> wrote:
> /home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar
>  MIME-Version: 1.0
>  Content-Type: text/plain; charset=us-ascii
>  Content-Transfer-Encoding: 7bit
>  X-Nabble-From: [EMAIL PROTECTED]
>
>
>  This is in response from the message : Unable to resolve resource reference
>  'jdbc/MusicDB' (Found multiple matching resources. Try being more specific
>  in a resource-ref mapping in your Geronimo deployment plan.
>
>  Throughout the entire conversation and helpful discussions, i writing a
>  openejb.xml file for the deployment of my session bean with jdbc ear file.
>
>  Actually i do not know how to write the xml files. I just copied from
>  various sources and put into the xml file and hope it could work.
>
>  Previously, my ear file could not find the resource ref of jdbc/MusicDB.
>  Therefore from the previous message advise, i follow the advise to write an
>  openejb.xml as show below:
>  http://www.nabble.com/file/p16417501/openejb-jar.xml openejb-jar.xml
>
>  This are the errors i encounter:
>  [EMAIL PROTECTED]:~/geronimo-2.1> java -jar bin/deployer.jar --user system
>  --password manager deploy MusicApp.ear
> Error: Unable to distribute MusicApp.ear: Failed parsing descriptors
> for module:
> /home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar
>
> Cannot unmarshall the openejb-jar.xml. Xml content written to:
> /home/chongming/geronimo-2.1/var/temp/openejb-jar-55903.xml:
> unexpected element
> (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
> local:"environment"). Expected elements are
>
>  
> <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>
>
> unexpected element
> (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
> local:"environment"). Expected elements are
>
>  
> <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>
>
>
>  How can i solve?
>
>  Thanks
>  --
>  View this message in context: 
> http://www.nabble.com/Error%3A-Unable-to-distribute-MusicApp.ear%3A-Failed-parsing-descriptors%0D%0Afor-module%3A%0D%0A-home-chongming-geronimo-2.1-var-temp-geronimo-deploymentUtil55902.jar-tp16417501s134p16417501.html
>  Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Persistence unit deploy error in 2.1 but works in 2.02

2008-04-01 Thread luoluo

The data source is created by wizard. The dependency is created in Geronimo
plan. Here is the plan:
geronimo-web.xml


inpulse8
CMWS
1.0.0
war



console.dbpool
inpulse8_cmws



org.hibernate




/CMWS


jdbc/cmwsDS
inpulse8_cmws


in web.xml, the data source is declared:

jdbc/cmwsDS
javax.sql.DataSource
Container
Shareable


Now I changed the persistence.xml to:


org.hibernate.ejb.HibernatePersistence
inpulse8_cmws
inpulse8_cmws












It could be deployed, but the entity manager can not be initialized because
of exceptions:

WARNING: Found unrecognized persistence provider
"org.hibernate.ejb.HibernatePersistence" in place of OpenJPA provider.  This
provider's properties will not be used.
javax.persistence.PersistenceException: Provider error. Provider:
org.hibernate.ejb.HibernatePersistence
at javax.persistence.Persistence.createFactory(Persistence.java:176)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:112)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:66)
at
com.ek3.inpulse.cmws.persistence.JpaUtil.(JpaUtil.java:39)
at
com.ek3.inpulse.cmws.domain.sessionproxy.SessionInvocationHandler.invoke(SessionInvocationHandler.java:37)
at $Proxy74.listConfigedClients(Unknown Source)
at
com.ek3.inpulse.cmws.serviceinterface.ProcessConfigurationServiceImpl.listConfigedClients(ProcessConfigurationServiceImpl.java:459)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:107)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:77)
at
org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:100)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:63)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)
at
org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at
org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
at
org.apache.geronimo.cxf.GeronimoDestination.invoke(GeronimoDestination.java:115)
at
org.apache.geronimo.cxf.CXFWebServiceContainer.processPOST(CXFWebServiceContainer.java:107)
at
org.apache.geronimo.cxf.CXFWebServiceContainer.invoke(CXFWebServiceContainer.java:83)
at
org.apache.geronimo.webservices.WebServiceContainerInvoker.service(WebServiceContainerInvoker.java:84)
at
org.apache.geronimo.webservices.POJOWebServiceServlet.service(POJOWebServiceServlet.java:79)
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:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:396)
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:102)
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.

Re: how to run Ejb program on geronimo

2008-04-01 Thread Manu George
Hi Atul,
I am not sure but did you specify the home and remote
interfaces in the ejb-jar.xml file? If yes it will be helpful if you
can provide a test case.

Regards
Manu

On Tue, Apr 1, 2008 at 4:33 PM, atul12345 <[EMAIL PROTECTED]> wrote:
>
>  Actually after resolved jndi name problem i get one new error that is
>
>  java.lang.ClassCastException: $Proxy0 cannot be cast to My.DemoHome
>   if anyone have any idea what is this so please give  me suitable soluation
>  to resolve that problem.
>
>
>
>
>
>  atul12345 wrote:
>  >
>  >  Dear Sir,
>  >
>  >   I am new programmer to Geronimo and EJB which are running on
>  > gentoo. i am createing stateful session bean like that
>  > This is remote Interface..
>  > package My;
>  >
>  > import java.rmi.*;
>  >
>  > import javax.ejb.*;
>  >
>  > public interface DemoInter extends EJBObject
>  > {
>  >public int add(int a,int b) throws RemoteException;
>  > }
>  >
>  >
>  > This is Home Interface..
>  > package My;
>  >
>  > import javax.ejb.*;
>  > import java.rmi.*;
>  >
>  >
>  >
>  > public interface DemoHome extends EJBHome
>  > {
>  > public DemoInter create() throws CreateException,RemoteException;
>  > }
>  >
>  > This is Bean class
>  >
>  > package My;
>  >
>  > import java.rmi.*;
>  >
>  > import javax.ejb.*;
>  >
>  > public class DemoBean implements SessionBean
>  > {
>  >  public DemoBean() {
>  > // TODO Auto-generated constructor stub
>  >}
>  > public void ejbCreate()
>  > {
>  >System.out.println("ejbCreate()");
>  > }
>  >
>  > public void ejbRemove()
>  > {
>  >System.out.println("ejbRemove()");
>  > }
>  >
>  >
>  > public void ejbActivate()
>  > {
>  >System.out.println("ejbActivate()");
>  > }
>  >
>  > public void ejbPassivate()
>  > {
>  >System.out.println("ejbPassivate()");
>  > }
>  >
>  >
>  > public void setSessionContext(SessionContext ctx){}
>  >
>  >
>  > public int add(int a,int b) throws RemoteException
>  > {
>  > return (a+b);
>  > }
>  >
>  > }
>  >
>  >
>  > open-ejb.xml is where i specified the jndi name
>  >
>  > http://www.openejb.org/xml/ns/openejb-jar-2.1";
>  >  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";
>  >
>  > xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1";
>  >   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>  >
>  >   
>  > 
>  > Demo
>  > org.geronimo.ejbsample.HomeBean
>  > 
>  >   
>  > 
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >
>  >  and this is my client code...
>  >
>  > import java.util.*;
>  > import javax.naming.*;
>  > import javax.rmi.*;
>  > import My.*;
>  >
>  >
>  > public class Client {
>  >
>  > /**
>  >  * @param args
>  >  */
>  > public static void main(String[] args) {
>  > // TODO Auto-generated method stub
>  > try {
>  >
>  > Properties properties=new Properties();
>  > properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
>  > "org.apache.openejb.client.RemoteInitialContextFactory");
>  >
>  > properties.setProperty(Context.PROVIDER_URL,
>  > "ejbd://localhost:4201" );
>  >
>  > Context ctx=new InitialContext(properties);
>  >
>  >  My.DemoHome
>  > home=(My.DemoHome)ctx.lookup("java:org.geronimo.ejbsample.HomeBean");
>  >
>  >   My.DemoInter object =home.create();
>  >   System.out.println(object.add(12,22));
>  >
>  > that is my code, everything is ok means deploy successfully but problem is
>  > when i execute client program, that time i get error that is
>  >
>  > javax.naming.NameNotFoundException: org.geronimo.ejbsample.HomeBean does
>  > not exist in the system.  Check that the app was successfully deployed.
>  > So if anybody know how to resolve this problem then please give me
>  > suitable suggestion to resolve this problem..
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16417878.html
>
>
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: how to run Ejb program on geronimo

2008-04-01 Thread atul12345

Actually after resolved jndi name problem i get one new error that is

java.lang.ClassCastException: $Proxy0 cannot be cast to My.DemoHome
 if anyone have any idea what is this so please give  me suitable soluation
to resolve that problem.



atul12345 wrote:
> 
>  Dear Sir,
> 
>   I am new programmer to Geronimo and EJB which are running on
> gentoo. i am createing stateful session bean like that
> This is remote Interface..
> package My;
> 
> import java.rmi.*;
> 
> import javax.ejb.*;
> 
> public interface DemoInter extends EJBObject
> {
>public int add(int a,int b) throws RemoteException;
> }
> 
> 
> This is Home Interface..
> package My;
> 
> import javax.ejb.*;
> import java.rmi.*;
> 
> 
> 
> public interface DemoHome extends EJBHome
> {
> public DemoInter create() throws CreateException,RemoteException;
> }
> 
> This is Bean class
> 
> package My;
> 
> import java.rmi.*;
> 
> import javax.ejb.*;
> 
> public class DemoBean implements SessionBean
> {
>  public DemoBean() {
> // TODO Auto-generated constructor stub
>}
> public void ejbCreate()
> {
>System.out.println("ejbCreate()");
> }
>
> public void ejbRemove()
> {
>System.out.println("ejbRemove()");
> }
> 
> 
> public void ejbActivate()
> {
>System.out.println("ejbActivate()");
> }
> 
> public void ejbPassivate()
> {
>System.out.println("ejbPassivate()");
> }
> 
> 
> public void setSessionContext(SessionContext ctx){}
> 
> 
> public int add(int a,int b) throws RemoteException
> {
> return (a+b);
> }
>
> }
> 
> 
> open-ejb.xml is where i specified the jndi name
> 
> http://www.openejb.org/xml/ns/openejb-jar-2.1";
>  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";
> 
> xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1";
>   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";>  
>
>   
> 
> Demo
> org.geronimo.ejbsample.HomeBean
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  and this is my client code...
> 
> import java.util.*;
> import javax.naming.*;
> import javax.rmi.*;
> import My.*;
> 
> 
> public class Client {
> 
> /**
>  * @param args
>  */
> public static void main(String[] args) {
> // TODO Auto-generated method stub
> try {
>
> Properties properties=new Properties();
> properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.client.RemoteInitialContextFactory");
>
> properties.setProperty(Context.PROVIDER_URL,
> "ejbd://localhost:4201" );
>
> Context ctx=new InitialContext(properties);
>
>  My.DemoHome
> home=(My.DemoHome)ctx.lookup("java:org.geronimo.ejbsample.HomeBean");
>  
>   My.DemoInter object =home.create();
>   System.out.println(object.add(12,22));
> 
> that is my code, everything is ok means deploy successfully but problem is
> when i execute client program, that time i get error that is
> 
> javax.naming.NameNotFoundException: org.geronimo.ejbsample.HomeBean does
> not exist in the system.  Check that the app was successfully deployed.
> So if anybody know how to resolve this problem then please give me
> suitable suggestion to resolve this problem..
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16417878.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: how to run Ejb program on geronimo

2008-04-01 Thread atul12345

Thanks.

manucet wrote:
> 
> Hi,
> The JNDI Name that you have given is not correct. If you see the
> log files you can find the correct JNDI Name. You will get lines
> similar to the one below where ejb/mgmt/MRCLocal is the JNDI Name
> 21:38:02,125 INFO  [startup] Jndi(name=ejb/mgmt/MRCLocal) -->
> Ejb(deployment-id=agent-ejb.jar/ejb/mgmt/MRC)
> 
> I am guessing that in your case it will be DemoRemote or DemoBeanRemote
> You just need to lookup ctx.lookup("DemoRemote");
> 
> I believe there is a bug in openejb whereby it doesn't pick the value
> in the jndi-name tag and instead uses 3.0 style name generation .
> 
> Regards
> Manu
> 
> On Mon, Mar 31, 2008 at 1:22 PM, atul12345 <[EMAIL PROTECTED]> wrote:
>>
>>   Dear Sir,
>>
>>   I am new programmer to Geronimo and EJB which are running
>> on
>>  gentoo. i am createing stateful session bean like that
>>  This is remote Interface..
>>  package My;
>>
>>  import java.rmi.*;
>>
>>  import javax.ejb.*;
>>
>>  public interface DemoInter extends EJBObject
>>  {
>>public int add(int a,int b) throws RemoteException;
>>  }
>>
>>
>>  This is Home Interface..
>>  package My;
>>
>>  import javax.ejb.*;
>>  import java.rmi.*;
>>
>>
>>
>>  public interface DemoHome extends EJBHome
>>  {
>>  public DemoInter create() throws CreateException,RemoteException;
>>  }
>>
>>  This is Bean class
>>
>>  package My;
>>
>>  import java.rmi.*;
>>
>>  import javax.ejb.*;
>>
>>  public class DemoBean implements SessionBean
>>  {
>>  public DemoBean() {
>> // TODO Auto-generated constructor stub
>>}
>> public void ejbCreate()
>> {
>>System.out.println("ejbCreate()");
>> }
>>
>> public void ejbRemove()
>> {
>>System.out.println("ejbRemove()");
>> }
>>
>>
>>  public void ejbActivate()
>>  {
>>System.out.println("ejbActivate()");
>>  }
>>
>>  public void ejbPassivate()
>>  {
>>System.out.println("ejbPassivate()");
>>  }
>>
>>
>>  public void setSessionContext(SessionContext ctx){}
>>
>>
>>  public int add(int a,int b) throws RemoteException
>>  {
>>  return (a+b);
>>  }
>>
>>  }
>>
>>
>>  open-ejb.xml is where i specified the jndi name
>>
>>  http://www.openejb.org/xml/ns/openejb-jar-2.1";
>>  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1";
>> 
>> xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1";
>>   xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>>
>>   
>> 
>> Demo
>> org.geronimo.ejbsample.HomeBean
>> 
>>   
>>  
>>
>>
>>
>>
>>
>>
>>
>>
>>   and this is my client code...
>>
>>  import java.util.*;
>>  import javax.naming.*;
>>  import javax.rmi.*;
>>  import My.*;
>>
>>
>>  public class Client {
>>
>> /**
>>  * @param args
>>  */
>> public static void main(String[] args) {
>> // TODO Auto-generated method stub
>> try {
>>
>> Properties properties=new Properties();
>> properties.setProperty(Context.INITIAL_CONTEXT_FACTORY,
>>  "org.apache.openejb.client.RemoteInitialContextFactory");
>>
>> properties.setProperty(Context.PROVIDER_URL,
>>  "ejbd://localhost:4201" );
>>
>> Context ctx=new InitialContext(properties);
>>
>>  My.DemoHome
>>  home=(My.DemoHome)ctx.lookup("java:org.geronimo.ejbsample.HomeBean");
>>
>>   My.DemoInter object =home.create();
>>   System.out.println(object.add(12,22));
>>
>>  that is my code, everything is ok means deploy successfully but problem
>> is
>>  when i execute client program, that time i get error that is
>>
>>  javax.naming.NameNotFoundException: org.geronimo.ejbsample.HomeBean does
>> not
>>  exist in the system.  Check that the app was successfully deployed.
>>  So if anybody know how to resolve this problem then please give me
>> suitable
>>  suggestion to resolve this problem..
>>
>>  --
>>  View this message in context:
>> http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16392851.html
>>  Sent from the Apache Geronimo - Users mailing list archive at
>> Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16417869.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Error: Unable to distribute MusicApp.ear: Failed parsing descriptors for module:

2008-04-01 Thread newbie-gero
/home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: [EMAIL PROTECTED]


This is in response from the message : Unable to resolve resource reference
'jdbc/MusicDB' (Found multiple matching resources. Try being more specific
in a resource-ref mapping in your Geronimo deployment plan.

Throughout the entire conversation and helpful discussions, i writing a
openejb.xml file for the deployment of my session bean with jdbc ear file.

Actually i do not know how to write the xml files. I just copied from
various sources and put into the xml file and hope it could work. 

Previously, my ear file could not find the resource ref of jdbc/MusicDB.
Therefore from the previous message advise, i follow the advise to write an
openejb.xml as show below:
http://www.nabble.com/file/p16417501/openejb-jar.xml openejb-jar.xml 

This are the errors i encounter:
[EMAIL PROTECTED]:~/geronimo-2.1> java -jar bin/deployer.jar --user system
--password manager deploy MusicApp.ear
Error: Unable to distribute MusicApp.ear: Failed parsing descriptors
for module:
/home/chongming/geronimo-2.1/var/temp/geronimo-deploymentUtil55902.jar

Cannot unmarshall the openejb-jar.xml. Xml content written to:
/home/chongming/geronimo-2.1/var/temp/openejb-jar-55903.xml:
unexpected element
(uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
local:"environment"). Expected elements are
   
<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>

unexpected element
(uri:"http://geronimo.apache.org/xml/ns/deployment-1.1";,
local:"environment"). Expected elements are
   
<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence>,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<{http://geronimo.apache.org/xml/ns/security-2.0}security>,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment>,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security>


How can i solve?

Thanks
-- 
View this message in context: 
http://www.nabble.com/Error%3A-Unable-to-distribute-MusicApp.ear%3A-Failed-parsing-descriptors%0D%0Afor-module%3A%0D%0A-home-chongming-geronimo-2.1-var-temp-geronimo-deploymentUtil55902.jar-tp16417501s134p16417501.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.