Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-18 Thread David Jencks
adding the activemq-core jar to the classpath should fix this error.   
then


I assume you are using a plain java program rather than a javaee  
application client.  In this case you should not expect to access the  
java:comp/env context but should refer to the activemq documentation  
on how to use their jndi setup.  I also don't think the openejb  
property will be helpful.




http://activemq.apache.org/jndi-support.html

If you are using a javaee app client let us know.

thanks
david jencks

On Jan 18, 2009, at 10:35 PM, viola.lu wrote:



HI, axiez:

Have you added activemq-core-.jar (which contains
org.apache.activemq.jndi.ActiveMQInitialContextFactory)  under
$G_Dir\org\apache\activemq\activemq-core\ to your classpath and  
buildpath?


Thanks.
Viola.Lu


axiez wrote:


I have the following sample code and jndi.properties file:
import javax.jms.*;
import javax.naming.InitialContext;
import java.util.*;
import java.io.*;
public class LogClient {
   public static void main(String[] args) throws Exception {
   Properties p = new Properties();
   p.load(new FileInputStream("jndi.properties"));
   p.put("openejb.authentication.realmName","geronimo-admin");
   InitialContext ctx = new InitialContext(p);
   TopicConnectionFactory factory = (TopicConnectionFactory)
ctx.lookup("java:comp/env/jms/DefaultActiveMQConnectionFactory");
   TopicConnection connection = factory.createTopicConnection();
   TopicSession session = connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
   Topic topic = (Topic)ctx.lookup("java:comp/env/jms/Topic");
   TopicPublisher publisher = session.createPublisher(topic);
   TextMessage msg = session.createTextMessage();
   msg.setText("This is a test message");
   publisher.send(msg);
   publisher.close();
   System.out.println("Message published. Please check  
application

server's console to see the response from MDB");
   }
}

jndi.properties file:
java 
.naming 
.factory 
.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory

java.naming.provider.url=tcp://localhost:61616
java.naming.security.principal=system
java.naming.security.credentials=manager

I ran the program after successful compilation. Error message is:
Exception in thread "main" javax.naming.NoInitialContextException:  
Cannot
instantiate class:  
org.apache.activemq.jndi.ActiveMQInitialContextFactory

[Root exception is java.lang.ClassNotFoundException:
org.apache.activemq.jndi.ActiveMQInitialContextFactory]




--
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21537612.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread David Jencks


On Jan 18, 2009, at 6:23 PM, bongosdude wrote:



David,

my database name is my_users. and I have two dbpool defined to point  
to the

same database my_users. One is XA and other is non XA.


thats fine.

I forgot to mention in my post on the other thread that you need to be  
sure to use the correct tranql msql xa wrapper in your maven project.   
Note that it shows up in two places in your pom.xml -- as a dependency  
and as the module being deployed in the car-maven-plugin.


You still haven't said where you put your persistence.xml but it looks  
from an earlier post that deployment is still not able to find it.


thanks
david jencks




Thanks


bongosdude wrote:



David,

Here is my connector definition in my datasource plan.xml

http://geronimo.apache.org/xml/ns/j2ee/connector-1.2 
">

   
   
   

javax.sql.DataSourceconnectionfactory-interface>

   
   my_users
   my_users
   
   
   
   
   
   10
   0
   
   
   
   
   
   my_users_notx
   my_users
   
   
   
   10
   0
   
   
   
   
   
   
   


I have configured two database pool name: my_users and  
my_users_no_tx (the

database driver is mysql. one is XA and other is NONXA). I am now
encountering the following:

[ERROR] BUILD ERROR
[INFO]

[INFO] You are requesting xa transaction support for a connector that
supports only local transactions: named: my_users

What is wrong with my plan.xml




bongosdude wrote:




David,

I figured out part of my problems by looking at Bank/Caculator  
samples.

Bank tomcat/jetty plugins depend on the sample sample-datasource
(sample-datasource.car). So it gave me how to create plan.xml for my
datasource connector.  The build was now successful but with  
exception as

below:

Can you show me how can I build gbean for my persistence unit that I
defined in persistence.xml. I could not find out how it can be  
done with

the sample bank/calculator.

INFO] Started deployer:
org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.2/car
org.apache.geronimo.common.DeploymentException: Could not resolve
reference at deploy time for query
?name=persistence/ 
CallingCardUsersUnit 
#org.apache.geronimo.persistence.PersistenceUnitGBean.

No GBeans found.
at
org 
.apache 
.geronimo 
.persistence 
.builder 
.PersistenceContextRefBuilder 
.checkForGBean(PersistenceContextRefBuilder.java:205)

at
org 
.apache 
.geronimo 
.persistence 
.builder 
.PersistenceContextRefBuilder 
.buildNaming(PersistenceContextRefBuilder.java:119)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment 
.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java: 
53)

at
org 
.apache 
.geronimo 
.openejb 
.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java: 
321)

at
org 
.apache 
.geronimo 
.openejb 
.deployment 
.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:286)

at
org 
.apache 
.geronimo 
.openejb 
.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:764)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment 
.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java: 
254)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)




djencks wrote:


Where exactly is the persistence.xml in your ear?

BTW if you use auto-create tables or openjpa "sequences" you almost
certainly need a non-jta-datasource as well, and it should really  
not

have transactions enabled.

thanks
david jencks

On Jan 18, 2009, at 2:52 PM, bongosdude wrote:



in my EJB module, I have created a persistence.xml as below:
type="JTA">

CallingCardUserJPA

org.apache.openjpa.persistence.PersistenceProviderImpl
callingcard_users
com.mycom.services.svc.model.entity.users.User
		com.mycom.services.xvc.model.entity.users.UserRoleclass>







When I build my project using maven2 (i.e. mvn clean install), all
build
succeeded except when it builds jetty/tomcat plugin with the  
following

error:

How can I setup jetty/tomcat plugin plan.xml with a persistence  
unit

that I
defined in persistence.xml?

Please help.

-B

org.apache.geronimo.common.DeploymentException: Could not resolve
reference
at deploy time for query
?name=persistence/
CallingCardUsersUnit
#org.apache.geronimo.persistence.PersistenceUnitGBean.

Re: deployment for MySQL XA.

2009-01-18 Thread David Jencks
The easiest way is to use the admin console database wizard.  You can  
copy the plan out of the wizard to put into your plan.xml source.  You  
can duplicate the xa pool and change the tx element to transaction> for the non-jta datasource


thanks
david jencks

On Jan 18, 2009, at 6:47 PM, bongosdude wrote:



Can someone show me how to create deployment plan for MySQL XA  
datasource?

How is about MS SQL (local transaction)

Thanks
-B

-
B Amigo:super:
--
View this message in context: 
http://www.nabble.com/deployment-for-MySQL-XA.-tp21536125s134p21536125.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: deployment for MySQL XA.

2009-01-18 Thread David Jencks
 Did you try these?  Driver based connectors don't support xa.  Also  
your ms sql sample doesn't include any transaction element at all.


thanks
david jencks

On Jan 18, 2009, at 7:44 PM, Forrest Xia wrote:


MySQL sample:



javax.sql.DataSourceconnectionfactory-interface>


jdbc/SampleDatasource
rootconfig-property-setting>


name="Driver">com.mysql.jdbc.Driver
name="ConnectionURL">jdbc:mysql://localhost:3306/sampledbproperty-setting>
name="CommitBeforeAutocommit">true






5
0
5000blocking-timeout-milliseconds>
15minutes>









MS SQL sample:



javax.sql.DataSourceconnectionfactory-interface>


jdbc/SampleDatasource
name="UserName">username
name="Password">password
name="Driver">com.microsoft.sqlserver.jdbc.SQLServerDriverproperty-setting>
name="ConnectionURL">jdbc:sqlserver://servername: 
1433;DataBaseName=sampledb



5
0
5000blocking-timeout-milliseconds>
15minutes>









Good luck!

Forrest

On Mon, Jan 19, 2009 at 10:47 AM, bongosdude   
wrote:


Can someone show me how to create deployment plan for MySQL XA  
datasource?

How is about MS SQL (local transaction)

Thanks
-B

-
B Amigo:super:
--
View this message in context: 
http://www.nabble.com/deployment-for-MySQL-XA.-tp21536125s134p21536125.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.







Re: java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-18 Thread viola.lu

HI, axiez:

 Have you added activemq-core-.jar (which contains
org.apache.activemq.jndi.ActiveMQInitialContextFactory)  under
$G_Dir\org\apache\activemq\activemq-core\ to your classpath and buildpath?

Thanks.
Viola.Lu


axiez wrote:
> 
> I have the following sample code and jndi.properties file:
> import javax.jms.*;
> import javax.naming.InitialContext;
> import java.util.*;
> import java.io.*;
> public class LogClient {
> public static void main(String[] args) throws Exception {
> Properties p = new Properties();
> p.load(new FileInputStream("jndi.properties"));
> p.put("openejb.authentication.realmName","geronimo-admin");
> InitialContext ctx = new InitialContext(p);
> TopicConnectionFactory factory = (TopicConnectionFactory)
> ctx.lookup("java:comp/env/jms/DefaultActiveMQConnectionFactory");
> TopicConnection connection = factory.createTopicConnection();
> TopicSession session = connection.createTopicSession(false,
> Session.AUTO_ACKNOWLEDGE);
> Topic topic = (Topic)ctx.lookup("java:comp/env/jms/Topic");
> TopicPublisher publisher = session.createPublisher(topic);
> TextMessage msg = session.createTextMessage();
> msg.setText("This is a test message");
> publisher.send(msg);
> publisher.close();
> System.out.println("Message published. Please check application
> server's console to see the response from MDB");
> }
> }
> 
> jndi.properties file:
> java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
> java.naming.provider.url=tcp://localhost:61616
> java.naming.security.principal=system
> java.naming.security.credentials=manager
> 
> I ran the program after successful compilation. Error message is:
> Exception in thread "main" javax.naming.NoInitialContextException: Cannot
> instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
> [Root exception is java.lang.ClassNotFoundException:
> org.apache.activemq.jndi.ActiveMQInitialContextFactory]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21537612.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



java.lang.ClassNotFoundException: org.apache.activemq.jndi.ActiveMQInitialContextFactory

2009-01-18 Thread axiez

I have the following sample code and jndi.properties file:
import javax.jms.*;
import javax.naming.InitialContext;
import java.util.*;
import java.io.*;
public class LogClient {
public static void main(String[] args) throws Exception {
Properties p = new Properties();
p.load(new FileInputStream("jndi.properties"));
p.put("openejb.authentication.realmName","geronimo-admin");
InitialContext ctx = new InitialContext(p);
TopicConnectionFactory factory = (TopicConnectionFactory)
ctx.lookup("java:comp/env/jms/DefaultActiveMQConnectionFactory");
TopicConnection connection = factory.createTopicConnection();
TopicSession session = connection.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
Topic topic = (Topic)ctx.lookup("java:comp/env/jms/Topic");
TopicPublisher publisher = session.createPublisher(topic);
TextMessage msg = session.createTextMessage();
msg.setText("This is a test message");
publisher.send(msg);
publisher.close();
System.out.println("Message published. Please check application
server's console to see the response from MDB");
}
}

jndi.properties file:
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url=tcp://localhost:61616
java.naming.security.principal=system
java.naming.security.credentials=manager

I ran the program after successful compilation. Error message is:
Exception in thread "main" javax.naming.NoInitialContextException: Cannot
instantiate class: org.apache.activemq.jndi.ActiveMQInitialContextFactory
[Root exception is java.lang.ClassNotFoundException:
org.apache.activemq.jndi.ActiveMQInitialContextFactory]

-- 
View this message in context: 
http://www.nabble.com/java.lang.ClassNotFoundException%3A-org.apache.activemq.jndi.ActiveMQInitialContextFactory-tp21537474s134p21537474.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: deployment for MySQL XA.

2009-01-18 Thread Forrest Xia
MySQL sample:




javax.sql.DataSource

jdbc/SampleDatasource
root

com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/sampledb
true





5
0

5000
15








MS SQL sample:




javax.sql.DataSource

jdbc/SampleDatasource
username
password
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:sqlserver://servername:1433;DataBaseName=sampledb


5
0

5000
15








Good luck!

Forrest

On Mon, Jan 19, 2009 at 10:47 AM, bongosdude  wrote:

>
> Can someone show me how to create deployment plan for MySQL XA datasource?
> How is about MS SQL (local transaction)
>
> Thanks
> -B
>
> -
> B Amigo:super:
> --
> View this message in context:
> http://www.nabble.com/deployment-for-MySQL-XA.-tp21536125s134p21536125.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


deployment for MySQL XA.

2009-01-18 Thread bongosdude

Can someone show me how to create deployment plan for MySQL XA datasource?
How is about MS SQL (local transaction)

Thanks
-B

-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/deployment-for-MySQL-XA.-tp21536125s134p21536125.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread bongosdude

David,

my database name is my_users. and I have two dbpool defined to point to the
same database my_users. One is XA and other is non XA.

Thanks


bongosdude wrote:
> 
> 
> David,
> 
> Here is my connector definition in my datasource plan.xml
> 
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
> 
> 
> 
>
> javax.sql.DataSource
> 
> my_users
>  name="DatabaseName">my_users
> 
> 
> 
> 
> 
> 10
> 0
> 
> 
> 
> 
> 
> my_users_notx
>  name="DatabaseName">my_users
> 
> 
> 
> 10
> 0
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I have configured two database pool name: my_users and my_users_no_tx (the
> database driver is mysql. one is XA and other is NONXA). I am now
> encountering the following:
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] You are requesting xa transaction support for a connector that
> supports only local transactions: named: my_users
> 
> What is wrong with my plan.xml
> 
> 
> 
> 
> bongosdude wrote:
>> 
>> 
>> 
>> David,
>> 
>> I figured out part of my problems by looking at Bank/Caculator samples.
>> Bank tomcat/jetty plugins depend on the sample sample-datasource
>> (sample-datasource.car). So it gave me how to create plan.xml for my
>> datasource connector.  The build was now successful but with exception as
>> below:
>> 
>> Can you show me how can I build gbean for my persistence unit that I
>> defined in persistence.xml. I could not find out how it can be done with
>> the sample bank/calculator.
>> 
>> INFO] Started deployer:
>> org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.2/car
>> org.apache.geronimo.common.DeploymentException: Could not resolve
>> reference at deploy time for query
>> ?name=persistence/CallingCardUsersUnit#org.apache.geronimo.persistence.PersistenceUnitGBean.
>> No GBeans found.
>>  at
>> org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.checkForGBean(PersistenceContextRefBuilder.java:205)
>>  at
>> org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.buildNaming(PersistenceContextRefBuilder.java:119)
>>  at
>> org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
>>  at
>> org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)
>>  at
>> org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:286)
>>  at
>> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:764)
>>  at
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
>>  at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 
>> 
>> 
>> 
>> djencks wrote:
>>> 
>>> Where exactly is the persistence.xml in your ear?
>>> 
>>> BTW if you use auto-create tables or openjpa "sequences" you almost  
>>> certainly need a non-jta-datasource as well, and it should really not  
>>> have transactions enabled.
>>> 
>>> thanks
>>> david jencks
>>> 
>>> On Jan 18, 2009, at 2:52 PM, bongosdude wrote:
>>> 

 in my EJB module, I have created a persistence.xml as below:
 
CallingCardUserJPA

 org.apache.openjpa.persistence.PersistenceProviderImpl>>> provider>
callingcard_users
com.mycom.services.svc.model.entity.users.User

 com.mycom.services.xvc.model.entity.users.UserRole




 

 When I build my project using maven2 (i.e. mvn clean install), all  
 build
 succeeded except when it builds jetty/tomcat plugin with the following
 error:

 How can I setup jetty/tomcat plugin plan.xml with a persistence unit  
 that I
 defined in persistence.xml?

 Please help.

 -B

 org.apache.geronimo.common.DeploymentException: Could not resolve  
 reference
 at deploy time for query
 ?name=persistence/ 
 CallingCardUsersUnit 
 #org.apache.geronimo.persistence.PersistenceUnitGBean.
 No GBeans found.
at
 org 
 .apache 
 .geronimo 
 .persistence 
 .builder 
 .PersistenceContextRefBuilder 
 .c

Re: [VOTE] Release DayTrader v2.1.3

2009-01-18 Thread Forrest Xia
Donald,

You know, I have some patches for daytrader trunk, but they should be
applicable for 2.1.3. Do we expect to include those patches to 2.1.3?

Forrest

On Fri, Jan 16, 2009 at 11:56 PM, Kevan Miller wrote:

> Donald,What's the status of this vote? If we need more votes, then please
> ask for a review or cancel...
>
> --kevan
> On Dec 3, 2008, at 3:34 PM, Donald Woods wrote:
>
> All,
>
> I've prepared a release candidate of DayTrader 2.1.3 for your review and
> vote.  This release can only be installed on Geronimo 2.1.3 server or later.
>
> The source level is Rev723010 from the following svn branch:
> https://svn.apache.org/repos/asf/geronimo/daytrader/branches/2.1.3/
>
> When the release vote is approved, I will svn mv the code to:
> https://svn.apache.org/repos/asf/geronimo/daytrader/tags/2.1.3/
>
> The following staging directory contains the maven artifacts to be
> released:
> http://people.apache.org/~dwoods/staging-repo/daytrader/
>
> For your convenience, you can add the following as a plugin repo to install
> DayTrader as a plugin from the staging repo:
> http://people.apache.org/~dwoods/ 
>
> The README and source files can be found here:
> http://people.apache.org/~dwoods/staging-repo/README-daytrader.txt
>
> http://people.apache.org/~dwoods/staging-repo/daytrader/org/apache/geronimo/daytrader/daytrader/2.1.3/daytrader-2.1.3-src.zip
>
> When the release vote is approved, the maven artifacts will be moved to the
> m2-ibiblio-rsync-repository at Apache.
>
>
> [ ] +1 Release DayTrader 2.1.3
> [ ] 0 No opinion
> [ ] -1 Do not release DayTrader 2.1.3 (please provide rationale)
>
> The voting will be open for 72 hours or until we have enough votes,
> whichever is longer.
>
>
> -Donald
>
>
>


Re: Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread bongosdude


David,

Here is my connector definition in my datasource plan.xml

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



   
javax.sql.DataSource

my_users
my_users





10
0





my_users_notx
myusers



10
0









I have configured two database pool name: my_users and my_users_no_tx (the
database driver is mysql. one is XA and other is NONXA). I am now
encountering the following:

[ERROR] BUILD ERROR
[INFO]

[INFO] You are requesting xa transaction support for a connector that
supports only local transactions: named: my_users

What is wrong with my plan.xml




bongosdude wrote:
> 
> 
> 
> David,
> 
> I figured out part of my problems by looking at Bank/Caculator samples.
> Bank tomcat/jetty plugins depend on the sample sample-datasource
> (sample-datasource.car). So it gave me how to create plan.xml for my
> datasource connector.  The build was now successful but with exception as
> below:
> 
> Can you show me how can I build gbean for my persistence unit that I
> defined in persistence.xml. I could not find out how it can be done with
> the sample bank/calculator.
> 
> INFO] Started deployer:
> org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.2/car
> org.apache.geronimo.common.DeploymentException: Could not resolve
> reference at deploy time for query
> ?name=persistence/CallingCardUsersUnit#org.apache.geronimo.persistence.PersistenceUnitGBean.
> No GBeans found.
>   at
> org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.checkForGBean(PersistenceContextRefBuilder.java:205)
>   at
> org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.buildNaming(PersistenceContextRefBuilder.java:119)
>   at
> org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
>   at
> org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)
>   at
> org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:286)
>   at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:764)
>   at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
>   at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> 
> 
> 
> djencks wrote:
>> 
>> Where exactly is the persistence.xml in your ear?
>> 
>> BTW if you use auto-create tables or openjpa "sequences" you almost  
>> certainly need a non-jta-datasource as well, and it should really not  
>> have transactions enabled.
>> 
>> thanks
>> david jencks
>> 
>> On Jan 18, 2009, at 2:52 PM, bongosdude wrote:
>> 
>>>
>>> in my EJB module, I have created a persistence.xml as below:
>>> 
>>> CallingCardUserJPA
>>> 
>>> org.apache.openjpa.persistence.PersistenceProviderImpl>> provider>
>>> callingcard_users
>>> com.mycom.services.svc.model.entity.users.User
>>> 
>>> com.mycom.services.xvc.model.entity.users.UserRole
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> When I build my project using maven2 (i.e. mvn clean install), all  
>>> build
>>> succeeded except when it builds jetty/tomcat plugin with the following
>>> error:
>>>
>>> How can I setup jetty/tomcat plugin plan.xml with a persistence unit  
>>> that I
>>> defined in persistence.xml?
>>>
>>> Please help.
>>>
>>> -B
>>>
>>> org.apache.geronimo.common.DeploymentException: Could not resolve  
>>> reference
>>> at deploy time for query
>>> ?name=persistence/ 
>>> CallingCardUsersUnit 
>>> #org.apache.geronimo.persistence.PersistenceUnitGBean.
>>> No GBeans found.
>>> at
>>> org 
>>> .apache 
>>> .geronimo 
>>> .persistence 
>>> .builder 
>>> .PersistenceContextRefBuilder 
>>> .checkForGBean(PersistenceContextRefBuilder.java:205)
>>> at
>>> org 
>>> .apache 
>>> .geronimo 
>>> .persistence 
>>> .builder 
>>> .PersistenceContextRefBuilder 
>>> .buildNaming(PersistenceContextRefBuilder.java:119)
>>> at
>>> org 
>>> .apache 
>>> .geronimo 
>>> .j2ee 
>>> .deployment 
>>> .NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
>>> at
>>> org 
>>> .apache 
>>>

Re: Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread bongosdude

David,

I figured out part of my problems by looking at Bank/Caculator samples. Bank
tomcat/jetty plugins depend on the sample sample-datasource
(sample-datasource.car). So it gave me how to create plan.xml for my
datasource connector.  The build was now successful but with exception as
below:

Can you show me how can I build gbean for my persistence unit that I defined
in persistence.xml. I could not find out how it can be done with the sample
bank/calculator.

INFO] Started deployer:
org.apache.geronimo.configs/persistence-jpa10-deployer/2.1.2/car
org.apache.geronimo.common.DeploymentException: Could not resolve reference
at deploy time for query
?name=persistence/CallingCardUsersUnit#org.apache.geronimo.persistence.PersistenceUnitGBean.
No GBeans found.
at
org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.checkForGBean(PersistenceContextRefBuilder.java:205)
at
org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.buildNaming(PersistenceContextRefBuilder.java:119)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
at
org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)
at
org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:286)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:764)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)




djencks wrote:
> 
> Where exactly is the persistence.xml in your ear?
> 
> BTW if you use auto-create tables or openjpa "sequences" you almost  
> certainly need a non-jta-datasource as well, and it should really not  
> have transactions enabled.
> 
> thanks
> david jencks
> 
> On Jan 18, 2009, at 2:52 PM, bongosdude wrote:
> 
>>
>> in my EJB module, I have created a persistence.xml as below:
>> 
>>  CallingCardUserJPA
>>  
>> org.apache.openjpa.persistence.PersistenceProviderImpl> provider>
>>  callingcard_users
>>  com.mycom.services.svc.model.entity.users.User
>>  
>> com.mycom.services.xvc.model.entity.users.UserRole
>>  
>>  
>>  
>>  
>> 
>>
>> When I build my project using maven2 (i.e. mvn clean install), all  
>> build
>> succeeded except when it builds jetty/tomcat plugin with the following
>> error:
>>
>> How can I setup jetty/tomcat plugin plan.xml with a persistence unit  
>> that I
>> defined in persistence.xml?
>>
>> Please help.
>>
>> -B
>>
>> org.apache.geronimo.common.DeploymentException: Could not resolve  
>> reference
>> at deploy time for query
>> ?name=persistence/ 
>> CallingCardUsersUnit 
>> #org.apache.geronimo.persistence.PersistenceUnitGBean.
>> No GBeans found.
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .persistence 
>> .builder 
>> .PersistenceContextRefBuilder 
>> .checkForGBean(PersistenceContextRefBuilder.java:205)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .persistence 
>> .builder 
>> .PersistenceContextRefBuilder 
>> .buildNaming(PersistenceContextRefBuilder.java:119)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .j2ee 
>> .deployment 
>> .NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .openejb 
>> .deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .openejb 
>> .deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java: 
>> 286)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: 
>> 764)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .j2ee 
>> .deployment 
>> .EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
>>  at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
>>  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:585)
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .gbean 
>> .runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
>> 34)
>>  at
>> org 
>> .apache 
>> .geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>>
>>
>> -
>> B Amigo:super:
>> -- 
>> View this message in context:
>> http://www.nabble.com/Jetty-Tomcat-plugin-build-failed-with-persistence.xml-tp21534279s134p21534279.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 


--

Re: Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread David Jencks

Where exactly is the persistence.xml in your ear?

BTW if you use auto-create tables or openjpa "sequences" you almost  
certainly need a non-jta-datasource as well, and it should really not  
have transactions enabled.


thanks
david jencks

On Jan 18, 2009, at 2:52 PM, bongosdude wrote:



in my EJB module, I have created a persistence.xml as below:

CallingCardUserJPA

org.apache.openjpa.persistence.PersistenceProviderImplprovider>

callingcard_users
com.mycom.services.svc.model.entity.users.User

com.mycom.services.xvc.model.entity.users.UserRole






When I build my project using maven2 (i.e. mvn clean install), all  
build

succeeded except when it builds jetty/tomcat plugin with the following
error:

How can I setup jetty/tomcat plugin plan.xml with a persistence unit  
that I

defined in persistence.xml?

Please help.

-B

org.apache.geronimo.common.DeploymentException: Could not resolve  
reference

at deploy time for query
?name=persistence/ 
CallingCardUsersUnit 
#org.apache.geronimo.persistence.PersistenceUnitGBean.

No GBeans found.
at
org 
.apache 
.geronimo 
.persistence 
.builder 
.PersistenceContextRefBuilder 
.checkForGBean(PersistenceContextRefBuilder.java:205)

at
org 
.apache 
.geronimo 
.persistence 
.builder 
.PersistenceContextRefBuilder 
.buildNaming(PersistenceContextRefBuilder.java:119)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment 
.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)

at
org 
.apache 
.geronimo 
.openejb 
.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)

at
org 
.apache 
.geronimo 
.openejb 
.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java: 
286)

at
org 
.apache 
.geronimo 
.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java: 
764)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment 
.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
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:585)
at
org 
.apache 
.geronimo 
.gbean 
.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
34)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)



-
B Amigo:super:
--
View this message in context: 
http://www.nabble.com/Jetty-Tomcat-plugin-build-failed-with-persistence.xml-tp21534279s134p21534279.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: How to get hold of a WorkManager in a web app?

2009-01-18 Thread David Jencks
I think there might be a bug in our jndi implementation so you have to  
look up java:/DefaultWorkManager.  If this doesn't help I'll look  
further.


thanks
david jencks

On Jan 18, 2009, at 12:17 PM, fladimir wrote:



Yes, I actually guessed something like that when I checked the full  
stack

trace.

Thanks a lot, it deploys now fine. But the name is not found:

Caused by: javax.naming.NameNotFoundException: java:DefaultWorkManager
at
org 
.apache 
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:169)

at
org 
.apache 
.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:603)

at javax.naming.InitialContext.lookup(InitialContext.java:392)

In:

InitialContext initialContext = new InitialContext();
Object workManager = initialContext.lookup("java:DefaultWorkManager");
LOG.info("WORKMANAGER: " + workManager);

Any advice what name I should try? I guess it should be in  
InitialContext,

no?
--
View this message in context: 
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21532415.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Jetty/Tomcat plugin build failed with persistence.xml

2009-01-18 Thread bongosdude

in my EJB module, I have created a persistence.xml as below:

CallingCardUserJPA

org.apache.openjpa.persistence.PersistenceProviderImpl
callingcard_users
com.mycom.services.svc.model.entity.users.User

com.mycom.services.xvc.model.entity.users.UserRole






When I build my project using maven2 (i.e. mvn clean install), all build
succeeded except when it builds jetty/tomcat plugin with the following
error:

How can I setup jetty/tomcat plugin plan.xml with a persistence unit that I
defined in persistence.xml?

Please help.

-B

org.apache.geronimo.common.DeploymentException: Could not resolve reference
at deploy time for query
?name=persistence/CallingCardUsersUnit#org.apache.geronimo.persistence.PersistenceUnitGBean.
No GBeans found.
at
org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.checkForGBean(PersistenceContextRefBuilder.java:205)
at
org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.buildNaming(PersistenceContextRefBuilder.java:119)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:53)
at
org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.addEnc(EjbDeploymentBuilder.java:321)
at
org.apache.geronimo.openejb.deployment.EjbDeploymentBuilder.buildEnc(EjbDeploymentBuilder.java:286)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.addGBeans(EjbModuleBuilder.java:764)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:647)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
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:585)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)


-
B Amigo:super:
-- 
View this message in context: 
http://www.nabble.com/Jetty-Tomcat-plugin-build-failed-with-persistence.xml-tp21534279s134p21534279.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to get hold of a WorkManager in a web app?

2009-01-18 Thread fladimir

Yes, I actually guessed something like that when I checked the full stack
trace.

Thanks a lot, it deploys now fine. But the name is not found:

Caused by: javax.naming.NameNotFoundException: java:DefaultWorkManager
at
org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:169)
at
org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:603)
at javax.naming.InitialContext.lookup(InitialContext.java:392)

In:

InitialContext initialContext = new InitialContext();
Object workManager = initialContext.lookup("java:DefaultWorkManager");
LOG.info("WORKMANAGER: " + workManager);

Any advice what name I should try? I guess it should be in InitialContext,
no?
-- 
View this message in context: 
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21532415.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Application Server startup failed

2009-01-18 Thread Derek Frost
I have this problem often on my windows development machine. It's due to
the corba service needing port 1050 for a name server. Windows allocates
ports from 1024 upwards for things like web browsers and this port may
be in use already. If you go to a command prompt (Start>Run.. and type
cmd) you can type the command "netstat -b". This lists the ports in use
and the "-b" switch lists the applications they are allocated to. Find
what is using port 1050 (and 1099) and shut it down temporarily. On my
machine it is usually Thunderbird or Firefox. Once Geronimo has started
you can restart this application. It should then be allocated another
port as 1050 (and 1099) will now be in use by Geronimo.

axiez wrote:
> The application server started without any problem when I retried. So
> everything is fine.
>
> axiez wrote:
>   
>> I have been using the application server for couple of weeks. Today, the
>> server startup failed with the following error message:
>> ERROR [GBeanInstanceState] Error while starting; GBean is now in the
>> FAILED state:
>> abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.1.3/car,j2eeType=CORBANameService,name=NameServer"
>> org.apache.geronimo.corba.security.config.ConfigException: Error starting
>> transient name service
>> How can I overcome this?
>>
>> 
>
>   

-- 
If you are not the intended recipient of this e-mail, please accept my 
apologies. In this case the contents and attachments are confidential and must 
not be used, copied, or distributed. Indeed it may be unlawful to do so.

This e-mail (including attachments) has been checked for viruses and should 
have a valid digital signature. If not, it may be corrupted or forged and you 
should contact me before opening any attachment. In any event I accept no 
liability for damage resulting from its use.



Re: How to get hold of a WorkManager in a web app?

2009-01-18 Thread David Jencks
I think that spaces are not legal characters in the query portion of a  
URI so ?name=DefaultWorkManager# (no space after the '=') should work  
better.


thanks
david jencks

On Jan 18, 2009, at 5:20 AM, fladimir wrote:



Unable to set attribute abstractNameQuery to ?name=  
DefaultWorkManager#

Here's the full stack trace:

org.apache.geronimo.common.DeploymentException: Unable to set  
attribute

abstractNameQuery to ?name= DefaultWorkManager#
at
org 
.apache 
.geronimo 
.deployment 
.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:90)

at
org 
.apache 
.geronimo 
.deployment.service.GBeanBuilder.addGBeanData(GBeanBuilder.java:113)

at
org 
.apache 
.geronimo.deployment.service.GBeanBuilder.build(GBeanBuilder.java:98)

at
org 
.apache 
.geronimo 
.deployment 
.NamespaceDrivenBuilderCollection 
.build(NamespaceDrivenBuilderCollection.java:48)

at
org 
.apache 
.geronimo 
.openejb 
.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:539)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment 
.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:595)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
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 
.geronimo 
.gbean 
.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
34)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)

at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
239)

at
org 
.apache 
.geronimo 
.deployment 
.plugin 
.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)

at
org 
.apache 
.geronimo 
.deployment 
.plugin 
.local 
.RedeployCommand.redeploySameConfiguration(RedeployCommand.java:225)

at
org 
.apache 
.geronimo 
.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:101)

at java.lang.Thread.run(Thread.java:619)
Caused by:
org.apache.geronimo.common.propertyeditor.PropertyEditorException:  
Illegal

character in query at index 6: ?name= DefaultWorkManager#
at
org 
.apache 
.geronimo 
.common 
.propertyeditor 
.AbstractNameQueryEditor.getValue(AbstractNameQueryEditor.java:37)

at
org 
.apache 
.geronimo 
.deployment 
.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:83)

... 19 more
Caused by: java.net.URISyntaxException: Illegal character in query  
at index

6: ?name= DefaultWorkManager#
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3072)
at java.net.URI$Parser.parse(URI.java:3024)
at java.net.URI.(URI.java:578)
at
org 
.apache 
.geronimo 
.common 
.propertyeditor 
.AbstractNameQueryEditor.getValue(AbstractNameQueryEditor.java:35)

... 20 more

--
View this message in context: 
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21527752.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: How to get hold of a WorkManager in a web app?

2009-01-18 Thread fladimir



djencks wrote:
> 
> 
> On Jan 14, 2009, at 8:38 AM, fladimir wrote:
> 
>>
>> Unfortunately I couldn't get it to work. I'm really new to gbeans,  
>> though...
>> Maybe someone here (developer?) knows how this is supposed to be done?
>>
>> First I tried putting it inside the  root tag and it  
>> gave me:
>>
>> org.apache.xmlbeans.XmlException: Invalid deployment descriptor:  
>> errors:
>>
>> jar:file:/home/apollo/software/geronimo-tomcat6-javaee5-2.1.3/var/ 
>> temp/geronimo-deployer59214.tmpdir/lobby.ear!/META-INF/geronimo- 
>> application.xml:6:1:
>> error: cvc-complex-type.2.4a: Expected element
>> 'environm...@http://geronimo.apache.org/xml/ns/deployment-1.2'  
>> instead of
>> 'gb...@http://geronimo.apache.org/xml/ns/deployment-1.2' here in  
>> element
>> applicat...@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
>>
>> jar:file:/home/apollo/software/geronimo-tomcat6-javaee5-2.1.3/var/ 
>> temp/geronimo-deployer59214.tmpdir/lobby.ear!/META-INF/geronimo- 
>> application.xml:22:4:
>> error: cvc-complex-type.2.4a: Expected element
>> 'environm...@http://geronimo.apache.org/xml/ns/deployment-1.2'  
>> instead of
>> 'gb...@http://geronimo.apache.org/xml/ns/deployment-1.2' here in  
>> element
>> applicat...@http://geronimo.apache.org/xml/ns/j2ee/application-2.0
> 
> Should work if its the last element... although I'd expect you'd get  
> the same exception as in the openejb-jar.xml.
> 
>>
>>
>>
>> Same happened when I tried putting it inside .
> 
> that won't work
> 
>> Then I tried putting
>> it inside  and it gave me:
>>
>> Unable to set attribute abstractNameQuery to ?name=  
>> DefaultWorkManager#
>> org.apache.geronimo.common.DeploymentException: Unable to set  
>> attribute
>> abstractNameQuery to ?name= DefaultWorkManager#
>>  at
>> org 
>> .apache 
>> .geronimo 
>> .deployment 
>> .service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:90)
> 
> Is there another exception, the cause, in the stack trace?  If so, if  
> you show the complete stack trace we might be able to diagnose the  
> problem.
> 
> thanks
> david jencks
> 
> 
>>
>>
>> I tried putting the gbean-definition in config.xml, inside the module:
>>
>>
>>
>>DefaultWorkManager
>>?name=
>> DefaultWorkManager#
>>
>>
>>
>>
>> and I got:
>>
>> org.apache.geronimo.kernel.config.InvalidConfigException: New GBeans  
>> must be
>> specified with a GBeanInfo and a full AbstractName  
>> configuration=designfa
>> ctory/lobby/0.2.0/car gbeanName=WorkManagerBinding
>>
>> Any help?
>>
>>
>> djencks wrote:
>>>
>>> I assume you are talking about the j2ca work manager we've had for a
>>> long time rather than a newer choice -- I think the ee concurrent  
>>> spec
>>> may also have a work manager and I don't know about ejb 3.1.
>>>
>>> The default work manager isn't bound in jndi right now.  To bind it
>>> you can include a binding gbean like we use for the transaction
>>> manager -- see the plan at plugins/connector/transaction/src/main/ 
>>> plan/
>>> plan.xml or inside the transaction car.  I think yours will look like
>>> this:
>>>
>>> >> class="org.apache.geronimo.gjndi.binding.GBeanBinding">
>>> DefaultWorkManager
>>> ?name=
>>> DefaultWorkManager#
>>> 
>>> JavaContext
>>> 
>>> 
>>>
>>> I think the work manager will then be at java:DefaultWorkManager
>>>
>>> I think you can put this gbean in your geronimo plan for your web app
>>> although there might be ordering issues if you try to look it up
>>> during servlet initialization... you could experiment.
>>>
>>> thanks
>>> david jencks
>>>
>>>
>>> On Jan 11, 2009, at 8:16 AM, fladimir wrote:
>>>

 I've tried searching for this a lot, but I haven't found any
 documentation
 yet of any JNDI name for DefaultWorkManager or anything similar.

 Any advice? The WorkManager is to be used by a session bean.
 -- 
 View this message in context:
 http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21400861.html
 Sent from the Apache Geronimo - Users mailing list archive at
 Nabble.com.

>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21459715.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21527766.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: How to get hold of a WorkManager in a web app?

2009-01-18 Thread fladimir

Unable to set attribute abstractNameQuery to ?name= DefaultWorkManager#
Here's the full stack trace:

org.apache.geronimo.common.DeploymentException: Unable to set attribute
abstractNameQuery to ?name= DefaultWorkManager#
at
org.apache.geronimo.deployment.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:90)
at
org.apache.geronimo.deployment.service.GBeanBuilder.addGBeanData(GBeanBuilder.java:113)
at
org.apache.geronimo.deployment.service.GBeanBuilder.build(GBeanBuilder.java:98)
at
org.apache.geronimo.deployment.NamespaceDrivenBuilderCollection.build(NamespaceDrivenBuilderCollection.java:48)
at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.initContext(EjbModuleBuilder.java:539)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:595)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
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.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.RedeployCommand.redeploySameConfiguration(RedeployCommand.java:225)
at
org.apache.geronimo.deployment.plugin.local.RedeployCommand.run(RedeployCommand.java:101)
at java.lang.Thread.run(Thread.java:619)
Caused by:
org.apache.geronimo.common.propertyeditor.PropertyEditorException: Illegal
character in query at index 6: ?name= DefaultWorkManager#
at
org.apache.geronimo.common.propertyeditor.AbstractNameQueryEditor.getValue(AbstractNameQueryEditor.java:37)
at
org.apache.geronimo.deployment.service.SingleGBeanBuilder.setAttribute(SingleGBeanBuilder.java:83)
... 19 more
Caused by: java.net.URISyntaxException: Illegal character in query at index
6: ?name= DefaultWorkManager#
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3072)
at java.net.URI$Parser.parse(URI.java:3024)
at java.net.URI.(URI.java:578)
at
org.apache.geronimo.common.propertyeditor.AbstractNameQueryEditor.getValue(AbstractNameQueryEditor.java:35)
... 20 more

-- 
View this message in context: 
http://www.nabble.com/How-to-get-hold-of-a-WorkManager-in-a-web-app--tp21400861s134p21527752.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Application Server startup failed

2009-01-18 Thread axiez

The application server started without any problem when I retried. So
everything is fine.

axiez wrote:
> 
> I have been using the application server for couple of weeks. Today, the
> server startup failed with the following error message:
> ERROR [GBeanInstanceState] Error while starting; GBean is now in the
> FAILED state:
> abstractName="org.apache.geronimo.configs/j2ee-corba-yoko/2.1.3/car,j2eeType=CORBANameService,name=NameServer"
> org.apache.geronimo.corba.security.config.ConfigException: Error starting
> transient name service
> How can I overcome this?
> 

-- 
View this message in context: 
http://www.nabble.com/Application-Server-startup-failed-tp21524385s134p21526265.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.