Re: Fatal error configuring enricher

2013-01-03 Thread Romain Manni-Bucau
Hi,

Just updated the article

Now the enricher moved under enricher package because we have another one
(thats the risk to write on trunk feature ;)
Le 4 janv. 2013 02:48, "Sally MacFarlane"  a
écrit :

> I’m using TomEE 1.5.1 and attempted to configure a class loader enricher
> according to
> http://rmannibucau.wordpress.com/2012/09/23/add-the-same-jar-to-all-your-war-without-including-them-thanks-to-tomee/
> 
>
> ** **
>
> Have reproduced the below error on server startup with no config changes
> to TomEE other than adding the enricher (tomee.xml attached)
>
> ** **
>
> INFO: Enterprise application "openejb" loaded.
>
> 04/01/2013 10:25:36 AM org.apache.openejb.assembler.classic.Assembler
> createRecipe
>
> INFO: Creating Service(id=enricher)
>
> 04/01/2013 10:25:36 AM org.apache.openejb.util.OpenEJBErrorHandler
> handleUnknownError
>
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> following stack trace and this message to users@openejb.apache.org :
>
> org.apache.xbean.recipe.ConstructionException: Type class could not be
> found:
> org.apache.openejb.assembler.classic.AdditionalLibClassLoaderEnricherObserver
> 
>
> at
> org.apache.xbean.recipe.ObjectRecipe.getType(ObjectRecipe.java:355)
>
> at
> org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:266)
> 
>
> at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
>
> at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
>
> at
> org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
>
> at
> org.apache.openejb.assembler.classic.Assembler.createService(Assembler.java:1635)
> 
>
> at
> org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:407)
> 
>
> at
> org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:344)**
> **
>
> at
> org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:144)
>
> at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
>
> at
> org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233)**
> **
>
> at
> org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130)
>
> at
> org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
> 
>
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>
> at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 
>
> at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> 
>
> at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
>
> at
> org.apache.catalina.startup.Catalina.load(Catalina.java:633)
>
> at
> org.apache.catalina.startup.Catalina.load(Catalina.java:658)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 
>
> at java.lang.reflect.Method.invoke(Method.java:616)
>
> at
> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
>
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
>
> ** **
>
> Thanks,
>
> ** **
>
> Sally MacFarlane
>
> ** **
>
> Application Engineer,
>
> Enterprise Applications,
>
> ICT Services,
>
> *University of Southern Queensland*
>
> +617 4631 2080
>
> ** **
> --
> This email (including any attached files) is confidential and is for the
> intended recipient(s) only. If you received this email by mistake, please,
> as a courtesy, tell the sender, then delete this email.
>
> The views and opinions are the originator's and do not necessarily reflect
> those of the University of Southern Queensland. Although all reasonable
> precautions were taken to ensure that this email contained no viruses at
> the time it was sent we accept no liability for any losses arising from its
> receipt.
>
> The University of Southern Queensland is a registered provider of
> education with the Australian Government.
> (CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )
>


Fatal error configuring enricher

2013-01-03 Thread Sally MacFarlane
I'm using TomEE 1.5.1 and attempted to configure a class loader enricher 
according to 
http://rmannibucau.wordpress.com/2012/09/23/add-the-same-jar-to-all-your-war-without-including-them-thanks-to-tomee/

Have reproduced the below error on server startup with no config changes to 
TomEE other than adding the enricher (tomee.xml attached)

INFO: Enterprise application "openejb" loaded.
04/01/2013 10:25:36 AM org.apache.openejb.assembler.classic.Assembler 
createRecipe
INFO: Creating Service(id=enricher)
04/01/2013 10:25:36 AM org.apache.openejb.util.OpenEJBErrorHandler 
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the following 
stack trace and this message to users@openejb.apache.org :
org.apache.xbean.recipe.ConstructionException: Type class could not be found: 
org.apache.openejb.assembler.classic.AdditionalLibClassLoaderEnricherObserver
at 
org.apache.xbean.recipe.ObjectRecipe.getType(ObjectRecipe.java:355)
at 
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:266)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
at 
org.apache.openejb.assembler.classic.Assembler.createService(Assembler.java:1635)
at 
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:407)
at 
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:344)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:144)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
at 
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:233)
at 
org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:130)
at 
org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:121)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at 
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at 
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.startup.Catalina.load(Catalina.java:633)
at org.apache.catalina.startup.Catalina.load(Catalina.java:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)
at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)

Thanks,

Sally MacFarlane

Application Engineer,
Enterprise Applications,
ICT Services,
University of Southern Queensland
+617 4631 2080


This email (including any attached files) is confidential and is for the
intended recipient(s) only.  If you received this email by mistake,
please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily
reflect those of the University of Southern Queensland.  Although all
reasonable precautions were taken to ensure that this email contained no
viruses at the time it was sent we accept no liability for any losses
arising from its receipt.

The University of Southern Queensland is a registered provider of education
with the Australian Government.
(CRICOS Institution Code QLD 00244B / NSW 02225M, TEQSA PRV12081 )







  # Specifies the maximum time an invocation could wait for the
  # singleton bean instance to become available before giving up.
  #
  # After the timeout is reached a javax.ejb.ConcurrentAccessTimeoutException
  # will be thrown.
  #
  # Usable time units: nanoseconds, microsecons, milliseconds,
  # seconds, minutes, hours, days.  Or any combination such as
  # "1 hour and 27 minutes and 10 seconds"

  AccessTimeout = 30 seconds





  # Specifies the maximum time an invocation could wait for the
  # stateful bean instance to become available before giving up.
  #
  # After the timeout is reached a javax.ejb.ConcurrentAccessTimeoutException
  # will be thrown.
  #
  # Usable time units: nanoseconds, microsecons, milliseconds,
  # seconds, minutes, hours, days.  Or any combination such as
  # "1 hour and 27 minutes and 10 seconds"

  AccessTimeout = 30 seconds

  #  The passivator is responsible for writing beans to disk
  #  at passivation time. Different pass

Re: Fatal Error

2012-10-28 Thread Romain Manni-Bucau
It is in tomee.xml in conf/, can you paste the whole logs please?
Le 28 oct. 2012 15:41, "Marco de Booij"  a
écrit :

> I nearly gave up :(
>
> Then I saw that the listener that I used was wrong (I used
> org.apache.tomee.catalina.**ServerListener like in my 'all-in
> installation'). I replaced it by org.apache.tomee.loader.**OpenEJBListener
> and now tomee starts and it has a listener. I also added the agent in the
> catalina.sh by hand agent :)
>
> Unfortunately this still does not solve the problem that I started with. I
> still have:
> INFO: Creating Resource(id=My DataSource)
> Oct 28, 2012 3:22:05 PM org.apache.openejb.util.**OpenEJBErrorHandler
> handleUnknownError
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> following stack trace and this message to users@openejb.apache.org :
>  org.apache.xbean.recipe.**ConstructionException: Error invoking factory
> method: public static javax.sql.DataSource org.apache.openejb.resource.**
> jdbc.DataSourceFactory.create(**java.lang.String,boolean,java.**
> lang.Class,java.lang.String,**org.apache.openejb.util.**
> Duration,org.apache.openejb.**util.Duration,org.apache.**openejb.util.Duration)
> throws java.lang.**IllegalAccessException,java.**
> lang.InstantiationException,**java.io.IOException
> at org.apache.xbean.recipe.**ReflectionUtil$StaticFactory.**
> create(ReflectionUtil.java:**1006)
>
>
> When I check further I see that it is always related to a datasource. Both
> the default ones in hsql as my own in postgres. Where is it writing the
> internal databases? It might be a directory that is not write accessible to
> tomcat7.
>
> Regards,
>
> Marco
>
> Op 28-10-12 13:31, Romain Manni-Bucau schreef:
>
>> just copy tomee-loader-1.5.0, not others otherwise you'll need to copy the
>> whole webapp libs
>>
>> if you are not afraid of some code the installation can be summarized in
>> http://svn.apache.org/repos/**asf/openejb/trunk/openejb/**
>> tomee/tomee-common/src/main/**java/org/apache/tomee/**
>> installer/Installer.java<http://svn.apache.org/repos/asf/openejb/trunk/openejb/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java>
>> in
>> method installAll()
>>
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau 
>> <https://twitter.com/**rmannibucau<https://twitter.com/rmannibucau>
>> >*
>> *Blog: 
>> **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>> <http://**rmannibucau.wordpress.com/ <http://rmannibucau.wordpress.com/>>
>> *LinkedIn: 
>> **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>
>>
>>
>>
>> 2012/10/28 Marco de Booij 
>>
>>  I must do something wrong. I copied one-by-one the following jars:
>>> - tomee-catalina-1.5.0.jar (for the org.apache.tomee.loader.**
>>> OpenEJBListener)
>>> - tomee-loader-1.5.0.jar (for the org/apache/tomee/loader/
>>> TomcatHelper)
>>> - openejb-loader-4.5.0.jar (for the org/apache/openejb/loader/**
>>> SystemInstance)
>>> - openejb-core-4.5.0.jar (for the org/apache/openejb/core/**
>>> ThreadContextListener)
>>>
>>> I also copied tomee-webapp-1.5.0.jar like you told but still it keeps
>>> missing classes (org/apache/openejb/server/ServiceManager). I can
>>> continue if you want but I am afraid that I end up with putting all
>>> libraries in the tomee.war file in the tomcat7 lib. This way an upgrade
>>> will become the lot of work I want to avoid.
>>>
>>> regards,
>>>
>>> Marco
>>> Op 28-10-12 12:22, Romain Manni-Bucau schreef:
>>>
>>>  You just need tomee-loader in lib of tomcat, tomee webapp and the
>>>> openejblistener
>>>> Le 28 oct. 2012 11:58, "Marco de Booij"  a
>>>> écrit :
>>>>
>>>>   So how do I solve this? I already copied tomee-catalina-1.5.0.jar and
>>>>
>>>>> tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not
>>>>> enough) and it misses another class (org/apache/openejb/loader/**
>>>>> SystemInstance).
>>>>>
>>>>> Regards,
>>>>>
>>>>> Marco
>>>>>
>>>>>
>>>>>
>


Re: Fatal Error

2012-10-28 Thread Marco de Booij

I found it myself :) :)

The tomcat7 installation does not contain a tomcat-jdbc.jar. I copied 
the one from the stand-alone tomee and after the restart my applications 
work.


Regards,

Marco

Op 28-10-12 15:40, Marco de Booij schreef:

I nearly gave up :(

Then I saw that the listener that I used was wrong (I used 
org.apache.tomee.catalina.ServerListener like in my 'all-in 
installation'). I replaced it by 
org.apache.tomee.loader.OpenEJBListener and now tomee starts and it 
has a listener. I also added the agent in the catalina.sh by hand 
agent :)


Unfortunately this still does not solve the problem that I started 
with. I still have:

INFO: Creating Resource(id=My DataSource)
Oct 28, 2012 3:22:05 PM org.apache.openejb.util.OpenEJBErrorHandler 
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the 
following stack trace and this message to users@openejb.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error invoking factory 
method: public static javax.sql.DataSource 
org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) 
throws 
java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException
at 
org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1006)



When I check further I see that it is always related to a datasource. 
Both the default ones in hsql as my own in postgres. Where is it 
writing the internal databases? It might be a directory that is not 
write accessible to tomcat7.


Regards,

Marco




Re: Fatal Error

2012-10-28 Thread Marco de Booij

I nearly gave up :(

Then I saw that the listener that I used was wrong (I used 
org.apache.tomee.catalina.ServerListener like in my 'all-in 
installation'). I replaced it by org.apache.tomee.loader.OpenEJBListener 
and now tomee starts and it has a listener. I also added the agent in 
the catalina.sh by hand agent :)


Unfortunately this still does not solve the problem that I started with. 
I still have:

INFO: Creating Resource(id=My DataSource)
Oct 28, 2012 3:22:05 PM org.apache.openejb.util.OpenEJBErrorHandler 
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the 
following stack trace and this message to users@openejb.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error invoking factory 
method: public static javax.sql.DataSource 
org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) 
throws 
java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException
at 
org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1006)



When I check further I see that it is always related to a datasource. 
Both the default ones in hsql as my own in postgres. Where is it writing 
the internal databases? It might be a directory that is not write 
accessible to tomcat7.


Regards,

Marco

Op 28-10-12 13:31, Romain Manni-Bucau schreef:

just copy tomee-loader-1.5.0, not others otherwise you'll need to copy the
whole webapp libs

if you are not afraid of some code the installation can be summarized in
http://svn.apache.org/repos/asf/openejb/trunk/openejb/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java
in
method installAll()

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/28 Marco de Booij 


I must do something wrong. I copied one-by-one the following jars:
- tomee-catalina-1.5.0.jar (for the org.apache.tomee.loader.**
OpenEJBListener)
- tomee-loader-1.5.0.jar (for the org/apache/tomee/loader/**TomcatHelper)
- openejb-loader-4.5.0.jar (for the org/apache/openejb/loader/**
SystemInstance)
- openejb-core-4.5.0.jar (for the org/apache/openejb/core/**
ThreadContextListener)

I also copied tomee-webapp-1.5.0.jar like you told but still it keeps
missing classes (org/apache/openejb/server/**ServiceManager). I can
continue if you want but I am afraid that I end up with putting all
libraries in the tomee.war file in the tomcat7 lib. This way an upgrade
will become the lot of work I want to avoid.

regards,

Marco
Op 28-10-12 12:22, Romain Manni-Bucau schreef:


You just need tomee-loader in lib of tomcat, tomee webapp and the
openejblistener
Le 28 oct. 2012 11:58, "Marco de Booij"  a
écrit :

  So how do I solve this? I already copied tomee-catalina-1.5.0.jar and

tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not
enough) and it misses another class (org/apache/openejb/loader/**
SystemInstance).

Regards,

Marco






Re: Fatal Error

2012-10-28 Thread Romain Manni-Bucau
just copy tomee-loader-1.5.0, not others otherwise you'll need to copy the
whole webapp libs

if you are not afraid of some code the installation can be summarized in
http://svn.apache.org/repos/asf/openejb/trunk/openejb/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java
in
method installAll()

*Romain Manni-Bucau*
*Twitter: @rmannibucau *
*Blog: **http://rmannibucau.wordpress.com/*
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/28 Marco de Booij 

> I must do something wrong. I copied one-by-one the following jars:
> - tomee-catalina-1.5.0.jar (for the org.apache.tomee.loader.**
> OpenEJBListener)
> - tomee-loader-1.5.0.jar (for the org/apache/tomee/loader/**TomcatHelper)
> - openejb-loader-4.5.0.jar (for the org/apache/openejb/loader/**
> SystemInstance)
> - openejb-core-4.5.0.jar (for the org/apache/openejb/core/**
> ThreadContextListener)
>
> I also copied tomee-webapp-1.5.0.jar like you told but still it keeps
> missing classes (org/apache/openejb/server/**ServiceManager). I can
> continue if you want but I am afraid that I end up with putting all
> libraries in the tomee.war file in the tomcat7 lib. This way an upgrade
> will become the lot of work I want to avoid.
>
> regards,
>
> Marco
> Op 28-10-12 12:22, Romain Manni-Bucau schreef:
>
>> You just need tomee-loader in lib of tomcat, tomee webapp and the
>> openejblistener
>> Le 28 oct. 2012 11:58, "Marco de Booij"  a
>> écrit :
>>
>>  So how do I solve this? I already copied tomee-catalina-1.5.0.jar and
>>> tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not
>>> enough) and it misses another class (org/apache/openejb/loader/**
>>> SystemInstance).
>>>
>>> Regards,
>>>
>>> Marco
>>>
>>>
>


Re: Fatal Error

2012-10-28 Thread Marco de Booij

I must do something wrong. I copied one-by-one the following jars:
- tomee-catalina-1.5.0.jar (for the org.apache.tomee.loader.OpenEJBListener)
- tomee-loader-1.5.0.jar (for the org/apache/tomee/loader/TomcatHelper)
- openejb-loader-4.5.0.jar (for the 
org/apache/openejb/loader/SystemInstance)
- openejb-core-4.5.0.jar (for the 
org/apache/openejb/core/ThreadContextListener)


I also copied tomee-webapp-1.5.0.jar like you told but still it keeps 
missing classes (org/apache/openejb/server/ServiceManager). I can 
continue if you want but I am afraid that I end up with putting all 
libraries in the tomee.war file in the tomcat7 lib. This way an upgrade 
will become the lot of work I want to avoid.


regards,

Marco
Op 28-10-12 12:22, Romain Manni-Bucau schreef:

You just need tomee-loader in lib of tomcat, tomee webapp and the
openejblistener
Le 28 oct. 2012 11:58, "Marco de Booij"  a
écrit :


So how do I solve this? I already copied tomee-catalina-1.5.0.jar and
tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not
enough) and it misses another class (org/apache/openejb/loader/**
SystemInstance).

Regards,

Marco





Re: Fatal Error

2012-10-28 Thread Romain Manni-Bucau
You just need tomee-loader in lib of tomcat, tomee webapp and the
openejblistener
Le 28 oct. 2012 11:58, "Marco de Booij"  a
écrit :

> So how do I solve this? I already copied tomee-catalina-1.5.0.jar and
> tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not
> enough) and it misses another class (org/apache/openejb/loader/**
> SystemInstance).
>
> Regards,
>
> Marco
> Op 28-10-12 11:31, Romain Manni-Bucau schreef:
>
>> Yep thats org.apache.tomee.loader.**OpenEJBListener for the install with
>> tomee webapp
>> Le 28 oct. 2012 11:26, "Marco de Booij"  a
>> écrit :
>>
>>  I added the listener as the first one. When I start tomcat7 it fails
>>> because it cannot find the ServerListener of tomee. Do I need to add a
>>> jar
>>> from tomee into the classpath of tomcat7? I checked the tomee
>>> documentation
>>> and cannot find a description on how to use the drop-in.
>>>
>>>
>


Re: Fatal Error

2012-10-28 Thread Marco de Booij
So how do I solve this? I already copied tomee-catalina-1.5.0.jar and 
tomee-loader-1.5.0.jar (because the tomee-catalina-1.5.0.jar was not 
enough) and it misses another class 
(org/apache/openejb/loader/SystemInstance).


Regards,

Marco
Op 28-10-12 11:31, Romain Manni-Bucau schreef:

Yep thats org.apache.tomee.loader.OpenEJBListener for the install with
tomee webapp
Le 28 oct. 2012 11:26, "Marco de Booij"  a
écrit :


I added the listener as the first one. When I start tomcat7 it fails
because it cannot find the ServerListener of tomee. Do I need to add a jar
from tomee into the classpath of tomcat7? I checked the tomee documentation
and cannot find a description on how to use the drop-in.





Re: Fatal Error

2012-10-28 Thread Romain Manni-Bucau
Yep thats org.apache.tomee.loader.OpenEJBListener for the install with
tomee webapp
Le 28 oct. 2012 11:26, "Marco de Booij"  a
écrit :

> I added the listener as the first one. When I start tomcat7 it fails
> because it cannot find the ServerListener of tomee. Do I need to add a jar
> from tomee into the classpath of tomcat7? I checked the tomee documentation
> and cannot find a description on how to use the drop-in.
>
> 
>   
>   
>   
>   
>   
>
> WARNING: Catalina.start using conf/server.xml: Error at (24, 68) :
> org.apache.tomee.catalina.**ServerListener
> Oct 28, 2012 11:19:46 AM org.apache.tomcat.util.**digester.Digester
> startElement
> SEVERE: Begin event threw exception
> java.lang.**ClassNotFoundException: org.apache.tomee.catalina.**
> ServerListener
>
> Regards,
>
> Marco
> Op 28-10-12 10:52, Jacek Laskowski schreef:
>
>> On Sun, Oct 28, 2012 at 11:36 AM, Marco de Booij
>>  wrote:
>>
>>  
>>> 
>>>
>>>>> className="org.apache.**catalina.core.**JreMemoryLeakPreventionListene**r"
>>> />
>>>>> className="org.apache.**catalina.mbeans.**GlobalResourcesLifecycleListen
>>> **er" />
>>>>> className="org.apache.**catalina.core.**ThreadLocalLeakPreventionListe**ner"
>>> />
>>>
>> Add 
>> to the listeners. As a bonus, it will also check whether or not the
>> jars are in a good place as the listener is expected to be loaded at
>> Tomcat's startup.
>>
>> Jacek
>>
>>
>


Re: Fatal Error

2012-10-28 Thread Marco de Booij
I added the listener as the first one. When I start tomcat7 it fails 
because it cannot find the ServerListener of tomee. Do I need to add a 
jar from tomee into the classpath of tomcat7? I checked the tomee 
documentation and cannot find a description on how to use the drop-in.



  
  
  className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />


WARNING: Catalina.start using conf/server.xml: Error at (24, 68) : 
org.apache.tomee.catalina.ServerListener
Oct 28, 2012 11:19:46 AM org.apache.tomcat.util.digester.Digester 
startElement

SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.tomee.catalina.ServerListener

Regards,

Marco
Op 28-10-12 10:52, Jacek Laskowski schreef:

On Sun, Oct 28, 2012 at 11:36 AM, Marco de Booij
 wrote:




   
   
   
   

Add 
to the listeners. As a bonus, it will also check whether or not the
jars are in a good place as the listener is expected to be loaded at
Tomcat's startup.

Jacek





Re: Fatal Error

2012-10-28 Thread Jacek Laskowski
On Sun, Oct 28, 2012 at 11:36 AM, Marco de Booij
 wrote:

> 
> 
>   
>className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
>className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

Add 
to the listeners. As a bonus, it will also check whether or not the
jars are in a good place as the listener is expected to be loaded at
Tomcat's startup.

Jacek

-- 
Jacek Laskowski
Functional languages (Clojure), Java EE, and IBM WebSphere -
http://blog.japila.pl
"Never discourage anyone who continually makes progress, no matter how
slow." Plato


Re: Fatal Error

2012-10-28 Thread Romain Manni-Bucau
Yes this listener makes tomcat being tomee
Le 28 oct. 2012 10:37, "Marco de Booij"  a
écrit :

> I downloaded the tomee-plus-webapp-1.5.0.war and renamed it to tomee.war.
> This I deployed through the tomcat manager console. I do not know what you
> mean by the server listener to be in the server.xml. My server.xml of
> tomcat7 looks like (I removed the comments so it is much smaller. Hope I
> did not remove too much):
> 
> 
>   
>   
>   
>   
>   
>type="org.apache.catalina.**UserDatabase"
>   description="User database that can be updated and saved"
> factory="org.apache.catalina.**users.**MemoryUserDatabaseFactory"
>   pathname="conf/tomcat-users.**xml" />
>   
>   
> connectionTimeout="2"
>URIEncoding="UTF-8"
>redirectPort="8443" />
> 
> 
>   
> resourceName="UserDatabase"/>
>   
>unpackWARs="true" autoDeploy="true">
>  directory="logs"
>prefix="localhost_access_log." suffix=".txt"
>pattern="%h %l %u %t "%r" %s %b" />
>
>   
> 
>   
> 
>
> In Tomee there is an optional menu option to install a listener. Is this
> the one you meant? If I click on that option I get a screen with the
> Catalina Home, Catalina Base, and Catalina server.xml. When I click on
> Install I get an error that the openejb/installer does not exist. My
> Catalina Home and Catalina Base are owned by root and do not have write
> rights for group and others.
>
> I checked the server.xml that I have locally. This comes from the package
> tomee plus with tomcat7 included. There I only find a tomee thing
> () in
> the shutdown part.
>
> Regards,
>
> Marco
>
> Op 28-10-12 00:24, Romain Manni-Bucau schreef:
>
>> How is tomee installed? Is your sercer.xml ok (does it contain server
>> listener)?
>> Le 27 oct. 2012 23:20, "Marco de Booij"  a
>> écrit :
>>
>>  Hello,
>>>
>>> I have installed Tomcat 7.0.28 (from the Wheezy test branch) on a server
>>> with Debian Squeeze. I copied the postgresql-8.4-703.jdbc4.jar to the
>>> /usr/share/tomcat7/lib lib. I deployed the tomee-plus-webapp-1.5.0.war
>>> and
>>> I start tomcat7 as a service the file openejb.xml is created in
>>> /etc/tomcat7. In this file I added the following datasources:
>>> 
>>>  JdbcDriver   org.postgresql.Driver
>>>  JdbcUrl  jdbc:postgresql://localhost/prda
>>>  UserName user1
>>>  Password pwd1
>>>  JtaManaged   true
>>> 
>>>
>>> 
>>>  JdbcDriver   org.postgresql.Driver
>>>  JdbcUrl  jdbc:postgresql://localhost/prda
>>>  UserName user2
>>>  Password pwd2
>>>  JtaManaged   true
>>> 
>>>
>>> When I start tomcat7 again I get an error message that tells me to send
>>> it
>>> to this list.
>>>
>>> Oct 27, 2012 11:01:10 PM org.apache.openejb.util.OpenEJBErrorHandler
>>> handleUnknownError
>>> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
>>> following stack trace and this message to users@openejb.apache.org :
>>>   org.apache.xbean.recipe.ConstructionException: Error invoking
>>> factory
>>> method: public static javax.sql.DataSource org.apache.openejb.resource.**
>>> jdbc.DataSourceFactory.create(java.lang.String,boolean,**java.**
>>> lang.Class,java.lang.String,org.apache.openejb.util.**
>>> Duration,org.apache.openejb.util.Duration,org.apache.
>>> openejb.util.Duration)
>>> throws java.lang.IllegalAccessException,java.**
>>> lang.InstantiationException,java.io.IOException
>>>  at org.apache.xbean.recipe.ReflectionUtil$StaticFactory.***
>>> *
>>> create(ReflectionUtil.java:1006)
>>>
>>> Is this a bug or did I forget to do something or did something wrong?
>>> When
>>> I have it working the same way with apache-tomee-1.5.0-plus.tar.gz on
>>> another server (I added the datasources in the tomee.xml file).
>>>
>>> Regards,
>>>
>>> Marco
>>>
>>>
>


Re: Fatal Error

2012-10-28 Thread Marco de Booij
I downloaded the tomee-plus-webapp-1.5.0.war and renamed it to 
tomee.war. This I deployed through the tomcat manager console. I do not 
know what you mean by the server listener to be in the server.xml. My 
server.xml of tomcat7 looks like (I removed the comments so it is much 
smaller. Hope I did not remove too much):



  
  className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  

  
  



  

  
  
directory="logs"

   prefix="localhost_access_log." suffix=".txt"
   pattern="%h %l %u %t "%r" %s %b" />

  

  


In Tomee there is an optional menu option to install a listener. Is this 
the one you meant? If I click on that option I get a screen with the 
Catalina Home, Catalina Base, and Catalina server.xml. When I click on 
Install I get an error that the openejb/installer does not exist. My 
Catalina Home and Catalina Base are owned by root and do not have write 
rights for group and others.


I checked the server.xml that I have locally. This comes from the 
package tomee plus with tomcat7 included. There I only find a tomee 
thing (/>) in the shutdown part.


Regards,

Marco

Op 28-10-12 00:24, Romain Manni-Bucau schreef:

How is tomee installed? Is your sercer.xml ok (does it contain server
listener)?
Le 27 oct. 2012 23:20, "Marco de Booij"  a
écrit :


Hello,

I have installed Tomcat 7.0.28 (from the Wheezy test branch) on a server
with Debian Squeeze. I copied the postgresql-8.4-703.jdbc4.jar to the
/usr/share/tomcat7/lib lib. I deployed the tomee-plus-webapp-1.5.0.war and
I start tomcat7 as a service the file openejb.xml is created in
/etc/tomcat7. In this file I added the following datasources:

 JdbcDriver   org.postgresql.Driver
 JdbcUrl  jdbc:postgresql://localhost/**prda
 UserName user1
 Password pwd1
 JtaManaged   true



 JdbcDriver   org.postgresql.Driver
 JdbcUrl  jdbc:postgresql://localhost/**prda
 UserName user2
 Password pwd2
 JtaManaged   true


When I start tomcat7 again I get an error message that tells me to send it
to this list.

Oct 27, 2012 11:01:10 PM org.apache.openejb.util.**OpenEJBErrorHandler
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
following stack trace and this message to users@openejb.apache.org :
  org.apache.xbean.recipe.**ConstructionException: Error invoking factory
method: public static javax.sql.DataSource org.apache.openejb.resource.**
jdbc.DataSourceFactory.create(**java.lang.String,boolean,java.**
lang.Class,java.lang.String,**org.apache.openejb.util.**
Duration,org.apache.openejb.**util.Duration,org.apache.**openejb.util.Duration)
throws java.lang.**IllegalAccessException,java.**
lang.InstantiationException,**java.io.IOException
 at org.apache.xbean.recipe.**ReflectionUtil$StaticFactory.**
create(ReflectionUtil.java:**1006)

Is this a bug or did I forget to do something or did something wrong? When
I have it working the same way with apache-tomee-1.5.0-plus.tar.gz on
another server (I added the datasources in the tomee.xml file).

Regards,

Marco





Re: Fatal Error

2012-10-27 Thread Romain Manni-Bucau
How is tomee installed? Is your sercer.xml ok (does it contain server
listener)?
Le 27 oct. 2012 23:20, "Marco de Booij"  a
écrit :

> Hello,
>
> I have installed Tomcat 7.0.28 (from the Wheezy test branch) on a server
> with Debian Squeeze. I copied the postgresql-8.4-703.jdbc4.jar to the
> /usr/share/tomcat7/lib lib. I deployed the tomee-plus-webapp-1.5.0.war and
> I start tomcat7 as a service the file openejb.xml is created in
> /etc/tomcat7. In this file I added the following datasources:
> 
> JdbcDriver   org.postgresql.Driver
> JdbcUrl  jdbc:postgresql://localhost/**prda
> UserName user1
> Password pwd1
> JtaManaged   true
> 
>
> 
> JdbcDriver   org.postgresql.Driver
> JdbcUrl  jdbc:postgresql://localhost/**prda
> UserName user2
> Password pwd2
> JtaManaged   true
> 
>
> When I start tomcat7 again I get an error message that tells me to send it
> to this list.
>
> Oct 27, 2012 11:01:10 PM org.apache.openejb.util.**OpenEJBErrorHandler
> handleUnknownError
> SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the
> following stack trace and this message to users@openejb.apache.org :
>  org.apache.xbean.recipe.**ConstructionException: Error invoking factory
> method: public static javax.sql.DataSource org.apache.openejb.resource.**
> jdbc.DataSourceFactory.create(**java.lang.String,boolean,java.**
> lang.Class,java.lang.String,**org.apache.openejb.util.**
> Duration,org.apache.openejb.**util.Duration,org.apache.**openejb.util.Duration)
> throws java.lang.**IllegalAccessException,java.**
> lang.InstantiationException,**java.io.IOException
> at org.apache.xbean.recipe.**ReflectionUtil$StaticFactory.**
> create(ReflectionUtil.java:**1006)
> at org.apache.xbean.recipe.**ObjectRecipe.internalCreate(**
> ObjectRecipe.java:276)
> at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:96)
> at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:61)
> at org.apache.xbean.recipe.**AbstractRecipe.create(**
> AbstractRecipe.java:49)
> at org.apache.openejb.assembler.**classic.Assembler.**
> createResource(Assembler.java:**1660)
> at org.apache.openejb.assembler.**classic.Assembler.**
> buildContainerSystem(**Assembler.java:422)
> at org.apache.openejb.assembler.**classic.Assembler.build(**
> Assembler.java:341)
> at org.apache.openejb.OpenEJB$**Instance.(OpenEJB.java:**
> 144)
> at org.apache.openejb.OpenEJB.**init(OpenEJB.java:290)
> at org.apache.tomee.catalina.**TomcatLoader.initialize(**
> TomcatLoader.java:231)
> at org.apache.tomee.catalina.**TomcatLoader.init(**
> TomcatLoader.java:131)
> at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
> at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
> NativeMethodAccessorImpl.java:**57)
> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
> DelegatingMethodAccessorImpl.**java:43)
> at java.lang.reflect.Method.**invoke(Method.java:616)
> at org.apache.openejb.loader.**Embedder.init(Embedder.java:**77)
> at org.apache.tomee.loader.**TomcatHook.hook(TomcatHook.**
> java:173)
> at sun.reflect.**NativeMethodAccessorImpl.**invoke0(Native Method)
> at sun.reflect.**NativeMethodAccessorImpl.**invoke(**
> NativeMethodAccessorImpl.java:**57)
> at sun.reflect.**DelegatingMethodAccessorImpl.**invoke(**
> DelegatingMethodAccessorImpl.**java:43)
> at java.lang.reflect.Method.**invoke(Method.java:616)
> at org.apache.tomee.loader.**TomcatEmbedder.embed(**
> TomcatEmbedder.java:100)
> at org.apache.tomee.loader.**LoaderServlet.init(**
> LoaderServlet.java:66)
> at org.apache.catalina.core.**StandardWrapper.initServlet(**
> StandardWrapper.java:1266)
> at org.apache.catalina.core.**StandardWrapper.loadServlet(**
> StandardWrapper.java:1185)
> at org.apache.catalina.core.**StandardWrapper.load(**
> StandardWrapper.java:1080)
> at org.apache.catalina.core.**StandardContext.loadOnStartup(**
> StandardContext.java:5026)
> at org.apache.catalina.core.**StandardContext.startInternal(**
> StandardContext.java:5313)
> at org.apache.catalina.util.**LifecycleBase.start(**
> LifecycleBase.java:150)
> at org.apache.catalina.core.**ContainerBase.**addChildInternal(**
> ContainerBase.java:899)
> at org.apache.catalina.core.**ContainerBase.addChild(**
> ContainerBase.java:875)
> at org.apache.catalina.core.**StandardHost.addChild(**
> StandardHost.java:618)
> at org.apache.catalina.

Fatal Error

2012-10-27 Thread Marco de Booij

Hello,

I have installed Tomcat 7.0.28 (from the Wheezy test branch) on a server 
with Debian Squeeze. I copied the postgresql-8.4-703.jdbc4.jar to the 
/usr/share/tomcat7/lib lib. I deployed the tomee-plus-webapp-1.5.0.war 
and I start tomcat7 as a service the file openejb.xml is created in 
/etc/tomcat7. In this file I added the following datasources:


JdbcDriver   org.postgresql.Driver
JdbcUrl  jdbc:postgresql://localhost/prda
UserName user1
Password pwd1
JtaManaged   true



JdbcDriver   org.postgresql.Driver
JdbcUrl  jdbc:postgresql://localhost/prda
UserName user2
Password pwd2
JtaManaged   true


When I start tomcat7 again I get an error message that tells me to send 
it to this list.


Oct 27, 2012 11:01:10 PM org.apache.openejb.util.OpenEJBErrorHandler 
handleUnknownError
SEVERE: FATAL ERROR: Unknown error in Assembler.  Please send the 
following stack trace and this message to users@openejb.apache.org :
 org.apache.xbean.recipe.ConstructionException: Error invoking factory 
method: public static javax.sql.DataSource 
org.apache.openejb.resource.jdbc.DataSourceFactory.create(java.lang.String,boolean,java.lang.Class,java.lang.String,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration,org.apache.openejb.util.Duration) 
throws 
java.lang.IllegalAccessException,java.lang.InstantiationException,java.io.IOException
at 
org.apache.xbean.recipe.ReflectionUtil$StaticFactory.create(ReflectionUtil.java:1006)
at 
org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
at 
org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:49)
at 
org.apache.openejb.assembler.classic.Assembler.createResource(Assembler.java:1660)
at 
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:422)
at 
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:341)

at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:144)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:290)
at 
org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:231)
at 
org.apache.tomee.catalina.TomcatLoader.init(TomcatLoader.java:131)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.openejb.loader.Embedder.init(Embedder.java:77)
at org.apache.tomee.loader.TomcatHook.hook(TomcatHook.java:173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.tomee.loader.TomcatEmbedder.embed(TomcatEmbedder.java:100)
at 
org.apache.tomee.loader.LoaderServlet.init(LoaderServlet.java:66)
at 
org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5026)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5313)
at 
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at 
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.NoClassDefFoundError: 
org/apache/tomcat/jdbc/pool/PoolProperties
at 
org.apache.tomee.jdbc.TomEEDataSourceCreator.pool(TomEEDataSourceCreator.java:79)
at

Re: @Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread David Blevins

On Sep 29, 2011, at 8:43 PM, sarah_a180 wrote:

> You're quite right of course. Thanks for the quick reply. :-)

No problem.  Wish they were all that easy!

> As a quick question: would you recommend I upgrade to the beta now? We're 
> using OpenEJB for development & testing but JBoss in production. Is there a 
> features list somewhere?

I'd definitely try the 4.0.0-beta-1 when it's released.  It takes a couple days 
to go from proposed binaries to actually publishing them, but I can guarantee 
you won't miss the announcement :)

The feature list is more or less as follows; complete EJB 3.1 and complete ... 
well ... guess we'll have to wait for the announcement on that one ;)


-David

> On Sep 29, 2011, at 7:33 PM, David Blevins-2 [via OpenEJB] wrote:
> 
>> 
>> On Sep 29, 2011, at 6:12 PM, sarah_a180 wrote: 
>> 
>>> When I tag one of my @Singleton beans with a @PostActivate, I am getting 
>>> the 
>>> stack trace below. I can probably work around this for the short term, but 
>>> a 
>>> fix would be nice. :-) 
>>> 
>>> If you need more information or a sample project, I can probably get that. 
>>> (It'd be a little bit of work since our beans are proprietary.) 
>> 
>> This is a bug I think is fixed in the coming 4.0.0 beta 1 (uploading those 
>> binaries now actually). 
>> 
>> The issue is that @Singleton beans aren't allowed to have @PrePassivate, 
>> @PostActivate methods so the data model we use has (had) read-only lists for 
>> those fields.  What should be happing and will happen in 4.0.0 is that we 
>> will still collect those invalid callbacks and report them more gracefully 
>> at the end of deployment with all other issues the app may have.   I can't 
>> recall offhand if it result in a rejected deployment or us logging that we 
>> will ignore those annotations.  It will be one of the two. 
>> 
>> -David 
>> 
>> 
>> 
>> 
>> If you reply to this email, your message will be added to the discussion 
>> below:
>> http://openejb.979440.n4.nabble.com/Singleton-PostActivate-and-FATAL-ERROR-Unknown-error-in-Assembler-tp3858298p3858449.html
>> To unsubscribe from @Singleton, @PostActivate and FATAL ERROR: Unknown error 
>> in Assembler, click here.
> 
> 
> 
> --
> View this message in context: 
> http://openejb.979440.n4.nabble.com/Singleton-PostActivate-and-FATAL-ERROR-Unknown-error-in-Assembler-tp3858298p3858656.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.



Re: @Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread sarah_a180
You're quite right of course. Thanks for the quick reply. :-)

As a quick question: would you recommend I upgrade to the beta now? We're using 
OpenEJB for development & testing but JBoss in production. Is there a features 
list somewhere?

Anyway thanks for the great product and for the quick help,
  Sarah Gerweck

On Sep 29, 2011, at 7:33 PM, David Blevins-2 [via OpenEJB] wrote:

> 
> On Sep 29, 2011, at 6:12 PM, sarah_a180 wrote: 
> 
> > When I tag one of my @Singleton beans with a @PostActivate, I am getting 
> > the 
> > stack trace below. I can probably work around this for the short term, but 
> > a 
> > fix would be nice. :-) 
> > 
> > If you need more information or a sample project, I can probably get that. 
> > (It'd be a little bit of work since our beans are proprietary.) 
> 
> This is a bug I think is fixed in the coming 4.0.0 beta 1 (uploading those 
> binaries now actually). 
> 
> The issue is that @Singleton beans aren't allowed to have @PrePassivate, 
> @PostActivate methods so the data model we use has (had) read-only lists for 
> those fields.  What should be happing and will happen in 4.0.0 is that we 
> will still collect those invalid callbacks and report them more gracefully at 
> the end of deployment with all other issues the app may have.   I can't 
> recall offhand if it result in a rejected deployment or us logging that we 
> will ignore those annotations.  It will be one of the two. 
> 
> -David 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://openejb.979440.n4.nabble.com/Singleton-PostActivate-and-FATAL-ERROR-Unknown-error-in-Assembler-tp3858298p3858449.html
> To unsubscribe from @Singleton, @PostActivate and FATAL ERROR: Unknown error 
> in Assembler, click here.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/Singleton-PostActivate-and-FATAL-ERROR-Unknown-error-in-Assembler-tp3858298p3858656.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: @Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread David Blevins

On Sep 29, 2011, at 6:12 PM, sarah_a180 wrote:

> When I tag one of my @Singleton beans with a @PostActivate, I am getting the
> stack trace below. I can probably work around this for the short term, but a
> fix would be nice. :-)
> 
> If you need more information or a sample project, I can probably get that.
> (It'd be a little bit of work since our beans are proprietary.)

This is a bug I think is fixed in the coming 4.0.0 beta 1 (uploading those 
binaries now actually).

The issue is that @Singleton beans aren't allowed to have @PrePassivate, 
@PostActivate methods so the data model we use has (had) read-only lists for 
those fields.  What should be happing and will happen in 4.0.0 is that we will 
still collect those invalid callbacks and report them more gracefully at the 
end of deployment with all other issues the app may have.   I can't recall 
offhand if it result in a rejected deployment or us logging that we will ignore 
those annotations.  It will be one of the two.

-David




@Singleton, @PostActivate and FATAL ERROR: Unknown error in Assembler

2011-09-29 Thread sarah_a180
When I tag one of my @Singleton beans with a @PostActivate, I am getting the
stack trace below. I can probably work around this for the short term, but a
fix would be nice. :-)

If you need more information or a sample project, I can probably get that.
(It'd be a little bit of work since our beans are proprietary.)

Thanks,
  Sarah Gerweck




494  [main] INFO  OpenEJB  - 

OpenEJB http://openejb.apache.org/
Startup: 9/29/11 6:05 PM
Copyright 1999-2010 (C) Apache OpenEJB Project, All Rights Reserved.
Version: 3.1.4
Build date: 20101112
Build time: 03:32



1650 [main] ERROR OpenEJB  - FATAL ERROR: Unknown error in Assembler. 
Please send the following stack trace and this message to
users@openejb.apache.org :
 java.lang.UnsupportedOperationException
at java.util.AbstractList.add(AbstractList.java:131)
at java.util.AbstractList.add(AbstractList.java:91)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.processCallbacks(AnnotationDeployer.java:2095)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1082)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:684)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:194)
at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:248)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:626)
at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:576)
at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:391)
at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:300)
at 
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
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.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at 
com.yahoo.diy.mw.broker.ServiceLocator.locate(ServiceLocator.java:112)
at com.yahoo.diy.mw.broker.ServiceLocator.locate(ServiceLocator.java:89)
at
com.yahoo.diy.mw.services.monitoring.MBeanRegistrarTest.setup(MBeanRegistrarTest.java:24)
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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:543)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:212)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at
org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:175)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:107)
at org.testng.TestRunner.privateRun(TestRunner.java:753)
at org.testng.TestRunner.run(TestRunner.java:613)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:335)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:330)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:241)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorke

ERROR - FATAL ERROR: Unknown error in Assembler

2011-08-17 Thread Pablo Invernon Moreno
ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the 
following stack trace and this message to users@openejb.apache.org :
 java.lang.ArrayIndexOutOfBoundsException: 26
at org.apache.xbean.asm.ClassReader.readClass(Unknown Source)
at org.apache.xbean.asm.ClassReader.accept(Unknown Source)
at org.apache.xbean.asm.ClassReader.accept(Unknown Source)
at org.apache.openejb.util.AnnotationFinder.readClassDef(
AnnotationFinder.java:253)
at org.apache.openejb.util.AnnotationFinder.find(
AnnotationFinder.java:157)
at org.apache.openejb.config.DeploymentLoader.discoverModuleType(
DeploymentLoader.java:1210)
at org.apache.openejb.config.DeploymentsResolver.processUrls(
DeploymentsResolver.java:365)
at 
org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(
DeploymentsResolver.java:217)
at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
ConfigurationFactory.java:379)
at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(
Assembler.java:300)
at org.apache.openejb.assembler.classic.Assembler.build(
Assembler.java:279)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
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.openejb.loader.OpenEJBInstance.init(
OpenEJBInstance.java:36)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:71)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:53)
at 
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(
InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:197)
at es.ieci.factoria.age.ejb.service.test.TDDCore.configureContext(
TDDCore.java:73)
at 
es.ieci.factoria.age.ejb.service.test.TDDCore.configureSuiteTest(
TDDCore.java:39)
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.testng.internal.MethodInvocationHelper.invokeMethod(
MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeConfigurationMethod(
Invoker.java:537)
at org.testng.internal.Invoker.invokeConfigurations(
Invoker.java:206)
at org.testng.internal.Invoker.invokeConfigurations(
Invoker.java:132)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:278)
at org.testng.SuiteRunner.run(SuiteRunner.java:241)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52
)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1169)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1094)
at org.testng.TestNG.run(TestNG.java:1006)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:107)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:199
)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:170)

FATAL - OpenEJB has encountered a fatal error and cannot be started: 
Assembler failed to build the container system.
org.apache.openejb.OpenEJBException: 
java.lang.ArrayIndexOutOfBoundsException: 26: 26
at org.apache.openejb.assembler.classic.Assembler.build(
Assembler.java:293)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
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.openejb.loader.OpenEJBInstance.init(
OpenEJBInstance.java:36)
at

FATAL ERROR: Unknown error in Assembler [SEC=UNCLASSIFIED]

2011-06-15 Thread Thao . Nguyen
The following error occurs when we run our junit tests with Code Coverage 
in RAD8.0. 
The same tests ran successfully with RAD8.0's Code Coverage turned off, or 
when they are run in RAD7.5.5.1's Code Coverage 

Apache OpenEJB 3.1.4build: 20101112-03:32
http://openejb.apache.org/
FOO moduleName = C:\workspace\_RAD80\MyApplication\
ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the 
following stack trace and this message to users@openejb.apache.org :
 java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1
at 
com.ibm.rational.llc.engine.instrumentation.DefaultDataCollector.executableUnitAccessed(
DefaultDataCollector.java:190)
at llc_probe$Probe_0._executableUnit(llc_probe.java:28)
at $Proxy29.annotationType(Unknown Source)
at java.lang.Class.getAnnotations(Class.java:1611)
at java.lang.Class.getAnnotation(Class.java:1589)
at java.lang.Class.isAnnotationPresent(Class.java:1676)
at org.apache.xbean.finder.AbstractFinder.findAnnotatedClasses(
AbstractFinder.java:110)
at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(
AnnotationDeployer.java:467)
at 
org.apache.openejb.config.AnnotationDeployer$DiscoverAnnotatedBeans.deploy(
AnnotationDeployer.java:257)
at org.apache.openejb.config.AnnotationDeployer.deploy(
AnnotationDeployer.java:192)
at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(
ConfigurationFactory.java:248)
at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(
ConfigurationFactory.java:626)
at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(
ConfigurationFactory.java:576)
at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
ConfigurationFactory.java:391)
at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(
Assembler.java:300)
at org.apache.openejb.assembler.classic.Assembler.build(
Assembler.java:279)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.openejb.loader.OpenEJBInstance.init(
OpenEJBInstance.java:36)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:71)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:53)
at 
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:235)
at javax.naming.InitialContext.initializeDefaultInitCtx(
InitialContext.java:318)
at javax.naming.InitialContext.getDefaultInitCtx(
InitialContext.java:348)
at javax.naming.InitialContext.internalInit(
InitialContext.java:286)
at javax.naming.InitialContext.(InitialContext.java:211)
at 
my.application.common.testing.util.MyAppTestingConfigurationUtil.createContext(
MyAppTestingConfigurationUtil.java:127)
at 
my.application.common.testing.util.MyAppTestingConfigurationUtil.createContext(
MyAppTestingConfigurationUtil.java:52)
at 
my.application.common.testing.util.MyAppTestingConfigurationUtil.createContext(
MyAppTestingConfigurationUtil.java:34)
at 
my.application.common.testing.util.MyAppTestingConfigurationUtil.createContext(
MyAppTestingConfigurationUtil.java:27)
at 
my.application.paymentrecovery.business.service.PaymentRecoverySessionTestAddComment.setUp(
PaymentRecoverySessionTestAddComment.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(
ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(
FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(
RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(
RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(
BlockJUnit4ClassRunner.java:76)

Re: OpenEJB FATAL ERROR

2011-04-05 Thread vlad.balan
In my case this happened because the mysql driver was missing from the
classpath.
I have a persistence unit in my classpath using these datasources declares
in openejb.xml:





# MySQL example
#
# This connector will not work until you download the driver at:
# http://www.mysql.com/downloads/api-jdbc-stable.html
#JdbcDriver com.mysql.jdbc.Driver

JdbcDriver com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
JdbcUrl jdbc:mysql://localhost:3306/test
UserName root
Password admin



# MySQL example
#
# This connector will not work until you download the driver at:
# http://www.mysql.com/downloads/api-jdbc-stable.html
#JdbcDriver com.mysql.jdbc.Driver

JdbcDriver com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
JdbcUrl jdbc:mysql://localhost:3306/test2
UserName root
Password admin




Adding mysql driver jar to the classpath solved the problem.

--
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-FATAL-ERROR-tp3356915p3428761.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB FATAL ERROR

2011-03-15 Thread Thiago Veronezi
Hi Sergey,
Can you create a small project to help us to reproduce this error?
Tkx,
Thiago.

On Tue, Mar 15, 2011 at 12:13 PM,  wrote:

> Please help.
> Thanks,
> Sergey Savushkin
>
> 18:08:18,234 ERROR OpenEJB FATAL ERROR: Unknown error in Assembler. Please
> send the following stack trace and this message to
> users@openejb.apache.org :
>  java.lang.NullPointerException: name cannot be null
>at org.apache.openejb.core.TempClassLoader.loadClass(
> TempClassLoader.java:70)
>at org.apache.openejb.core.TempClassLoader.loadClass(
> TempClassLoader.java:66)
>at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
> AnnotationDeployer.java:1064)
>at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
> AnnotationDeployer.java:684)
>at org.apache.openejb.config.AnnotationDeployer.deploy(
> AnnotationDeployer.java:194)
>at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(
> ConfigurationFactory.java:248)
>at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:626)
>at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(
> ConfigurationFactory.java:576)
>at
> org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
> ConfigurationFactory.java:391)
>at
> org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(
> Assembler.java:300)
>at org.apache.openejb.assembler.classic.Assembler.build(
> Assembler.java:279)
>at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
>at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
>at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
>at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:48)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:600)
>at org.apache.openejb.loader.OpenEJBInstance.init(
> OpenEJBInstance.java:36)
>at org.apache.openejb.client.LocalInitialContextFactory.init(
> LocalInitialContextFactory.java:71)
>at org.apache.openejb.client.LocalInitialContextFactory.init(
> LocalInitialContextFactory.java:53)
>at
> org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(
> LocalInitialContextFactory.java:42)
>at javax.naming.spi.NamingManager.getInitialContext(
> NamingManager.java:235)
>at javax.naming.InitialContext.initializeDefaultInitCtx(
> InitialContext.java:327)
>at javax.naming.InitialContext.getDefaultInitCtx(
> InitialContext.java:357)
>at javax.naming.InitialContext.internalInit(
> InitialContext.java:295)
>at javax.naming.InitialContext.(InitialContext.java:212)
>at ru.masterdm.funding.test.ejb.ResourceTest.setUp(
> ResourceTest.java:48)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:48)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:600)
>at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(
> BeforeAndAfterRunner.java:74)
>at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(
> BeforeAndAfterRunner.java:50)
>at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:33)
>at org.junit.internal.runners.TestMethodRunner.runMethod(
> TestMethodRunner.java:75)
>at org.junit.internal.runners.TestMethodRunner.run(
> TestMethodRunner.java:45)
>at
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
> TestClassMethodsRunner.java:66)
>at org.junit.internal.runners.TestClassMethodsRunner.run(
> TestClassMethodsRunner.java:35)
>at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
> TestClassRunner.java:42)
>at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
> BeforeAndAfterRunner.java:34)
>at org.junit.internal.runners.TestClassRunner.run(
> TestClassRunner.java:52)
>at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
> JUnit4TestReference.java:45)
>at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
> TestExecution.java:38)
>at
> org.eclipse.jdt.i

OpenEJB FATAL ERROR

2011-03-15 Thread SSavushkin
Please help.
Thanks,
Sergey Savushkin

18:08:18,234 ERROR OpenEJB FATAL ERROR: Unknown error in Assembler. Please 
send the following stack trace and this message to 
users@openejb.apache.org :
 java.lang.NullPointerException: name cannot be null
at org.apache.openejb.core.TempClassLoader.loadClass(
TempClassLoader.java:70)
at org.apache.openejb.core.TempClassLoader.loadClass(
TempClassLoader.java:66)
at 
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
AnnotationDeployer.java:1064)
at 
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(
AnnotationDeployer.java:684)
at org.apache.openejb.config.AnnotationDeployer.deploy(
AnnotationDeployer.java:194)
at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(
ConfigurationFactory.java:248)
at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(
ConfigurationFactory.java:626)
at 
org.apache.openejb.config.ConfigurationFactory.configureApplication(
ConfigurationFactory.java:576)
at 
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(
ConfigurationFactory.java:391)
at 
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(
Assembler.java:300)
at org.apache.openejb.assembler.classic.Assembler.build(
Assembler.java:279)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:125)
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:60)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:250)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.apache.openejb.loader.OpenEJBInstance.init(
OpenEJBInstance.java:36)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:71)
at org.apache.openejb.client.LocalInitialContextFactory.init(
LocalInitialContextFactory.java:53)
at 
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:235)
at javax.naming.InitialContext.initializeDefaultInitCtx(
InitialContext.java:327)
at javax.naming.InitialContext.getDefaultInitCtx(
InitialContext.java:357)
at javax.naming.InitialContext.internalInit(
InitialContext.java:295)
at javax.naming.InitialContext.(InitialContext.java:212)
at ru.masterdm.funding.test.ejb.ResourceTest.setUp(
ResourceTest.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(
BeforeAndAfterRunner.java:74)
at org.junit.internal.runners.BeforeAndAfterRunner.runBefores(
BeforeAndAfterRunner.java:50)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:33)
at org.junit.internal.runners.TestMethodRunner.runMethod(
TestMethodRunner.java:75)
at org.junit.internal.runners.TestMethodRunner.run(
TestMethodRunner.java:45)
at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(
TestClassMethodsRunner.java:66)
at org.junit.internal.runners.TestClassMethodsRunner.run(
TestClassMethodsRunner.java:35)
at org.junit.internal.runners.TestClassRunner$1.runUnprotected(
TestClassRunner.java:42)
at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(
BeforeAndAfterRunner.java:34)
at org.junit.internal.runners.TestClassRunner.run(
TestClassRunner.java:52)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(
JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(
TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:460)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)

18:08:18,250 FATAL OpenEJB.startup OpenEJB has encountered a fatal error 
and cannot be started: Assembler failed to build the container system.
org.apache.openejb.OpenEJBException: java.lang.NullPointerException: name 
cannot be null: name cannot be

OpenEJB 3.2-SNAPSHOT - FATAL ERROR: Unknown error in Assembler. Please send the following stack trace

2011-03-13 Thread Tommaso Galleri
Caused by: java.net.URISyntaxException: Illegal character in opaque part
at index 2:
C:\hudson\jobs\xx\workspace\xx\\target\scala_2.8.1\resou
rces

at java.net.URI$Parser.fail(Unknown Source)

at java.net.URI$Parser.checkChars(Unknown Source)

at java.net.URI$Parser.parse(Unknown Source)

at java.net.URI.(Unknown Source)

... 57 more

ERROR - FATAL ERROR: Unknown error in Assembler.  Please send the
following stack trace and this message to users@openejb.apache.org :

 java.lang.NullPointerException

at
org.apache.openejb.config.JndiEncInfoBuilder.buildEnvEntryInfos(JndiEncI
nfoBuilder.java:330)

at
org.apache.openejb.config.JndiEncInfoBuilder.build(JndiEncInfoBuilder.ja
va:124)

at
org.apache.openejb.config.AppInfoBuilder.build(AppInfoBuilder.java:186)

at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:657)

at
org.apache.openejb.config.ConfigurationFactory.configureApplication(Conf
igurationFactory.java:612)

at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(C
onfigurationFactory.java:365)

at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(A
ssembler.java:304)

at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:283)

at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:130)

at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:63)

at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)

at org.apache.openejb.OpenEJB.init(OpenEJB.java:255)

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

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at
org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)

at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:71)

at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialCo
ntextFactory.java:53)

at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(L
ocalInitialContextFactory.java:42)

at javax.naming.spi.NamingManager.getInitialContext(Unknown
Source)

at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.init(Unknown Source)

at javax.naming.InitialContext.(Unknown Source)

...

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)

at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at
org.specs.util.Classes$class.createInstanceFor(Classes.scala:78)

at org.specs.util.Classes$.createInstanceFor(Classes.scala:27)

at org.specs.util.Classes$class.create(Classes.scala:38)

at org.specs.util.Classes$.create(Classes.scala:27)

at
org.specs.runner.TestInterfaceRunner.run(TestInterfaceRunner.scala:55)

at sbt.TestRunner.run(TestFramework.scala:52)

at sbt.TestRunner.runTest$1(TestFramework.scala:66)

at sbt.TestRunner.run(TestFramework.scala:75)

at
sbt.TestFramework$$anonfun$9$$anonfun$apply$11.runTest$2(TestFramework.s
cala:192)

at
sbt.TestFramework$$anonfun$9$$anonfun$apply$11$$anonfun$apply$12.apply(T
estFramework.scala:203)

at
sbt.TestFramework$$anonfun$9$$anonfun$apply$11$$anonfun$apply$12.apply(T
estFramework.scala:203)

at sbt.NamedTestTask.run(TestFramework.scala:91)

at
sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask$1.apply(ScalaProject.
scala:187)

at
sbt.ScalaProject$$anonfun$sbt$ScalaProject$$toTask$1.apply(ScalaProject.
scala:187)

at sbt.TaskManager$Task.invoke(TaskManager.scala:62)

at sbt.impl.RunTask.doRun$1(RunTask.scala:77)

at sbt.impl.RunTask.runTask(RunTask.scala:85)

at
sbt.impl.RunTask.sbt$impl$RunTask$$runIfNotRoot(RunTask.scala:60)

at
sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)

at
sbt.impl.RunTask$$anonfun$runTasksExceptRoot$2.apply(RunTask.scala:48)

at
sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)

at
sbt.Distributor$Run$Worker$$anonfun$2.apply(ParallelRunner.scala:131)

at sbt.Control$.trapUnit(Control.scala:19)

at sbt.Distributor$Run$Worker.run(ParallelRunner.scala:131)

 

 

 



The information included in this email and any files transmitted with it may 
contain information that is confidential and it must not be used by, or its 
contents or attachments copied or disclosed, to persons other than the intended 
addressee. If you have received

Re: OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2011-02-24 Thread Alys

Hello,

I have never used OpenEJB before, and I'm having almost the same problem.

I have and old application with Java 1.4, EJB 2.1 and Struts 1, with various
modules, all packed inside a EAR file. 

I downloaded OpenEJB Tomcat bundle from
http://openejb.apache.org/download.html (file tomee-6.0.29.314.zip ), and
then copied Struts required library (and others, like iBatis) to Tomcat's
lib folder; placed my EAR on the webapp, just like I used to do with normal
web applications.

Problem is, when I start Tomcat, I get the error:

org.apache.openejb.OpenEJBException: Cannot unmarshall the JSP tag library
definition file:
jar:file:/D:/Ambiente/apache-tomcat-6.0.29/lib/struts.jar!/META-INF/tlds/struts-template.tld:
unexpected element (uri:"http://java.sun.com/xml/ns/javaee";,
local:"tlibversion"). Expected elements are
<{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}function>

>From what I understood, OpenEJB is trying to validate TLD files inside
struts jar, is that right? How can I solve this problem? I have others TLDs
from Struts all along my application, and probably they will also get
through the same problem.

If relevant, I on Windows XP Professional, with jdk1.6.0_13 installed.

(Please apologize any grammar error, English is not my native language)

Thank you!
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3322732.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2010-12-30 Thread Jean-Louis MONTEIRO

Hi,

the support for old tag lib descriptors is available in trunk (3.2.x).
I will try to merge changes in 3.1.x branch so that it will be available for
next 3.1.x releases.

Jean-Louis
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3168514.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2010-12-08 Thread laurelkh...@gmail.com

So, I upgraded test server Tomcat from 5.5 to Tomcat 6.0.29 and I don't get
that error anymore. 

-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3078364.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2010-12-06 Thread laurelkh...@gmail.com

Could I resolve this by changing to a different xsd or the JSTL library? I
can do that if it will comply with what OpenEJB is looking for. I'm just
unsure of where to change it. I am guessing inside one of the web.xml files
for the xsd and replacing the jstl.jar int $CATALINA_HOME/server/lib.
Although the jstl.jar that's in there was placed there during installation
of OpenEJB, so you would think it would be the correct version. I've tried
replacing the jstl.jar to several different versions, but I'm still seeing
the error on Tomcat startup.

Thanks.

-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3075077.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Re: OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2010-12-06 Thread Jean-Louis MONTEIRO

Hi,

OK, the problem comes from our JAXB tree regarding TLD parsing.
We are using a JAXB tree to parse JSP Tag Lib 1.2 whereas you are using a
JSP Tag Lib 1.1 file.
J2EE 1.2 and TLD 1.1 --> 
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd 
J2EE 1.3 and TLD 1.2  -->  http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd 
J2EE 1.4 and TLD 2.0 --> 
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd
http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd 

...

It would be great for us to support all of them.
But i need to dig into and check if there is a big difference between them.

Jean-Louis




-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3074147.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


OpenEJB has encountered a fatal error and cannot be started [javax/servlet/jsp/jstl/core/ConditionalTagSupport]

2010-12-03 Thread laurelkh...@gmail.com

Hello,

I have developed an EJB under JBoss and Tomcat and it worked just fine in
this environment. On my Unit Test system I am having to employ OpenEJB. I
used the OpenEJB installer and there are no issues when I ran the tests. But
during tomcat startup I get an OpenEJBException. In my Jboss environment my
bean was working well. So, I am not sure what I needed to change in my code
or the environment to accommodate the OpenEJB environment. I moved the EAR
to my webapps folder and it seems to load properly even after the OpenEJB
Exception. 

I've been troubleshooting this for hours and have not been about to resolve
it. Any suggestions would be appreciated. I am not a Tomcat or EJB expert,
so I feel like I'm grasping at straws. 

Here is a bit of my log file with the error:

OpenEJB init-params:
Apache OpenEJB 3.1.4build: 20101112-03:32
http://openejb.apache.org/
FOO moduleName =
/usr/local/tomcat/webapps/ViewBeanProjectEAR/ViewBeanProject.jar
[severity=ERROR,message=unexpected element
(uri:"http://java.sun.com/xml/ns/javaee";, local:"tlibversion"). Expected
elements are
<{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}function>,locator=[node=null,object=null,url=null,line=4,col=18,offset=-1]]
[severity=ERROR,message=unexpected element
(uri:"http://java.sun.com/xml/ns/javaee";, local:"tlibversion"). Expected
elements are
<{http://java.sun.com/xml/ns/javaee}tag-file>,<{http://java.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/javaee}listener>,<{http://java.sun.com/xml/ns/javaee}jsp-version>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://java.sun.com/xml/ns/javaee}display-name>,<{http://java.sun.com/xml/ns/javaee}short-name>,<{http://java.sun.com/xml/ns/javaee}tlib-version>,<{http://java.sun.com/xml/ns/javaee}tag>,<{http://java.sun.com/xml/ns/javaee}validator>,<{http://java.sun.com/xml/ns/javaee}uri>,<{http://java.sun.com/xml/ns/javaee}taglib-extension>,<{http://java.sun.com/xml/ns/javaee}function>,locator=[node=null,object=null,url=null,line=4,col=18,offset=-1]]
org.apache.openejb.OpenEJBException: OpenEJB has encountered a fatal error
and cannot be started: The Assembler encountered an unexpected error while
attempting to build the container system.:
javax/servlet/jsp/jstl/core/ConditionalTagSupport
at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:132)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
at
org.apache.openejb.tomcat.catalina.TomcatLoader.init(TomcatLoader.java:161)
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.openejb.loader.Embedder.init(Embedder.java:75)
at
org.apache.openejb.tomcat.loader.TomcatHook.hook(TomcatHook.java:137)
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.openejb.tomcat.loader.TomcatEmbedder.embed(TomcatEmbedder.java:92)
at
org.apache.openejb.tomcat.loader.LoaderServlet.init(LoaderServlet.java:51)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)

Thanks in advance.
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/OpenEJB-has-encountered-a-fatal-error-and-cannot-be-started-javax-servlet-jsp-jstl-core-ConditionalT-tp3071912p3071912.html
Sent from the OpenEJB User mailing list archive at Nabble.com.