You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openwebbeans.apache.org by Vicky Kak <vi...@gmail.com> on 2010/03/16 09:19:16 UTC
Re: Installation details in README_M3.txt is confusing.
I did tried the fresh installation now and this is what I see now
***************************************************************************************************
16 Mar, 2010 1:45:05 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ejb-sample.war
context path = /ejb-sample
16 Mar, 2010 1:45:07 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive ejb-sample.war
java.lang.NoClassDefFoundError: Could not fully load class:
org.apache.webbeans.servlet.WebBeansConfigurationListener
due to:Lorg/apache/webbeans/spi/ContainerLifecycle;
in classLoader:
org.apache.openejb.core.TempClassLoader@15ba1ef
at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:177)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3142)
at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:992)
at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:202)
***************************************************************************************************
I tried putting the owb specific spi jar inside the web application and
was able to get rid of this error but got the other one related to
openjpa related ones.
Could you/some one test the stuff and check if things work at you end?
-Vicky
Gurkan Erdogdu wrote:
> Could you deploy using "mvn tomcat:deploy" at ejb-sample root?
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com <ma...@gmail.com>>
>
> Looks like changing the properties did the trick however there
> seems to be some other eissue due to missing dependency, here is
> what I see now
>
> *******************************************************************************************************
>
> 23 Feb, 2010 5:20:52 PM org.apache.catalina.startup.HostConfig
> deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The eventual following
> stack trace is caused by an error thrown for debugging purposes as
> well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The eventual
> following stack trace is caused by an error thrown for debugging
> purposes as well as to attempt to terminate the thread which
> caused the illegal access, and has no functional impact.
> *******************************************************************************************************
>
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> I mean is that I have refactored our resource injection
> handling but we do not update our ejb samples. Currently in
> ejb-sample/pom.xml it defines resource-plugin but this is not
> required anymore.
>
> Moreover,
> ejb-samples/META-INF/openwebbeans/openwebbeans.properties must
> be updated to include ResourceInjectionService.(currently it
> use ResourceService!). After changing, re-try to deploy it
> using "mvn clean tomcat:deploy" command as explained in README.
>
> #use resource service
> org.apache.webbeans.spi.ResourceInjectionService=org.apache.webbeans.ejb.resource.OpenEjbResourceInjectionService
>
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
>
> I am not sure what you mean here, I assume that you need to
> make
> some configurations in Tomat and deploy the sample application.
> Let me know once you perform the tests, I will meanwhile take a
> look at the tomcat logging details.
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> Yes that is it.
>
> But we do not try to run samples after changing some
> configurations therefore you could get some exceptions.
>
> I will look at in the evening to run ejb samples.
>
> --Gurkan
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>>>
>
> Hi Gurkan,
>
> Thanks for the details.
> I have been building the OWB from the trunk and
> followed the
> readme which is based on M3, the M4 specific readme
> is not yet
> available.
>
> I did understand that we need the place the common jars
> specific
> to jsr330/jsr299 in the $TOMCAT/lib and configure the
> openejb in
> tomcat.
> After this we should be able to deploy the
> ejb-sample.war
> in the
> $TOMCAT/webapps, pretty simple!
>
> Is there anything else I should look from configuration
> perspective?
>
> Here is what I see from the Tomcat console currently
>
>
> ***********************************************************************************************
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ejb-sample] startup failed due to
> previous errors
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance
> has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The eventual
> following
> stack trace is caused by an error thrown for debugging
> purposes as
> well as to attempt to terminate the thread which
> caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance
> has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The
> eventual
> following stack trace is caused by an error thrown for
> debugging
> purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.startup.HostConfig
> deployDirectory
>
> ***********************************************************************************************
>
>
> Regards,
> Vicky
> Gurkan Erdogdu wrote:
>
> Hello Vicky;
>
> Some configuration file names are changed.
> README_M3 is a
> little bit old with respect to
> openwebbeans.properties
> content. We have a plan to release M4 this week
> that it
> contains lots of bug fixes. Therefore instead of
> using M3
> artifacts, until M4 releases, checkout source
> from SVN and
> build it yourself.
>
> >>> "atinject-api-1.0.0-incubating-M3.jar....
> at-inject.(JSR-330 API).jar and cdi.jar (JSR-299
> API)
> projects
> have moved to geronimo specs. You can download
> it from
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/
> manually or if you use "maven", you can define
> dependencies to
> them looking at pom content fro there.
>
> Locations :
> ----------------------------
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/
>
> You have to add those jars into TOMCAT lib folder.
>
> >>>WEB-INF/lib, I don't understand what does
> this mean,
> it is
> not clear.
> It means that some of the libraries (jars) that OWB
> needs are
> not contained in Tomcat. You have to manually
> add those
> jars
> into your application WEB-INF/lib. For example,
> if you
> create
> a JSF application, add JSF jars into WEB-INF/lib
> with
> OWB JSF
> plugin. Another example is that OWB needes
> validator.jar.
>
> Generally you have to add implementation
> jar(webbeans-impl)
> and its dependencies to application WEB-INF/lib
> except
> atinject.jar and cdi.jar. webbeans-impl jar must be
> reside in
> WEB-INF/lib folder of the application, not in
> TOMCAT/lib folder.
>
> For Configuration:
> ------------------------
> openwebbeans-default.properties does not use EJB
> meta-data
> discovery as default. To use EJB discovery you
> have to
> tweak
> some properties. Look at
>
> http://svn.apache.org/repos/asf/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties.
>
> Moreover, README_M3 talked about resource plugin
> that was
> responsibe for injecting Java EE resources into
> bean (For
> example, EntityManager, DataSource etc.). There
> is no
> ResourcePlugin in current codebase. It has removed.
> Now, there
> is a ResourceInjectionService. You have to
> configure this
> service in openwebbeans.properties to use
> OpenEJB resource
> injection service instead of default. (Look at
> ejb-sample
> openwebbeans.properties).
>
> Currently OWB looks for
> META-INF/openwebbeans/openwebbeans.properties
> files to run
> over default configuration properties. If you have a
> JAR that
> is located in Tomcat LIB folder that contains
> META-INF/openwebbeans/openwebbeans.properties
> file, it
> is read
> by OWB.
>
> One more thing, OWB uses EJB interceptor
> (OpenWebBeansEJBInterceptor) to inject
> dependencies to EJB
> beans. Therefore your every session bean must
> have this
> interceptor. Again look at samples.
>
> Please look at ejb-sample application for current
> configuration.
>
> You can also join us on freenode channel on #IRC
> with
> #openwebbeans channel.
>
> Thanks;
>
> --Gurkan
>
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>>
>
>
>
> Vicky Kak wrote:
>
> Hi Folks,
>
> I am in process of testing openwebbean with
> Tomcat/openejb, I
> did read the related section from the
> following docs
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M3.txt
>
> Here is the section which explains it
>
> ********************************************************************************************
>
> EJB Support via Embeddable OpenEJB
> Container in
> Tomcat 6.X
> ---------------------------------------------
>
> Configuration Steps:
> --------------------------------------------
> 1* Download Tomcat 6.X version
> 2* Configure OpenEJB. Look at URL
> http://openejb.apache.org/tomcat.html for
> installation.
> 3* Copy
> "atinject-api-1.0.0-incubating-M3.jar" to
> Tomcat /lib
> folder.
> 4* Copy
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> 5* Look at ejb-sample.war for "WEB-INF/lib"
> libraries to
> develop custom application.
> You can also look at a source of the
> project.
>
> ********************************************************************************************
>
> "atinject-api-1.0.0-incubating-M3.jar"
> does not get
> generated
> at atinject-tck location, I was expecting
> it to be
> there. It
> is not there, I did pull the CDI api jar and
> dropped it
> in the
> $TOMCAT_HOME/lib.
>
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> should also be
> copied to the $TOMCAT/lib, this should be
> pointed in the
> instructions too.
>
> >>Look at ejb-sample.war for "WEB-INF/lib"
> libraries to
> develop custom application.
> I don't understand what does this mean, it is
> not clear.
>
>
>
> ********************************************************************************************
>
> How to Develop EJB Applications
> ---------------------------------------------
> 1* Add "META-INF/openwebbeans.properties"
> into your
> application classpath.
> 2* Add
>
> "org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true"
> to use EJB functionality.
> So OWB container looks for EJBs.
> 3* Add
>
> "org.apache.webbeans.resource.spi.ResourceService=org.apache.webbeans.spi.ee.openejb.resource.OpenEjbResourceServiceImpl"
> to
> use OpenEJB Resource injections.
> 4* Add "openwebbeans-ejb",
> "openwebbeans-resource" and
> "openwebbeans-geronimo" plugins into your web
> application
> classpath.
> It adds EJB, Resource and Open EJB
> Resource plugins
> into your
> application.
> 5* If you want to use other plugins, add
> respective plugins
> into your application classpath. For
> example, if you
> wish to use
> JSF framework, you add "openwebbeans-jsf"
> plugin.
> 6* Add OWB related interceptor into your EJB
> Beans. This is
> called
>
> "org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor"
> This is needed for OWB injections.
> 7* Update your application's "web.xml" to add
> OWB specific
> configuration.
>
> ---------------------------------------------
>
> ********************************************************************************************
>
>
> Why can't we have this
> openwebbeans.properties
> as a part of
> the jars which we have dropped in
> $TOMCAT/lib, it is
> not good
> idea to configure the classpath for the
> Tomcat
> and then
> start.
> I see the default properties file being here
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/resources/META-INF/openwebbeans/openwebbeans-default.properties
>
>
> This does not contain the property values as
> mentioned
> in "How
> to Develop EJB Applications", I was
> thinking of
> taking the
> same file setting it to the Tomcat CP.
>
> I have been able to configure the openEJB
> for Tomcat
> and have
> not yet followed the instructions to set the
> META-INF/openwebbeans.properties and hence
> getting this
> error
>
> *******************************************************************************
>
> context path = /ejb-sample
> 23 Feb, 2010 1:33:28 PM
> org.apache.catalina.core.StandardContext
> start
> SEVERE: Error listenerStart
>
> *******************************************************************************
>
>
> Before digging more into the code and finding
> the details I
> would like to know more from the community.
>
> Regards,
> Vicky
>
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
Ah, yes I am using trunk directly and not the M4.
I will give it a try.
-Vicky
Gurkan Erdogdu wrote:
> Hello;
>
> do you use M4 version? we have released it.
>
> --Gurkan
>
> 2010/3/16 Vicky Kak <vicky.kak@gmail.com <ma...@gmail.com>>
>
> I did tried the fresh installation now and this is what I see now
>
> ***************************************************************************************************
>
> 16 Mar, 2010 1:45:05 PM org.apache.catalina.startup.HostConfig
> deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 1:45:07 PM org.apache.catalina.startup.HostConfig
> deployWAR
> SEVERE: Error deploying web application archive ejb-sample.war
> java.lang.NoClassDefFoundError: Could not fully load class:
> org.apache.webbeans.servlet.WebBeansConfigurationListener
> due to:Lorg/apache/webbeans/spi/ContainerLifecycle;
> in classLoader:
> org.apache.openejb.core.TempClassLoader@15ba1ef
> at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:177)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3142)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:992)
> at
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:202)
> ***************************************************************************************************
>
>
> I tried putting the owb specific spi jar inside the web
> application and was able to get rid of this error but got the
> other one related to openjpa related ones.
> Could you/some one test the stuff and check if things work at you end?
>
> -Vicky
>
>
> Gurkan Erdogdu wrote:
>
> Could you deploy using "mvn tomcat:deploy" at ejb-sample root?
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
>
> Looks like changing the properties did the trick however there
> seems to be some other eissue due to missing dependency,
> here is
> what I see now
>
>
> *******************************************************************************************************
>
> 23 Feb, 2010 5:20:52 PM org.apache.catalina.startup.HostConfig
> deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
>
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The eventual
> following
> stack trace is caused by an error thrown for debugging
> purposes as
> well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
>
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The eventual
> following stack trace is caused by an error thrown for
> debugging
> purposes as well as to attempt to terminate the thread which
> caused the illegal access, and has no functional impact.
>
> *******************************************************************************************************
>
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> I mean is that I have refactored our resource injection
> handling but we do not update our ejb samples. Currently in
> ejb-sample/pom.xml it defines resource-plugin but this
> is not
> required anymore.
>
> Moreover,
>
> ejb-samples/META-INF/openwebbeans/openwebbeans.properties must
> be updated to include
> ResourceInjectionService.(currently it
> use ResourceService!). After changing, re-try to deploy it
> using "mvn clean tomcat:deploy" command as explained in
> README.
>
> #use resource service
>
> org.apache.webbeans.spi.ResourceInjectionService=org.apache.webbeans.ejb.resource.OpenEjbResourceInjectionService
>
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>>>
>
> I am not sure what you mean here, I assume that you
> need to
> make
> some configurations in Tomat and deploy the sample
> application.
> Let me know once you perform the tests, I will
> meanwhile take a
> look at the tomcat logging details.
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> Yes that is it.
>
> But we do not try to run samples after changing some
> configurations therefore you could get some
> exceptions.
>
> I will look at in the evening to run ejb samples.
>
> --Gurkan
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>>
>
> Hi Gurkan,
>
> Thanks for the details.
> I have been building the OWB from the trunk and
> followed the
> readme which is based on M3, the M4 specific
> readme
> is not yet
> available.
>
> I did understand that we need the place the
> common jars
> specific
> to jsr330/jsr299 in the $TOMCAT/lib and
> configure the
> openejb in
> tomcat.
> After this we should be able to deploy the
> ejb-sample.war
> in the
> $TOMCAT/webapps, pretty simple!
>
> Is there anything else I should look from
> configuration
> perspective?
>
> Here is what I see from the Tomcat console
> currently
>
>
> ***********************************************************************************************
>
> INFO: Deploying web application archive
> ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ejb-sample] startup failed
> due to
> previous errors
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application
> instance
> has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class.
> The eventual
> following
> stack trace is caused by an error thrown for
> debugging
> purposes as
> well as to attempt to terminate the thread which
> caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application
> instance
> has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The
> eventual
> following stack trace is caused by an error
> thrown for
> debugging
> purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no
> functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.startup.HostConfig
> deployDirectory
>
> ***********************************************************************************************
>
>
> Regards,
> Vicky
> Gurkan Erdogdu wrote:
>
> Hello Vicky;
>
> Some configuration file names are changed.
> README_M3 is a
> little bit old with respect to
> openwebbeans.properties
> content. We have a plan to release M4
> this week
> that it
> contains lots of bug fixes. Therefore
> instead of
> using M3
> artifacts, until M4 releases, checkout source
> from SVN and
> build it yourself.
>
> >>> "atinject-api-1.0.0-incubating-M3.jar....
> at-inject.(JSR-330 API).jar and cdi.jar
> (JSR-299
> API)
> projects
> have moved to geronimo specs. You can
> download
> it from
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/
> manually or if you use "maven", you can
> define
> dependencies to
> them looking at pom content fro there.
>
> Locations :
> ----------------------------
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/
>
> You have to add those jars into TOMCAT
> lib folder.
>
> >>>WEB-INF/lib, I don't understand what does
> this mean,
> it is
> not clear.
> It means that some of the libraries
> (jars) that OWB
> needs are
> not contained in Tomcat. You have to manually
> add those
> jars
> into your application WEB-INF/lib. For
> example,
> if you
> create
> a JSF application, add JSF jars into
> WEB-INF/lib
> with
> OWB JSF
> plugin. Another example is that OWB needes
> validator.jar.
>
> Generally you have to add implementation
> jar(webbeans-impl)
> and its dependencies to application
> WEB-INF/lib
> except
> atinject.jar and cdi.jar. webbeans-impl
> jar must be
> reside in
> WEB-INF/lib folder of the application, not in
> TOMCAT/lib folder.
>
> For Configuration:
> ------------------------
> openwebbeans-default.properties does not
> use EJB
> meta-data
> discovery as default. To use EJB
> discovery you
> have to
> tweak
> some properties. Look at
>
> http://svn.apache.org/repos/asf/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties.
>
> Moreover, README_M3 talked about resource
> plugin
> that was
> responsibe for injecting Java EE
> resources into
> bean (For
> example, EntityManager, DataSource etc.).
> There
> is no
> ResourcePlugin in current codebase. It
> has removed.
> Now, there
> is a ResourceInjectionService. You have to
> configure this
> service in openwebbeans.properties to use
> OpenEJB resource
> injection service instead of default.
> (Look at
> ejb-sample
> openwebbeans.properties).
>
> Currently OWB looks for
> META-INF/openwebbeans/openwebbeans.properties
> files to run
> over default configuration properties. If
> you have a
> JAR that
> is located in Tomcat LIB folder that contains
> META-INF/openwebbeans/openwebbeans.properties
> file, it
> is read
> by OWB.
>
> One more thing, OWB uses EJB interceptor
> (OpenWebBeansEJBInterceptor) to inject
> dependencies to EJB
> beans. Therefore your every session bean must
> have this
> interceptor. Again look at samples.
>
> Please look at ejb-sample application for
> current
> configuration.
>
> You can also join us on freenode channel
> on #IRC
> with
> #openwebbeans channel.
>
> Thanks;
>
> --Gurkan
>
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>>>
>
>
>
> Vicky Kak wrote:
>
> Hi Folks,
>
> I am in process of testing
> openwebbean with
> Tomcat/openejb, I
> did read the related section from the
> following docs
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M3.txt
>
> Here is the section which explains it
>
> ********************************************************************************************
>
> EJB Support via Embeddable OpenEJB
> Container in
> Tomcat 6.X
>
> ---------------------------------------------
>
> Configuration Steps:
>
> --------------------------------------------
> 1* Download Tomcat 6.X version
> 2* Configure OpenEJB. Look at URL
>
> http://openejb.apache.org/tomcat.html for
> installation.
> 3* Copy
> "atinject-api-1.0.0-incubating-M3.jar" to
> Tomcat /lib
> folder.
> 4* Copy
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> 5* Look at ejb-sample.war for
> "WEB-INF/lib"
> libraries to
> develop custom application.
> You can also look at a source of the
> project.
>
> ********************************************************************************************
>
> "atinject-api-1.0.0-incubating-M3.jar"
> does not get
> generated
> at atinject-tck location, I was
> expecting
> it to be
> there. It
> is not there, I did pull the CDI
> api jar and
> dropped it
> in the
> $TOMCAT_HOME/lib.
>
>
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> should also be
> copied to the $TOMCAT/lib, this
> should be
> pointed in the
> instructions too.
>
> >>Look at ejb-sample.war for
> "WEB-INF/lib"
> libraries to
> develop custom application.
> I don't understand what does this
> mean, it is
> not clear.
>
>
>
> ********************************************************************************************
>
> How to Develop EJB Applications
>
> ---------------------------------------------
> 1* Add
> "META-INF/openwebbeans.properties"
> into your
> application classpath.
> 2* Add
>
> "org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true"
> to use EJB functionality.
> So OWB container looks for EJBs.
> 3* Add
>
> "org.apache.webbeans.resource.spi.ResourceService=org.apache.webbeans.spi.ee.openejb.resource.OpenEjbResourceServiceImpl"
> to
> use OpenEJB Resource injections.
> 4* Add "openwebbeans-ejb",
> "openwebbeans-resource" and
> "openwebbeans-geronimo" plugins
> into your web
> application
> classpath.
> It adds EJB, Resource and Open EJB
> Resource plugins
> into your
> application.
> 5* If you want to use other
> plugins, add
> respective plugins
> into your application classpath. For
> example, if you
> wish to use
> JSF framework, you add
> "openwebbeans-jsf"
> plugin.
> 6* Add OWB related interceptor
> into your EJB
> Beans. This is
> called
>
> "org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor"
> This is needed for OWB injections.
> 7* Update your application's
> "web.xml" to add
> OWB specific
> configuration.
>
>
> ---------------------------------------------
>
> ********************************************************************************************
>
>
> Why can't we have this
> openwebbeans.properties
> as a part of
> the jars which we have dropped in
> $TOMCAT/lib, it is
> not good
> idea to configure the classpath
> for the
> Tomcat
> and then
> start.
> I see the default properties file
> being here
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/resources/META-INF/openwebbeans/openwebbeans-default.properties
>
>
> This does not contain the property
> values as
> mentioned
> in "How
> to Develop EJB Applications", I was
> thinking of
> taking the
> same file setting it to the Tomcat CP.
>
> I have been able to configure the
> openEJB
> for Tomcat
> and have
> not yet followed the instructions
> to set the
> META-INF/openwebbeans.properties
> and hence
> getting this
> error
>
> *******************************************************************************
>
> context path = /ejb-sample
> 23 Feb, 2010 1:33:28 PM
>
> org.apache.catalina.core.StandardContext
> start
> SEVERE: Error listenerStart
>
> *******************************************************************************
>
>
> Before digging more into the code
> and finding
> the details I
> would like to know more from the
> community.
>
> Regards,
> Vicky
>
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <cg...@gmail.com>.
I tried again with M4, jars that has to be placed on Tomcat lib as follows;
1* jcdi.jar
2* atinject.jar
3* geronimo-interceptor_1.1.jar
After that
cd samples/ejb-sample
mvn tomcat:deploy
Thanks;
--Gurkan
2010/3/16 Gurkan Erdogdu <cg...@gmail.com>
> As I said before, do not use trunk, it is under heavy development :).
>
> Download our latest M4 version from our web site and follow instructions on
> README file.
>
> For quick look, readme file is in
> http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txtexplains how to deploy ejb-sample using mvn tomcat:deploy.
>
> After downloading M4, go into samples directory and run mvn tomcat:deploy
> on ejb-sample. But, please ensure that you configure your tomcat correctly.
>
> Thanks;
>
> --Gurkan
>
> 2010/3/16 Paul J. Reder <re...@remulak.net>
>
> I'm also trying to deploy/run the ejb-sample with tomcat6 + openEJB3 +
>> 1.6.0-openjdk on Fedora 11 x86_64 and getting failures. I'm still looking
>> into it, but figured I'd
>> add my data to Vicky's.
>>
>> I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've copied
>> the latest:
>> geronimo-atinject_1.0_spec-1.0-beta.jar
>> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
>> geronimo-jcdi_1.0_spec-1.0-beta.jar
>> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
>> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>>
>> into tomcat/lib
>>
>> Deploy works fine, but trying to start the app results in the following
>> (It appears I'm not making it as far as Vicky): (according to debug msgs,
>> FindByQualifier is passed an empty set for remainingSet before it gets to
>> InjectionResolver.java:174)
>>
>>
>> ==============================================================================================
>>
>> Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer deploy
>> SEVERE:
>> Throwable occurred:
>> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
>> [org.apache.webbeans.sample.ejb.Echo] is not found with the qualifiers
>> [@javax.enterprise.inject.Default()] for injection into Field Injection
>> Point, field name : echo, Bean Owner : [Name:echo,WebBeans Type:MANAGED,API
>> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
>> at
>> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
>> at
>> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
>> at
>> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
>> at
>> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
>> at
>> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
>> at
>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
>> at
>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
>> at
>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
>> at
>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>> at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>> at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>> at
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
>> at
>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
>> at
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>> at
>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>> at
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>> at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>> at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>> at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> at
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>> at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>> at java.lang.reflect.Method.invoke(Method.java:600)
>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>>
>>
>> ==============================================================================================
>>
>>
>>
>>
>> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>>
>>> I downloaded the binaries for M4 and here is the result
>>>
>>>
>>> *********************************************************************************************
>>>
>>> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig deployWAR
>>> INFO: Deploying web application archive ejb-sample.war
>>> context path = /ejb-sample
>>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>>> findResourceInternal
>>> INFO: Illegal access: this web application instance has been stopped
>>> already. Could not load org/apache/openjpa/util/ImplHelper.class. The
>>> eventual following stack trace is caused by an error thrown for
>>> debugging purposes as well as to attempt to terminate the thread which
>>> caused the illegal access, and has no functional impact.
>>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>>> findResourceInternal
>>> INFO: Illegal access: this web application instance has been stopped
>>> already. Could not load org/apache/openjpa/util/ImplHelper$1.class. The
>>> eventual following stack trace is caused by an error thrown for
>>> debugging purposes as well as to attempt to terminate the thread which
>>> caused the illegal access, and has no functional impact.
>>>
>>> *********************************************************************************************
>>>
>>>
>>> I did place the openjpa jar in the tomat/lib, it resulted in the
>>> following trace
>>>
>>> *********************************************************************************************
>>>
>>> context path = /ejb-sample
>>> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config properties
>>> [META-INF/openwebbeans/openwebbeans.properties] found at location
>>>
>>> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
>>> Overriding default settings.
>>> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
>>> EjbPlugin
>>> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
>>> OpenWebBeansJsfPlugin
>>> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
>>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
>>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
>>> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
>>> default value false
>>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
>>> false
>>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
>>> default value true
>>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
>>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
>>> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
>>> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
>>> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
>>> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value
>>> false
>>> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
>>> Autoscrolling, DetectJavascript, AddResourceClass and
>>> CheckExtensionsFilter are disabled now.
>>> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
>>> MyFaces-JSF-Implementation
>>> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
>>> META-INF/standard-faces-config.xml
>>> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
>>>
>>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>>>
>>> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
>>>
>>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>>>
>>> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
>>> /WEB-INF/faces-config.xml
>>> 17:42:57,784 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>>> myfaces-api in version : 1.2.8 from path :
>>>
>>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>>>
>>> 17:42:57,785 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>>> myfaces-impl in version : 1.2.8 from path :
>>>
>>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>>>
>>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk not
>>> found.
>>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk12
>>> not found.
>>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>>> tomahawk-sandbox not found.
>>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>>> tomahawk-sandbox12 not found.
>>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>>> tomahawk-sandbox15 not found.
>>> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
>>> myfaces-orchestra-core not found.
>>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
>>> myfaces-orchestra-core12 not found.
>>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package : trinidad-api
>>> not found.
>>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
>>> trinidad-impl not found.
>>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : tobago not
>>> found.
>>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : commons-el
>>> not found.
>>> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package : jsp-api not
>>> found.
>>> 17:42:57,809 WARN LocaleUtils:55 - Locale name in faces-config.xml null
>>> or empty, setting locale to default locale : en_IN
>>> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization provider :
>>> class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>>> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
>>> '/home/vicky/developer/build-openejb/webapps/ejb-sample/' initialized.
>>> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
>>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
>>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
>>> ExternalContext using fallback LifecycleProvider.
>>> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
>>> LifecycleProvider
>>> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
>>> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
>>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans Container was
>>> stopped for context path, /ejb-sample
>>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>>> clearReferencesThreads
>>> SEVERE: A web application appears to have started a thread named
>>> [pool-1-thread-1] but has failed to stop it. This is very likely to
>>> create a memory leak.
>>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>>> clearThreadLocalMap
>>> SEVERE: A web application created a ThreadLocal with key of type
>>> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877]) and a
>>> value of type [org.apache.myfaces.config.RuntimeConfig] (value
>>> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed to remove
>>> it when the web application was stopped. To prevent a memory leak, the
>>> ThreadLocal has been forcibly removed.
>>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>>> clearThreadLocalMap
>>> SEVERE: A web application created a ThreadLocal with key of type [null]
>>> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a value of type
>>> [null] (value [null]) but failed to remove it when the web application
>>> was stopped. To prevent a memory leak, the ThreadLocal has been forcibly
>>> removed.
>>> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
>>> deployDirectory
>>>
>>> *********************************************************************************************
>>>
>>>
>>> I did got the similar behavior with the code from the trunk.
>>>
>>> Vicky
>>>
>>>
>> --
>> Paul J. Reder
>> -----------------------------------------------------------
>> "The strength of the Constitution lies entirely in the determination of
>> each
>> citizen to defend it. Only if every single citizen feels duty bound to do
>> his share in this defense are the constitutional rights secure."
>> -- Albert Einstein
>>
>>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
No it does not have, I am using ejb-samples and mvn tomcat:deploy.
Vicky
Mark Struberg wrote:
> check your war if you have another EL implementation packed into it.
>
> http://wiki.apache.org/myfaces/HowToEnableEl22
>
> LieGrue,
> strub
>
>
> --- Vicky Kak <vi...@gmail.com> schrieb am Mi, 17.3.2010:
>
>
>> Von: Vicky Kak <vi...@gmail.com>
>> Betreff: Re: Installation details in README_M3.txt is confusing.
>> An: user@openwebbeans.apache.org
>> Datum: Mittwoch, 17. März, 2010 12:07 Uhr
>> unfortunately not getting it work and
>> this time I see this the cause
>>
>> ************************************************************************************
>>
>> 17 Mar, 2010 2:46:12 PM
>> org.apache.catalina.core.StandardContext listenerStart
>> SEVERE: Exception sending context initialized event to
>> listener instance of class
>> org.apache.myfaces.webapp.StartupServletContextListener
>> java.lang.LinkageError: loader (instance of
>> org/apache/catalina/loader/StandardClassLoader): attempted
>> duplicate class definition for name: "javax/el/ELResolver"
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>> ************************************************************************************
>>
>>
>> Is there anyone else who got it working for M4 release?
>> The other sample application are getting deployed
>> properly.
>>
>> Thanks,
>> Vicky
>> Gurkan Erdogdu wrote:
>>
>>> java version "1.6.0_14"
>>> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
>>> Java HotSpot(TM) Server VM (build 14.0-b16, mixed
>>>
>> mode)
>>
>>>
>> ------------------------------------------------------------------------
>>
>>> *From:* Vicky Kak <vi...@gmail.com>
>>> *To:* user@openwebbeans.apache.org
>>> *Sent:* Wed, March 17, 2010 5:49:27 AM
>>> *Subject:* Re: Installation details in README_M3.txt
>>>
>> is confusing.
>>
>>> I did try with the older version of java but could not
>>>
>> get passed this issue, I will take a fresh look at it now.
>>
>>> You seem to have tested the stuff with M4, which
>>>
>> version of jdk have you been using?
>>
>>> -Vicky
>>> Gurkan Erdogdu wrote:
>>>
>>>> Yeah, this is mostly related with java version.
>>>>
>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------
>>
>>>> *From:* Vicky Kak <vicky.kak@gmail.com
>>>>
>> <ma...@gmail.com>>
>>
>>>> *To:* user@openwebbeans.apache.org
>>>>
>> <ma...@openwebbeans.apache.org>
>>
>>>> *Sent:* Tue, March 16, 2010 8:20:28 PM
>>>> *Subject:* Re: Installation details in
>>>>
>> README_M3.txt is confusing.
>>
>>>> Gurkan,
>>>>
>>>> The problem is cropping from openejb, check the
>>>>
>> logs
>>
>>>>
>> *********************************************************************************************************************************************************
>>
>>
>>>> 2010-03-16 22:44:54,629 - INFO - Found ejb module
>>>>
>> EjbModule in war
>>
>>>> /ejb-sample
>>>> 2010-03-16 22:44:54,874 - INFO - Configuring
>>>>
>> enterprise application:
>>
>> /home/vicky/developer/build-openejb/webapps/ejb-sample
>>
>>>> 2010-03-16 22:44:56,621 - INFO - Configuring
>>>> PersistenceUnit(name=myDataBase,
>>>>
>>>>
>> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
>>
>>>> 2010-03-16 22:44:56,621 - INFO - Adjusting
>>>>
>> PersistenceUnit myDataBase
>>
>>>> <jta-data-source> to Resource ID 'My
>>>>
>> DataSource' from 'null'
>>
>>>> 2010-03-16 22:44:56,621 - INFO - Adjusting
>>>>
>> PersistenceUnit myDataBase
>>
>>>> <non-jta-data-source> to Resource ID 'My
>>>>
>> Unmanaged DataSource' from 'null'
>>
>>>> 2010-03-16 22:44:56,628 - INFO - Enterprise
>>>>
>> application
>>
>> "/home/vicky/developer/build-openejb/webapps/ejb-sample"
>> loaded.
>>
>>>> 2010-03-16 22:44:56,628 - INFO - Assembling app:
>>>>
>>>>
>> /home/vicky/developer/build-openejb/webapps/ejb-sample
>>
>>>> 2010-03-16 22:44:56,638 - INFO -
>>>>
>> PersistenceUnit(name=myDataBase,
>>
>> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
>>
>>>> 2010-03-16 22:44:57,130 - INFO -
>>>>
>> Jndi(name=EchoBeanLocal) -->
>>
>>>> Ejb(deployment-id=EchoBean)
>>>> 2010-03-16 22:44:57,130 - INFO - Created
>>>>
>> Ejb(deployment-id=EchoBean,
>>
>>>> ejb-name=EchoBean, container=My Stateless
>>>>
>> Container)
>>
>>>> 2010-03-16 22:44:57,130 - INFO - Deployed
>>>>
>>>>
>> Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
>>
>>>> 2010-03-16 22:44:57,440 - INFO - Undeploying
>>>>
>> app:
>>
>> /home/vicky/developer/build-openejb/webapps/ejb-sample
>>
>>>> 2010-03-16 22:44:57,458 - ERROR - Unable to clear
>>>>
>> Sun JarFileFactory cache
>>
>>>> java.lang.ClassCastException: java.lang.String
>>>>
>> cannot be cast to
>>
>>>> java.net.URL
>>>> at
>>>>
>>>>
>> org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
>>
>>>> at
>>>>
>>>>
>> org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
>>
>>>> at
>>>>
>>>>
>> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
>>
>>>> at
>>>>
>>>>
>> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
>>
>>>> at
>>>>
>>>>
>> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
>>
>>>> at
>>>>
>>>>
>> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
>>
>>>> at
>>>>
>>>>
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>
>>>> at
>>>>
>>>>
>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
>>
>> *********************************************************************************************************************************************************
>>
>>
>>>>
>>>> Mark already brought this to our notice before
>>>>
>>>> http://issues.apache.org/jira/browse/GERONIMO-5036
>>>>
>>>>
>>>> regards,
>>>> Vicky
>>>>
>>>>
>>>>
>>>> Gurkan Erdogdu wrote:
>>>>
>>>>> As I said before, do not use trunk, it is
>>>>>
>> under heavy development :).
>>
>>>>> Download our latest M4 version from our web
>>>>>
>> site and follow
>>
>>>>> instructions on README file.
>>>>>
>>>>> For quick look, readme file is in
>>>>> http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
>>>>> explains how to deploy ejb-sample using mvn
>>>>>
>> tomcat:deploy.
>>
>>>>> After downloading M4, go into samples
>>>>>
>> directory and run mvn
>>
>>>>> tomcat:deploy on ejb-sample. But, please
>>>>>
>> ensure that you configure
>>
>>>>> your tomcat correctly.
>>>>>
>>>>> Thanks;
>>>>>
>>>>> --Gurkan
>>>>>
>>>>> 2010/3/16 Paul J. Reder <rederpj@remulak.net
>>>>>
>> <ma...@remulak.net>
>> <mailto:rederpj@remulak.net
>> <ma...@remulak.net>>
>> <mailto:rederpj@remulak.net
>> <ma...@remulak.net>
>> <mailto:rederpj@remulak.net
>> <ma...@remulak.net>>>>
>>
>>>>> I'm also trying to deploy/run the ejb-sample
>>>>>
>> with tomcat6 +
>>
>>>>> openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64
>>>>>
>> and getting failures.
>>
>>>>> I'm still looking into it, but figured I'd
>>>>> add my data to Vicky's.
>>>>>
>>>>> I'm using trunk as of 3/16/2010 10:00am
>>>>>
>> Eastern US time and I've
>>
>>>>> copied the latest:
>>>>> geronimo-atinject_1.0_spec-1.0-beta.jar
>>>>>
>>>>>
>> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
>>
>>>>> geronimo-jcdi_1.0_spec-1.0-beta.jar
>>>>> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
>>>>> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>>>>>
>>>>> into tomcat/lib
>>>>>
>>>>> Deploy works fine, but trying to start the
>>>>>
>> app results in the
>>
>>>>> following (It appears I'm not making it as
>>>>>
>> far as Vicky):
>>
>>>>> (according to debug msgs, FindByQualifier is
>>>>>
>> passed an empty set
>>
>>>>> for remainingSet before it gets to
>>>>>
>> InjectionResolver.java:174)
>>
>>>>>
>> ==============================================================================================
>>
>>>>> Mar 16, 2010 9:28:47 AM
>>>>>
>> org.apache.webbeans.config.BeansDeployer
>>
>>>>> deploy
>>>>> SEVERE:
>>>>> Throwable occurred:
>>>>>
>>>>>
>> javax.enterprise.inject.UnsatisfiedResolutionException: Api
>> type
>>
>>>>> [org.apache.webbeans.sample.ejb.Echo] is not
>>>>>
>> found with the
>>
>>>>> qualifiers
>>>>>
>> [@javax.enterprise.inject.Default()] for injection into
>>
>>>>> Field Injection Point, field name : echo,
>>>>>
>> Bean Owner :
>>
>>>>> [Name:echo,WebBeans Type:MANAGED,API
>>>>>
>>>>>
>> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>>
>>>>> at
>>>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>>>> at
>>>>>
>>>>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>>
>>>>> at
>>>>>
>>>>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>>
>>>>> at
>>>>>
>> java.lang.reflect.Method.invoke(Method.java:600)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>
>>>>> at
>>>>>
>>>>>
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>>>>>
>>>>>
>> ==============================================================================================
>>
>>>>>
>>>>>
>>>>> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>>>>>
>>>>> I downloaded the binaries for M4 and here is
>>>>>
>> the result
>>
>>>>>
>> *********************************************************************************************
>>
>>>>> 16 Mar, 2010 5:39:14 PM
>>>>>
>> org.apache.catalina.startup.HostConfig
>>
>>>>> deployWAR
>>>>> INFO: Deploying web application archive
>>>>>
>> ejb-sample.war
>>
>>>>> context path = /ejb-sample
>>>>> 16 Mar, 2010 5:39:20 PM
>>>>>
>>>>>
>> org.apache.catalina.loader.WebappClassLoader
>>
>>>>> findResourceInternal
>>>>> INFO: Illegal access: this web application
>>>>>
>> instance has been
>>
>>>>> stopped
>>>>> already. Could not load
>>>>> org/apache/openjpa/util/ImplHelper.class.
>>>>>
>> The
>>
>>>>> eventual following stack trace is caused by
>>>>>
>> an error thrown for
>>
>>>>> debugging purposes as well as to attempt to
>>>>>
>> terminate the
>>
>>>>> thread which
>>>>> caused the illegal access, and has no
>>>>>
>> functional impact.
>>
>>>>> 16 Mar, 2010 5:39:20 PM
>>>>>
>>>>>
>> org.apache.catalina.loader.WebappClassLoader
>>
>>>>> findResourceInternal
>>>>> INFO: Illegal access: this web application
>>>>>
>> instance has been
>>
>>>>> stopped
>>>>> already. Could not load
>>>>> org/apache/openjpa/util/ImplHelper$1.class.
>>>>>
>> The
>>
>>>>> eventual following stack trace is caused by
>>>>>
>> an error thrown for
>>
>>>>> debugging purposes as well as to attempt to
>>>>>
>> terminate the
>>
>>>>> thread which
>>>>> caused the illegal access, and has no
>>>>>
>> functional impact.
>>
>> *********************************************************************************************
>>
>>>>> I did place the openjpa jar in the
>>>>>
>> tomat/lib, it resulted in the
>>
>>>>> following trace
>>>>>
>>>>>
>> *********************************************************************************************
>>
>>>>> context path = /ejb-sample
>>>>> 17:42:57,088 INFO
>>>>>
>> OpenWebBeansConfiguration:134 - Config
>>
>>>>> properties
>>>>>
>>>>>
>> [META-INF/openwebbeans/openwebbeans.properties] found at
>> location
>>
>> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
>>
>>>>> Overriding default settings.
>>>>> 17:42:57,124 INFO PluginLoader:143 - Adding
>>>>>
>> OpenWebBeansPlugin
>>
>>>>> : EjbPlugin
>>>>> 17:42:57,126 INFO PluginLoader:143 - Adding
>>>>>
>> OpenWebBeansPlugin :
>>
>>>>> OpenWebBeansJsfPlugin
>>>>> 17:42:57,376 INFO
>>>>>
>> StartupServletContextListener:81 - Checking for
>>
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>
>>>>> 17:42:57,406 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.PRETTY_HTML' found,
>>>>>
>> using default value true
>>
>>>>> 17:42:57,406 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found,
>>>>>
>> using default
>>
>>>>> value true
>>>>> 17:42:57,407 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON'
>> found,
>>
>>>>> using
>>>>> default value false
>>>>> 17:42:57,410 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
>>
>>>>> default value
>>>>> false
>>>>> 17:42:57,410 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found,
>> using
>>
>>>>> default value true
>>>>> 17:42:57,411 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.RENDER_VIEWSTATE_ID'
>>>>>
>> found, using default
>>
>>>>> value true
>>>>> 17:42:57,411 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.STRICT_XHTML_LINKS'
>>>>>
>> found, using default
>>
>>>>> value true
>>>>> 17:42:57,411 INFO MyfacesConfig:379 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD'
>>>>>
>> found, using
>>
>>>>> default value 2
>>>>> 17:42:57,412 INFO MyfacesConfig:341 - No
>>>>>
>> context init parameter
>>
>>>>> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT'
>>>>>
>> found, using default
>>
>>>>> value false
>>>>> 17:42:57,412 INFO MyfacesConfig:307 -
>>>>>
>> Tomahawk jar not available.
>>
>>>>> Autoscrolling, DetectJavascript,
>>>>>
>> AddResourceClass and
>>
>>>>> CheckExtensionsFilter are disabled now.
>>>>> 17:42:57,412 INFO MyfacesConfig:323 -
>>>>>
>> Starting up Tomahawk on the
>>
>>>>> MyFaces-JSF-Implementation
>>>>> 17:42:57,459 INFO FacesConfigurator:441 -
>>>>>
>> Reading standard config
>>
>>>>> META-INF/standard-faces-config.xml
>>>>> 17:42:57,757 INFO FacesConfigurator:642 -
>>>>>
>> Reading config :
>>
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>>
>>>>> 17:42:57,765 INFO FacesConfigurator:642 -
>>>>>
>> Reading config :
>>
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>>
>>>>> 17:42:57,768 INFO FacesConfigurator:715 -
>>>>>
>> Reading config
>>
>>>>> /WEB-INF/faces-config.xml
>>>>> 17:42:57,784 INFO FacesConfigurator:755 -
>>>>>
>> Starting up
>>
>>>>> MyFaces-package :
>>>>> myfaces-api in version : 1.2.8 from path :
>>>>>
>>>>>
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>>
>>>>> 17:42:57,785 INFO FacesConfigurator:755 -
>>>>>
>> Starting up
>>
>>>>> MyFaces-package :
>>>>> myfaces-impl in version : 1.2.8 from path :
>>>>>
>>>>>
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>>
>>>>> 17:42:57,785 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tomahawk not
>>>>> found.
>>>>> 17:42:57,785 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tomahawk12
>>>>> not found.
>>>>> 17:42:57,786 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tomahawk-sandbox not found.
>>>>> 17:42:57,786 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tomahawk-sandbox12 not found.
>>>>> 17:42:57,786 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tomahawk-sandbox15 not found.
>>>>> 17:42:57,787 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> myfaces-orchestra-core not found.
>>>>> 17:42:57,790 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> myfaces-orchestra-core12 not found.
>>>>> 17:42:57,790 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> trinidad-api
>>>>> not found.
>>>>> 17:42:57,791 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> trinidad-impl not found.
>>>>> 17:42:57,791 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> tobago not
>>>>> found.
>>>>> 17:42:57,791 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> commons-el
>>>>> not found.
>>>>> 17:42:57,792 INFO FacesConfigurator:750 -
>>>>>
>> MyFaces-package :
>>
>>>>> jsp-api not
>>>>> found.
>>>>> 17:42:57,809 WARN LocaleUtils:55 - Locale
>>>>>
>> name in
>>
>>>>> faces-config.xml null
>>>>> or empty, setting locale to default locale :
>>>>>
>> en_IN
>>
>>>>> 17:42:57,926 INFO FacesConfigurator:1367 -
>>>>>
>> Serialization
>>
>>>>> provider :
>>>>> class
>>>>>
>>>>>
>> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>>
>>>>> 17:42:57,936 INFO
>>>>>
>> AbstractFacesInitializer:98 - ServletContext
>>
>> '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
>>
>>>>> initialized.
>>>>> 17:42:57,937 INFO
>>>>>
>> StartupServletContextListener:81 - Checking for
>>
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>
>>>>> 17:42:57,940 INFO
>>>>>
>> StartupServletContextListener:81 - Checking for
>>
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>
>>>>> 17:42:57,974 INFO
>>>>>
>> DefaultLifecycleProviderFactory:58 - No
>>
>>>>> ExternalContext using fallback
>>>>>
>> LifecycleProvider.
>>
>>>>> 17:42:57,979 INFO
>>>>>
>> DefaultLifecycleProviderFactory:71 - Using
>>
>>>>> LifecycleProvider
>>>>>
>>>>>
>> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
>>
>>>>> 17:42:57,983 INFO
>>>>>
>> StartupServletContextListener:81 - Checking for
>>
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>>
>>>>> 17:42:57,986 INFO DefaultLifecycle:143 -
>>>>>
>> OpenWebBeans
>>
>>>>> Container was
>>>>> stopped for context path, /ejb-sample
>>>>> 16 Mar, 2010 5:42:57 PM
>>>>>
>>>>>
>> org.apache.catalina.loader.WebappClassLoader
>>
>>>>> clearReferencesThreads
>>>>> SEVERE: A web application appears to have
>>>>>
>> started a thread named
>>
>>>>> [pool-1-thread-1] but has failed to stop it.
>>>>>
>> This is very
>>
>>>>> likely to
>>>>> create a memory leak.
>>>>> 16 Mar, 2010 5:42:57 PM
>>>>>
>>>>>
>> org.apache.catalina.loader.WebappClassLoader
>>
>>>>> clearThreadLocalMap
>>>>> SEVERE: A web application created a
>>>>>
>> ThreadLocal with key of type
>>
>>>>> [java.lang.ThreadLocal] (value
>>>>>
>> [java.lang.ThreadLocal@d03877])
>>
>>>>> and a
>>>>> value of type
>>>>>
>> [org.apache.myfaces.config.RuntimeConfig] (value
>>
>> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but
>> failed
>>
>>>>> to remove
>>>>> it when the web application was stopped. To
>>>>>
>> prevent a memory
>>
>>>>> leak, the
>>>>> ThreadLocal has been forcibly removed.
>>>>> 16 Mar, 2010 5:42:57 PM
>>>>>
>>>>>
>> org.apache.catalina.loader.WebappClassLoader
>>
>>>>> clearThreadLocalMap
>>>>> SEVERE: A web application created a
>>>>>
>> ThreadLocal with key of
>>
>>>>> type [null]
>>>>> (value
>>>>>
>> [javax.faces.context.FacesContext$1@17fb9d5]) and a
>>
>>>>> value of type
>>>>> [null] (value [null]) but failed to remove
>>>>>
>> it when the web
>>
>>>>> application
>>>>> was stopped. To prevent a memory leak, the
>>>>>
>> ThreadLocal has
>>
>>>>> been forcibly
>>>>> removed.
>>>>> 16 Mar, 2010 5:42:58 PM
>>>>>
>> org.apache.catalina.startup.HostConfig
>>
>>>>> deployDirectory
>>>>>
>>>>>
>> *********************************************************************************************
>>
>>>>> I did got the similar behavior with the code
>>>>>
>> from the trunk.
>>
>>>>> Vicky
>>>>>
>>>>>
>>>>> --
>>>>> Paul J. Reder
>>>>>
>>>>>
>> -----------------------------------------------------------
>>
>>>>> "The strength of the Constitution lies
>>>>>
>> entirely in the
>>
>>>>> determination of each
>>>>> citizen to defend it. Only if every single
>>>>>
>> citizen feels duty
>>
>>>>> bound to do
>>>>> his share in this defense are the
>>>>>
>> constitutional rights secure."
>>
>>>>> -- Albert Einstein
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Gurkan Erdogdu
>>>>> http://gurkanerdogdu.blogspot.com
>>>>>
>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------
>>
>>>> Yahoo! Türkiye aç?ld?!
>>>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo!
>>>>
>> Türkiye'de!
>>
>>>> www.yahoo.com.tr <http://www.yahoo.com.tr> <http://tr.yahoo.com/>
>>>>
>>>
>>>
>> ------------------------------------------------------------------------
>>
>>> Yahoo! Türkiye açıldı!
>>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo!
>>>
>> Türkiye'de!
>>
>>> www.yahoo.com.tr <http://tr.yahoo.com/>
>>>
>>
>
> __________________________________________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
> http://mail.yahoo.com
>
>
Re: Installation details in README_M3.txt is confusing.
Posted by Mark Struberg <st...@yahoo.de>.
check your war if you have another EL implementation packed into it.
http://wiki.apache.org/myfaces/HowToEnableEl22
LieGrue,
strub
--- Vicky Kak <vi...@gmail.com> schrieb am Mi, 17.3.2010:
> Von: Vicky Kak <vi...@gmail.com>
> Betreff: Re: Installation details in README_M3.txt is confusing.
> An: user@openwebbeans.apache.org
> Datum: Mittwoch, 17. März, 2010 12:07 Uhr
> unfortunately not getting it work and
> this time I see this the cause
>
> ************************************************************************************
>
> 17 Mar, 2010 2:46:12 PM
> org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to
> listener instance of class
> org.apache.myfaces.webapp.StartupServletContextListener
> java.lang.LinkageError: loader (instance of
> org/apache/catalina/loader/StandardClassLoader): attempted
> duplicate class definition for name: "javax/el/ELResolver"
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ************************************************************************************
>
>
> Is there anyone else who got it working for M4 release?
> The other sample application are getting deployed
> properly.
>
> Thanks,
> Vicky
> Gurkan Erdogdu wrote:
> > java version "1.6.0_14"
> > Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> > Java HotSpot(TM) Server VM (build 14.0-b16, mixed
> mode)
> >
> >
> ------------------------------------------------------------------------
> > *From:* Vicky Kak <vi...@gmail.com>
> > *To:* user@openwebbeans.apache.org
> > *Sent:* Wed, March 17, 2010 5:49:27 AM
> > *Subject:* Re: Installation details in README_M3.txt
> is confusing.
> >
> > I did try with the older version of java but could not
> get passed this issue, I will take a fresh look at it now.
> > You seem to have tested the stuff with M4, which
> version of jdk have you been using?
> >
> > -Vicky
> > Gurkan Erdogdu wrote:
> > > Yeah, this is mostly related with java version.
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > *From:* Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>>
> > > *To:* user@openwebbeans.apache.org
> <ma...@openwebbeans.apache.org>
> > > *Sent:* Tue, March 16, 2010 8:20:28 PM
> > > *Subject:* Re: Installation details in
> README_M3.txt is confusing.
> > >
> > > Gurkan,
> > >
> > > The problem is cropping from openejb, check the
> logs
> > >
> > >
> *********************************************************************************************************************************************************
>
> > >
> > >
> > > 2010-03-16 22:44:54,629 - INFO - Found ejb module
> EjbModule in war
> > > /ejb-sample
> > > 2010-03-16 22:44:54,874 - INFO - Configuring
> enterprise application:
> > >
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> > > 2010-03-16 22:44:56,621 - INFO - Configuring
> > > PersistenceUnit(name=myDataBase,
> > >
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> > > 2010-03-16 22:44:56,621 - INFO - Adjusting
> PersistenceUnit myDataBase
> > > <jta-data-source> to Resource ID 'My
> DataSource' from 'null'
> > > 2010-03-16 22:44:56,621 - INFO - Adjusting
> PersistenceUnit myDataBase
> > > <non-jta-data-source> to Resource ID 'My
> Unmanaged DataSource' from 'null'
> > > 2010-03-16 22:44:56,628 - INFO - Enterprise
> application
> > >
> "/home/vicky/developer/build-openejb/webapps/ejb-sample"
> loaded.
> > > 2010-03-16 22:44:56,628 - INFO - Assembling app:
> > >
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> > > 2010-03-16 22:44:56,638 - INFO -
> PersistenceUnit(name=myDataBase,
> > >
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> > > 2010-03-16 22:44:57,130 - INFO -
> Jndi(name=EchoBeanLocal) -->
> > > Ejb(deployment-id=EchoBean)
> > > 2010-03-16 22:44:57,130 - INFO - Created
> Ejb(deployment-id=EchoBean,
> > > ejb-name=EchoBean, container=My Stateless
> Container)
> > > 2010-03-16 22:44:57,130 - INFO - Deployed
> > >
> Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
> > > 2010-03-16 22:44:57,440 - INFO - Undeploying
> app:
> > >
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> > > 2010-03-16 22:44:57,458 - ERROR - Unable to clear
> Sun JarFileFactory cache
> > > java.lang.ClassCastException: java.lang.String
> cannot be cast to
> > > java.net.URL
> > > at
> > >
> org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
> > > at
> > >
> org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
> > > at
> > >
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
> > > at
> > >
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
> > > at
> > >
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
> > > at
> > >
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
> > > at
> > >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > > at
> > >
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
> > >
> *********************************************************************************************************************************************************
>
> > >
> > >
> > >
> > > Mark already brought this to our notice before
> > >
> > > http://issues.apache.org/jira/browse/GERONIMO-5036
> > >
> > >
> > > regards,
> > > Vicky
> > >
> > >
> > >
> > > Gurkan Erdogdu wrote:
> > > > As I said before, do not use trunk, it is
> under heavy development :).
> > > >
> > > > Download our latest M4 version from our web
> site and follow
> > > > instructions on README file.
> > > >
> > > > For quick look, readme file is in
> > > > http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> > > > explains how to deploy ejb-sample using mvn
> tomcat:deploy.
> > > >
> > > > After downloading M4, go into samples
> directory and run mvn
> > > > tomcat:deploy on ejb-sample. But, please
> ensure that you configure
> > > > your tomcat correctly.
> > > >
> > > > Thanks;
> > > >
> > > > --Gurkan
> > > >
> > > > 2010/3/16 Paul J. Reder <rederpj@remulak.net
> <ma...@remulak.net>
> <mailto:rederpj@remulak.net
> <ma...@remulak.net>>
> <mailto:rederpj@remulak.net
> <ma...@remulak.net>
> <mailto:rederpj@remulak.net
> <ma...@remulak.net>>>>
> > > >
> > > > I'm also trying to deploy/run the ejb-sample
> with tomcat6 +
> > > > openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64
> and getting failures.
> > > > I'm still looking into it, but figured I'd
> > > > add my data to Vicky's.
> > > >
> > > > I'm using trunk as of 3/16/2010 10:00am
> Eastern US time and I've
> > > > copied the latest:
> > > > geronimo-atinject_1.0_spec-1.0-beta.jar
> > > >
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> > > > geronimo-jcdi_1.0_spec-1.0-beta.jar
> > > > openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> > > > openwebbeans-spi-1.0.0-SNAPSHOT.jar
> > > >
> > > > into tomcat/lib
> > > >
> > > > Deploy works fine, but trying to start the
> app results in the
> > > > following (It appears I'm not making it as
> far as Vicky):
> > > > (according to debug msgs, FindByQualifier is
> passed an empty set
> > > > for remainingSet before it gets to
> InjectionResolver.java:174)
> > > >
> > > >
> ==============================================================================================
> > > >
> > > > Mar 16, 2010 9:28:47 AM
> org.apache.webbeans.config.BeansDeployer
> > > > deploy
> > > > SEVERE:
> > > > Throwable occurred:
> > > >
> javax.enterprise.inject.UnsatisfiedResolutionException: Api
> type
> > > > [org.apache.webbeans.sample.ejb.Echo] is not
> found with the
> > > > qualifiers
> [@javax.enterprise.inject.Default()] for injection into
> > > > Field Injection Point, field name : echo,
> Bean Owner :
> > > > [Name:echo,WebBeans Type:MANAGED,API
> > > >
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> > > > at
> > > >
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> > > > at
> > > >
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> > > > at
> > > >
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> > > > at
> > > >
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> > > > at
> > > >
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> > > > at
> > > >
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> > > > at
> > > >
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> > > > at
> > > >
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> > > > at
> > > >
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> > > > at
> > > >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> > > > at
> > > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> > > > at
> > > >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > > > at
> > > >
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > > > at
> > > >
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> > > > at
> > > >
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> > > > at
> > > >
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> > > > at
> > > >
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> > > > at
> > > >
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> > > > at
> > > >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> > > > at
> > > >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > > > at
> > > >
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> > > > at
> > > >
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> > > > at
> > > >
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > > > at
> > > >
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > > > at
> > > >
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> > > > at
> > > >
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> > > > at
> > > >
> org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> > > > at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > at
> > > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> > > > at
> > > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> > > > at
> java.lang.reflect.Method.invoke(Method.java:600)
> > > > at
> > > >
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> > > > at
> > > >
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> > > >
> > > >
> > > >
> ==============================================================================================
> > > >
> > > >
> > > >
> > > >
> > > > On 03/16/2010 08:15 AM, Vicky Kak wrote:
> > > >
> > > > I downloaded the binaries for M4 and here is
> the result
> > > >
> > > >
> *********************************************************************************************
> > > >
> > > > 16 Mar, 2010 5:39:14 PM
> org.apache.catalina.startup.HostConfig
> > > > deployWAR
> > > > INFO: Deploying web application archive
> ejb-sample.war
> > > > context path = /ejb-sample
> > > > 16 Mar, 2010 5:39:20 PM
> > > >
> org.apache.catalina.loader.WebappClassLoader
> > > > findResourceInternal
> > > > INFO: Illegal access: this web application
> instance has been
> > > > stopped
> > > > already. Could not load
> > > > org/apache/openjpa/util/ImplHelper.class.
> The
> > > > eventual following stack trace is caused by
> an error thrown for
> > > > debugging purposes as well as to attempt to
> terminate the
> > > > thread which
> > > > caused the illegal access, and has no
> functional impact.
> > > > 16 Mar, 2010 5:39:20 PM
> > > >
> org.apache.catalina.loader.WebappClassLoader
> > > > findResourceInternal
> > > > INFO: Illegal access: this web application
> instance has been
> > > > stopped
> > > > already. Could not load
> > > > org/apache/openjpa/util/ImplHelper$1.class.
> The
> > > > eventual following stack trace is caused by
> an error thrown for
> > > > debugging purposes as well as to attempt to
> terminate the
> > > > thread which
> > > > caused the illegal access, and has no
> functional impact.
> > > >
> *********************************************************************************************
> > > >
> > > >
> > > > I did place the openjpa jar in the
> tomat/lib, it resulted in the
> > > > following trace
> > > >
> *********************************************************************************************
> > > >
> > > > context path = /ejb-sample
> > > > 17:42:57,088 INFO
> OpenWebBeansConfiguration:134 - Config
> > > > properties
> > > >
> [META-INF/openwebbeans/openwebbeans.properties] found at
> location
> > > >
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> > > > Overriding default settings.
> > > > 17:42:57,124 INFO PluginLoader:143 - Adding
> OpenWebBeansPlugin
> > > > : EjbPlugin
> > > > 17:42:57,126 INFO PluginLoader:143 - Adding
> OpenWebBeansPlugin :
> > > > OpenWebBeansJsfPlugin
> > > > 17:42:57,376 INFO
> StartupServletContextListener:81 - Checking for
> > > >
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > > 17:42:57,406 INFO MyfacesConfig:341 - No
> context init parameter
> > > > 'org.apache.myfaces.PRETTY_HTML' found,
> using default value true
> > > > 17:42:57,406 INFO MyfacesConfig:341 - No
> context init parameter
> > > > 'org.apache.myfaces.ALLOW_JAVASCRIPT' found,
> using default
> > > > value true
> > > > 17:42:57,407 INFO MyfacesConfig:341 - No
> context init parameter
> > > >
> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON'
> found,
> > > > using
> > > > default value false
> > > > 17:42:57,410 INFO MyfacesConfig:341 - No
> context init parameter
> > > >
> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> > > > default value
> > > > false
> > > > 17:42:57,410 INFO MyfacesConfig:341 - No
> context init parameter
> > > >
> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found,
> using
> > > > default value true
> > > > 17:42:57,411 INFO MyfacesConfig:341 - No
> context init parameter
> > > > 'org.apache.myfaces.RENDER_VIEWSTATE_ID'
> found, using default
> > > > value true
> > > > 17:42:57,411 INFO MyfacesConfig:341 - No
> context init parameter
> > > > 'org.apache.myfaces.STRICT_XHTML_LINKS'
> found, using default
> > > > value true
> > > > 17:42:57,411 INFO MyfacesConfig:379 - No
> context init parameter
> > > > 'org.apache.myfaces.CONFIG_REFRESH_PERIOD'
> found, using
> > > > default value 2
> > > > 17:42:57,412 INFO MyfacesConfig:341 - No
> context init parameter
> > > > 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT'
> found, using default
> > > > value false
> > > > 17:42:57,412 INFO MyfacesConfig:307 -
> Tomahawk jar not available.
> > > > Autoscrolling, DetectJavascript,
> AddResourceClass and
> > > > CheckExtensionsFilter are disabled now.
> > > > 17:42:57,412 INFO MyfacesConfig:323 -
> Starting up Tomahawk on the
> > > > MyFaces-JSF-Implementation
> > > > 17:42:57,459 INFO FacesConfigurator:441 -
> Reading standard config
> > > > META-INF/standard-faces-config.xml
> > > > 17:42:57,757 INFO FacesConfigurator:642 -
> Reading config :
> > > >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
> > > >
> > > > 17:42:57,765 INFO FacesConfigurator:642 -
> Reading config :
> > > >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
> > > >
> > > > 17:42:57,768 INFO FacesConfigurator:715 -
> Reading config
> > > > /WEB-INF/faces-config.xml
> > > > 17:42:57,784 INFO FacesConfigurator:755 -
> Starting up
> > > > MyFaces-package :
> > > > myfaces-api in version : 1.2.8 from path :
> > > >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
> > > >
> > > > 17:42:57,785 INFO FacesConfigurator:755 -
> Starting up
> > > > MyFaces-package :
> > > > myfaces-impl in version : 1.2.8 from path :
> > > >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
> > > >
> > > > 17:42:57,785 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tomahawk not
> > > > found.
> > > > 17:42:57,785 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tomahawk12
> > > > not found.
> > > > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tomahawk-sandbox not found.
> > > > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tomahawk-sandbox12 not found.
> > > > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tomahawk-sandbox15 not found.
> > > > 17:42:57,787 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > myfaces-orchestra-core not found.
> > > > 17:42:57,790 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > myfaces-orchestra-core12 not found.
> > > > 17:42:57,790 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > trinidad-api
> > > > not found.
> > > > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > trinidad-impl not found.
> > > > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > tobago not
> > > > found.
> > > > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > commons-el
> > > > not found.
> > > > 17:42:57,792 INFO FacesConfigurator:750 -
> MyFaces-package :
> > > > jsp-api not
> > > > found.
> > > > 17:42:57,809 WARN LocaleUtils:55 - Locale
> name in
> > > > faces-config.xml null
> > > > or empty, setting locale to default locale :
> en_IN
> > > > 17:42:57,926 INFO FacesConfigurator:1367 -
> Serialization
> > > > provider :
> > > > class
> > > >
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > > > 17:42:57,936 INFO
> AbstractFacesInitializer:98 - ServletContext
> > > >
> '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> > > > initialized.
> > > > 17:42:57,937 INFO
> StartupServletContextListener:81 - Checking for
> > > >
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > > 17:42:57,940 INFO
> StartupServletContextListener:81 - Checking for
> > > >
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > > 17:42:57,974 INFO
> DefaultLifecycleProviderFactory:58 - No
> > > > ExternalContext using fallback
> LifecycleProvider.
> > > > 17:42:57,979 INFO
> DefaultLifecycleProviderFactory:71 - Using
> > > > LifecycleProvider
> > > >
> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> > > > 17:42:57,983 INFO
> StartupServletContextListener:81 - Checking for
> > > >
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > > 17:42:57,986 INFO DefaultLifecycle:143 -
> OpenWebBeans
> > > > Container was
> > > > stopped for context path, /ejb-sample
> > > > 16 Mar, 2010 5:42:57 PM
> > > >
> org.apache.catalina.loader.WebappClassLoader
> > > > clearReferencesThreads
> > > > SEVERE: A web application appears to have
> started a thread named
> > > > [pool-1-thread-1] but has failed to stop it.
> This is very
> > > > likely to
> > > > create a memory leak.
> > > > 16 Mar, 2010 5:42:57 PM
> > > >
> org.apache.catalina.loader.WebappClassLoader
> > > > clearThreadLocalMap
> > > > SEVERE: A web application created a
> ThreadLocal with key of type
> > > > [java.lang.ThreadLocal] (value
> [java.lang.ThreadLocal@d03877])
> > > > and a
> > > > value of type
> [org.apache.myfaces.config.RuntimeConfig] (value
> > > >
> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but
> failed
> > > > to remove
> > > > it when the web application was stopped. To
> prevent a memory
> > > > leak, the
> > > > ThreadLocal has been forcibly removed.
> > > > 16 Mar, 2010 5:42:57 PM
> > > >
> org.apache.catalina.loader.WebappClassLoader
> > > > clearThreadLocalMap
> > > > SEVERE: A web application created a
> ThreadLocal with key of
> > > > type [null]
> > > > (value
> [javax.faces.context.FacesContext$1@17fb9d5]) and a
> > > > value of type
> > > > [null] (value [null]) but failed to remove
> it when the web
> > > > application
> > > > was stopped. To prevent a memory leak, the
> ThreadLocal has
> > > > been forcibly
> > > > removed.
> > > > 16 Mar, 2010 5:42:58 PM
> org.apache.catalina.startup.HostConfig
> > > > deployDirectory
> > > >
> *********************************************************************************************
> > > >
> > > >
> > > > I did got the similar behavior with the code
> from the trunk.
> > > >
> > > > Vicky
> > > >
> > > >
> > > > --
> > > > Paul J. Reder
> > > >
> -----------------------------------------------------------
> > > > "The strength of the Constitution lies
> entirely in the
> > > > determination of each
> > > > citizen to defend it. Only if every single
> citizen feels duty
> > > > bound to do
> > > > his share in this defense are the
> constitutional rights secure."
> > > > -- Albert Einstein
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Gurkan Erdogdu
> > > > http://gurkanerdogdu.blogspot.com
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Yahoo! Türkiye aç?ld?!
> > > Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo!
> Türkiye'de!
> > > www.yahoo.com.tr <http://www.yahoo.com.tr> <http://tr.yahoo.com/>
> >
> >
> >
> ------------------------------------------------------------------------
> > Yahoo! Türkiye açıldı!
> > Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo!
> Türkiye'de!
> > www.yahoo.com.tr <http://tr.yahoo.com/>
>
>
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
unfortunately not getting it work and this time I see this the cause
************************************************************************************
17 Mar, 2010 2:46:12 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Exception sending context initialized event to listener instance
of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.LinkageError: loader (instance of
org/apache/catalina/loader/StandardClassLoader): attempted duplicate
class definition for name: "javax/el/ELResolver"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
************************************************************************************
Is there anyone else who got it working for M4 release?
The other sample application are getting deployed properly.
Thanks,
Vicky
Gurkan Erdogdu wrote:
> java version "1.6.0_14"
> Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
>
> ------------------------------------------------------------------------
> *From:* Vicky Kak <vi...@gmail.com>
> *To:* user@openwebbeans.apache.org
> *Sent:* Wed, March 17, 2010 5:49:27 AM
> *Subject:* Re: Installation details in README_M3.txt is confusing.
>
> I did try with the older version of java but could not get passed this
> issue, I will take a fresh look at it now.
> You seem to have tested the stuff with M4, which version of jdk have
> you been using?
>
> -Vicky
> Gurkan Erdogdu wrote:
> > Yeah, this is mostly related with java version.
> >
> >
> > ------------------------------------------------------------------------
> > *From:* Vicky Kak <vicky.kak@gmail.com <ma...@gmail.com>>
> > *To:* user@openwebbeans.apache.org <ma...@openwebbeans.apache.org>
> > *Sent:* Tue, March 16, 2010 8:20:28 PM
> > *Subject:* Re: Installation details in README_M3.txt is confusing.
> >
> > Gurkan,
> >
> > The problem is cropping from openejb, check the logs
> >
> >
> *********************************************************************************************************************************************************
>
> >
> >
> > 2010-03-16 22:44:54,629 - INFO - Found ejb module EjbModule in war
> > /ejb-sample
> > 2010-03-16 22:44:54,874 - INFO - Configuring enterprise application:
> > /home/vicky/developer/build-openejb/webapps/ejb-sample
> > 2010-03-16 22:44:56,621 - INFO - Configuring
> > PersistenceUnit(name=myDataBase,
> > provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> > 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> > <jta-data-source> to Resource ID 'My DataSource' from 'null'
> > 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> > <non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from
> 'null'
> > 2010-03-16 22:44:56,628 - INFO - Enterprise application
> > "/home/vicky/developer/build-openejb/webapps/ejb-sample" loaded.
> > 2010-03-16 22:44:56,628 - INFO - Assembling app:
> > /home/vicky/developer/build-openejb/webapps/ejb-sample
> > 2010-03-16 22:44:56,638 - INFO - PersistenceUnit(name=myDataBase,
> > provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> > 2010-03-16 22:44:57,130 - INFO - Jndi(name=EchoBeanLocal) -->
> > Ejb(deployment-id=EchoBean)
> > 2010-03-16 22:44:57,130 - INFO - Created Ejb(deployment-id=EchoBean,
> > ejb-name=EchoBean, container=My Stateless Container)
> > 2010-03-16 22:44:57,130 - INFO - Deployed
> > Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
> > 2010-03-16 22:44:57,440 - INFO - Undeploying app:
> > /home/vicky/developer/build-openejb/webapps/ejb-sample
> > 2010-03-16 22:44:57,458 - ERROR - Unable to clear Sun JarFileFactory
> cache
> > java.lang.ClassCastException: java.lang.String cannot be cast to
> > java.net.URL
> > at
> >
> org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
> > at
> >
> org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
> > at
> >
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
> > at
> >
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
> > at
> >
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
> > at
> >
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
> > at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > at
> > org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
> >
> *********************************************************************************************************************************************************
>
> >
> >
> >
> > Mark already brought this to our notice before
> >
> > http://issues.apache.org/jira/browse/GERONIMO-5036
> >
> >
> > regards,
> > Vicky
> >
> >
> >
> > Gurkan Erdogdu wrote:
> > > As I said before, do not use trunk, it is under heavy development :).
> > >
> > > Download our latest M4 version from our web site and follow
> > > instructions on README file.
> > >
> > > For quick look, readme file is in
> > >
> http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> > > explains how to deploy ejb-sample using mvn tomcat:deploy.
> > >
> > > After downloading M4, go into samples directory and run mvn
> > > tomcat:deploy on ejb-sample. But, please ensure that you configure
> > > your tomcat correctly.
> > >
> > > Thanks;
> > >
> > > --Gurkan
> > >
> > > 2010/3/16 Paul J. Reder <rederpj@remulak.net
> <ma...@remulak.net> <mailto:rederpj@remulak.net
> <ma...@remulak.net>> <mailto:rederpj@remulak.net
> <ma...@remulak.net> <mailto:rederpj@remulak.net
> <ma...@remulak.net>>>>
> > >
> > > I'm also trying to deploy/run the ejb-sample with tomcat6 +
> > > openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64 and getting failures.
> > > I'm still looking into it, but figured I'd
> > > add my data to Vicky's.
> > >
> > > I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> > > copied the latest:
> > > geronimo-atinject_1.0_spec-1.0-beta.jar
> > > geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> > > geronimo-jcdi_1.0_spec-1.0-beta.jar
> > > openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> > > openwebbeans-spi-1.0.0-SNAPSHOT.jar
> > >
> > > into tomcat/lib
> > >
> > > Deploy works fine, but trying to start the app results in the
> > > following (It appears I'm not making it as far as Vicky):
> > > (according to debug msgs, FindByQualifier is passed an empty set
> > > for remainingSet before it gets to InjectionResolver.java:174)
> > >
> > >
> ==============================================================================================
> > >
> > > Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer
> > > deploy
> > > SEVERE:
> > > Throwable occurred:
> > > javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> > > [org.apache.webbeans.sample.ejb.Echo] is not found with the
> > > qualifiers [@javax.enterprise.inject.Default()] for injection into
> > > Field Injection Point, field name : echo, Bean Owner :
> > > [Name:echo,WebBeans Type:MANAGED,API
> > >
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> > > at
> > >
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> > > at
> > >
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> > > at
> > >
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> > > at
> > >
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> > > at
> > >
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> > > at
> > >
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> > > at
> > >
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> > > at
> > >
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> > > at
> > >
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> > > at
> > >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> > > at
> > >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> > > at
> > >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > > at
> > >
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > > at
> > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> > > at
> > > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> > > at
> > > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> > > at
> > > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> > > at
> > > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> > > at
> > >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> > > at
> > >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > > at
> > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> > > at
> > > org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> > > at
> > > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > > at
> > > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > > at
> > >
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> > > at
> > > org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> > > at
> > > org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > at
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> > > at
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> > > at java.lang.reflect.Method.invoke(Method.java:600)
> > > at
> > > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> > > at
> > > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> > >
> > >
> > >
> ==============================================================================================
> > >
> > >
> > >
> > >
> > > On 03/16/2010 08:15 AM, Vicky Kak wrote:
> > >
> > > I downloaded the binaries for M4 and here is the result
> > >
> > >
> *********************************************************************************************
> > >
> > > 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig
> > > deployWAR
> > > INFO: Deploying web application archive ejb-sample.war
> > > context path = /ejb-sample
> > > 16 Mar, 2010 5:39:20 PM
> > > org.apache.catalina.loader.WebappClassLoader
> > > findResourceInternal
> > > INFO: Illegal access: this web application instance has been
> > > stopped
> > > already. Could not load
> > > org/apache/openjpa/util/ImplHelper.class. The
> > > eventual following stack trace is caused by an error thrown for
> > > debugging purposes as well as to attempt to terminate the
> > > thread which
> > > caused the illegal access, and has no functional impact.
> > > 16 Mar, 2010 5:39:20 PM
> > > org.apache.catalina.loader.WebappClassLoader
> > > findResourceInternal
> > > INFO: Illegal access: this web application instance has been
> > > stopped
> > > already. Could not load
> > > org/apache/openjpa/util/ImplHelper$1.class. The
> > > eventual following stack trace is caused by an error thrown for
> > > debugging purposes as well as to attempt to terminate the
> > > thread which
> > > caused the illegal access, and has no functional impact.
> > >
> *********************************************************************************************
> > >
> > >
> > > I did place the openjpa jar in the tomat/lib, it resulted in the
> > > following trace
> > >
> *********************************************************************************************
> > >
> > > context path = /ejb-sample
> > > 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config
> > > properties
> > > [META-INF/openwebbeans/openwebbeans.properties] found at location
> > >
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> > > Overriding default settings.
> > > 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin
> > > : EjbPlugin
> > > 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> > > OpenWebBeansJsfPlugin
> > > 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> > > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> > > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
> > > value true
> > > 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
> > > using
> > > default value false
> > > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> > > default value
> > > false
> > > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> > > default value true
> > > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default
> > > value true
> > > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default
> > > value true
> > > 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> > > 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using
> > > default value 2
> > > 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> > > 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
> > > value false
> > > 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> > > Autoscrolling, DetectJavascript, AddResourceClass and
> > > CheckExtensionsFilter are disabled now.
> > > 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> > > MyFaces-JSF-Implementation
> > > 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> > > META-INF/standard-faces-config.xml
> > > 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> > >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
> > >
> > > 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> > >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
> > >
> > > 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> > > /WEB-INF/faces-config.xml
> > > 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> > > MyFaces-package :
> > > myfaces-api in version : 1.2.8 from path :
> > >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
> > >
> > > 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> > > MyFaces-package :
> > > myfaces-impl in version : 1.2.8 from path :
> > >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
> > >
> > > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > > tomahawk not
> > > found.
> > > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > > tomahawk12
> > > not found.
> > > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > > tomahawk-sandbox not found.
> > > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > > tomahawk-sandbox12 not found.
> > > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > > tomahawk-sandbox15 not found.
> > > 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> > > myfaces-orchestra-core not found.
> > > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > > myfaces-orchestra-core12 not found.
> > > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > > trinidad-api
> > > not found.
> > > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > > trinidad-impl not found.
> > > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > > tobago not
> > > found.
> > > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > > commons-el
> > > not found.
> > > 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package :
> > > jsp-api not
> > > found.
> > > 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> > > faces-config.xml null
> > > or empty, setting locale to default locale : en_IN
> > > 17:42:57,926 INFO FacesConfigurator:1367 - Serialization
> > > provider :
> > > class
> > > org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > > 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> > > '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> > > initialized.
> > > 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> > > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> > > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> > > ExternalContext using fallback LifecycleProvider.
> > > 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> > > LifecycleProvider
> > > org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> > > 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> > > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > > 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> > > Container was
> > > stopped for context path, /ejb-sample
> > > 16 Mar, 2010 5:42:57 PM
> > > org.apache.catalina.loader.WebappClassLoader
> > > clearReferencesThreads
> > > SEVERE: A web application appears to have started a thread named
> > > [pool-1-thread-1] but has failed to stop it. This is very
> > > likely to
> > > create a memory leak.
> > > 16 Mar, 2010 5:42:57 PM
> > > org.apache.catalina.loader.WebappClassLoader
> > > clearThreadLocalMap
> > > SEVERE: A web application created a ThreadLocal with key of type
> > > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877])
> > > and a
> > > value of type [org.apache.myfaces.config.RuntimeConfig] (value
> > > [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed
> > > to remove
> > > it when the web application was stopped. To prevent a memory
> > > leak, the
> > > ThreadLocal has been forcibly removed.
> > > 16 Mar, 2010 5:42:57 PM
> > > org.apache.catalina.loader.WebappClassLoader
> > > clearThreadLocalMap
> > > SEVERE: A web application created a ThreadLocal with key of
> > > type [null]
> > > (value [javax.faces.context.FacesContext$1@17fb9d5]) and a
> > > value of type
> > > [null] (value [null]) but failed to remove it when the web
> > > application
> > > was stopped. To prevent a memory leak, the ThreadLocal has
> > > been forcibly
> > > removed.
> > > 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> > > deployDirectory
> > >
> *********************************************************************************************
> > >
> > >
> > > I did got the similar behavior with the code from the trunk.
> > >
> > > Vicky
> > >
> > >
> > > --
> > > Paul J. Reder
> > > -----------------------------------------------------------
> > > "The strength of the Constitution lies entirely in the
> > > determination of each
> > > citizen to defend it. Only if every single citizen feels duty
> > > bound to do
> > > his share in this defense are the constitutional rights secure."
> > > -- Albert Einstein
> > >
> > >
> > >
> > >
> > > --
> > > Gurkan Erdogdu
> > > http://gurkanerdogdu.blogspot.com
> >
> >
> >
> > ------------------------------------------------------------------------
> > Yahoo! Türkiye aç?ld?!
> > Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> > www.yahoo.com.tr <http://www.yahoo.com.tr> <http://tr.yahoo.com/>
>
>
> ------------------------------------------------------------------------
> Yahoo! Türkiye açıldı!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr <http://tr.yahoo.com/>
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <gu...@yahoo.com>.
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
________________________________
From: Vicky Kak <vi...@gmail.com>
To: user@openwebbeans.apache.org
Sent: Wed, March 17, 2010 5:49:27 AM
Subject: Re: Installation details in README_M3.txt is confusing.
I did try with the older version of java but could not get passed this issue, I will take a fresh look at it now.
You seem to have tested the stuff with M4, which version of jdk have you been using?
-Vicky
Gurkan Erdogdu wrote:
> Yeah, this is mostly related with java version.
>
>
> ------------------------------------------------------------------------
> *From:* Vicky Kak <vi...@gmail.com>
> *To:* user@openwebbeans.apache.org
> *Sent:* Tue, March 16, 2010 8:20:28 PM
> *Subject:* Re: Installation details in README_M3.txt is confusing.
>
> Gurkan,
>
> The problem is cropping from openejb, check the logs
>
> *********************************************************************************************************************************************************
>
>
> 2010-03-16 22:44:54,629 - INFO - Found ejb module EjbModule in war
> /ejb-sample
> 2010-03-16 22:44:54,874 - INFO - Configuring enterprise application:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:56,621 - INFO - Configuring
> PersistenceUnit(name=myDataBase,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> <jta-data-source> to Resource ID 'My DataSource' from 'null'
> 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> <non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
> 2010-03-16 22:44:56,628 - INFO - Enterprise application
> "/home/vicky/developer/build-openejb/webapps/ejb-sample" loaded.
> 2010-03-16 22:44:56,628 - INFO - Assembling app:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:56,638 - INFO - PersistenceUnit(name=myDataBase,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2010-03-16 22:44:57,130 - INFO - Jndi(name=EchoBeanLocal) -->
> Ejb(deployment-id=EchoBean)
> 2010-03-16 22:44:57,130 - INFO - Created Ejb(deployment-id=EchoBean,
> ejb-name=EchoBean, container=My Stateless Container)
> 2010-03-16 22:44:57,130 - INFO - Deployed
> Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
> 2010-03-16 22:44:57,440 - INFO - Undeploying app:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:57,458 - ERROR - Unable to clear Sun JarFileFactory cache
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.net.URL
> at
> org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
> at
> org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
> at
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
> at
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
> at
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
> at
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
> *********************************************************************************************************************************************************
>
>
>
> Mark already brought this to our notice before
>
> http://issues.apache.org/jira/browse/GERONIMO-5036
>
>
> regards,
> Vicky
>
>
>
> Gurkan Erdogdu wrote:
> > As I said before, do not use trunk, it is under heavy development :).
> >
> > Download our latest M4 version from our web site and follow
> > instructions on README file.
> >
> > For quick look, readme file is in
> > http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> > explains how to deploy ejb-sample using mvn tomcat:deploy.
> >
> > After downloading M4, go into samples directory and run mvn
> > tomcat:deploy on ejb-sample. But, please ensure that you configure
> > your tomcat correctly.
> >
> > Thanks;
> >
> > --Gurkan
> >
> > 2010/3/16 Paul J. Reder <rederpj@remulak.net <ma...@remulak.net> <mailto:rederpj@remulak.net <ma...@remulak.net>>>
> >
> > I'm also trying to deploy/run the ejb-sample with tomcat6 +
> > openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64 and getting failures.
> > I'm still looking into it, but figured I'd
> > add my data to Vicky's.
> >
> > I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> > copied the latest:
> > geronimo-atinject_1.0_spec-1.0-beta.jar
> > geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> > geronimo-jcdi_1.0_spec-1.0-beta.jar
> > openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> > openwebbeans-spi-1.0.0-SNAPSHOT.jar
> >
> > into tomcat/lib
> >
> > Deploy works fine, but trying to start the app results in the
> > following (It appears I'm not making it as far as Vicky):
> > (according to debug msgs, FindByQualifier is passed an empty set
> > for remainingSet before it gets to InjectionResolver.java:174)
> >
> > ==============================================================================================
> >
> > Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer
> > deploy
> > SEVERE:
> > Throwable occurred:
> > javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> > [org.apache.webbeans.sample.ejb.Echo] is not found with the
> > qualifiers [@javax.enterprise.inject.Default()] for injection into
> > Field Injection Point, field name : echo, Bean Owner :
> > [Name:echo,WebBeans Type:MANAGED,API
> > Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> > at
> > org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> > at
> > org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> > at
> > org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> > at
> > org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> > at
> > org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> > at
> > org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> > at
> > org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> > at
> > org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> > at
> > org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> > at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> > at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> > at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> > at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> > at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> > at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> > at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:516)
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> > at
> > org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> > at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> > at java.lang.reflect.Method.invoke(Method.java:600)
> > at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> > at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> >
> >
> > ==============================================================================================
> >
> >
> >
> >
> > On 03/16/2010 08:15 AM, Vicky Kak wrote:
> >
> > I downloaded the binaries for M4 and here is the result
> >
> > *********************************************************************************************
> >
> > 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig
> > deployWAR
> > INFO: Deploying web application archive ejb-sample.war
> > context path = /ejb-sample
> > 16 Mar, 2010 5:39:20 PM
> > org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance has been
> > stopped
> > already. Could not load
> > org/apache/openjpa/util/ImplHelper.class. The
> > eventual following stack trace is caused by an error thrown for
> > debugging purposes as well as to attempt to terminate the
> > thread which
> > caused the illegal access, and has no functional impact.
> > 16 Mar, 2010 5:39:20 PM
> > org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance has been
> > stopped
> > already. Could not load
> > org/apache/openjpa/util/ImplHelper$1.class. The
> > eventual following stack trace is caused by an error thrown for
> > debugging purposes as well as to attempt to terminate the
> > thread which
> > caused the illegal access, and has no functional impact.
> > *********************************************************************************************
> >
> >
> > I did place the openjpa jar in the tomat/lib, it resulted in the
> > following trace
> > *********************************************************************************************
> >
> > context path = /ejb-sample
> > 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config
> > properties
> > [META-INF/openwebbeans/openwebbeans.properties] found at location
> > :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> > Overriding default settings.
> > 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin
> > : EjbPlugin
> > 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> > OpenWebBeansJsfPlugin
> > 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
> > value true
> > 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
> > using
> > default value false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> > default value
> > false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> > default value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default
> > value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default
> > value true
> > 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> > 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using
> > default value 2
> > 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
> > value false
> > 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> > Autoscrolling, DetectJavascript, AddResourceClass and
> > CheckExtensionsFilter are disabled now.
> > 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> > MyFaces-JSF-Implementation
> > 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> > META-INF/standard-faces-config.xml
> > 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> > jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> > jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> > /WEB-INF/faces-config.xml
> > 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> > MyFaces-package :
> > myfaces-api in version : 1.2.8 from path :
> > file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> > MyFaces-package :
> > myfaces-impl in version : 1.2.8 from path :
> > file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk not
> > found.
> > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk12
> > not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox12 not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox15 not found.
> > 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> > myfaces-orchestra-core not found.
> > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > myfaces-orchestra-core12 not found.
> > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > trinidad-api
> > not found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > trinidad-impl not found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > tobago not
> > found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > commons-el
> > not found.
> > 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package :
> > jsp-api not
> > found.
> > 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> > faces-config.xml null
> > or empty, setting locale to default locale : en_IN
> > 17:42:57,926 INFO FacesConfigurator:1367 - Serialization
> > provider :
> > class
> > org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> > '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> > initialized.
> > 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> > ExternalContext using fallback LifecycleProvider.
> > 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> > LifecycleProvider
> > org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> > 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> > Container was
> > stopped for context path, /ejb-sample
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearReferencesThreads
> > SEVERE: A web application appears to have started a thread named
> > [pool-1-thread-1] but has failed to stop it. This is very
> > likely to
> > create a memory leak.
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with key of type
> > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877])
> > and a
> > value of type [org.apache.myfaces.config.RuntimeConfig] (value
> > [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed
> > to remove
> > it when the web application was stopped. To prevent a memory
> > leak, the
> > ThreadLocal has been forcibly removed.
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with key of
> > type [null]
> > (value [javax.faces.context.FacesContext$1@17fb9d5]) and a
> > value of type
> > [null] (value [null]) but failed to remove it when the web
> > application
> > was stopped. To prevent a memory leak, the ThreadLocal has
> > been forcibly
> > removed.
> > 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> > deployDirectory
> > *********************************************************************************************
> >
> >
> > I did got the similar behavior with the code from the trunk.
> >
> > Vicky
> >
> >
> > --
> > Paul J. Reder
> > -----------------------------------------------------------
> > "The strength of the Constitution lies entirely in the
> > determination of each
> > citizen to defend it. Only if every single citizen feels duty
> > bound to do
> > his share in this defense are the constitutional rights secure."
> > -- Albert Einstein
> >
> >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Türkiye aç?ld?!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr <http://tr.yahoo.com/>
___________________________________________________________________
Yahoo! Türkiye açıldı! http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
I did try with the older version of java but could not get passed this
issue, I will take a fresh look at it now.
You seem to have tested the stuff with M4, which version of jdk have you
been using?
-Vicky
Gurkan Erdogdu wrote:
> Yeah, this is mostly related with java version.
>
>
> ------------------------------------------------------------------------
> *From:* Vicky Kak <vi...@gmail.com>
> *To:* user@openwebbeans.apache.org
> *Sent:* Tue, March 16, 2010 8:20:28 PM
> *Subject:* Re: Installation details in README_M3.txt is confusing.
>
> Gurkan,
>
> The problem is cropping from openejb, check the logs
>
> *********************************************************************************************************************************************************
>
>
>
> 2010-03-16 22:44:54,629 - INFO - Found ejb module EjbModule in war
> /ejb-sample
> 2010-03-16 22:44:54,874 - INFO - Configuring enterprise application:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:56,621 - INFO - Configuring
> PersistenceUnit(name=myDataBase,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> <jta-data-source> to Resource ID 'My DataSource' from 'null'
> 2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
> <non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
> 2010-03-16 22:44:56,628 - INFO - Enterprise application
> "/home/vicky/developer/build-openejb/webapps/ejb-sample" loaded.
> 2010-03-16 22:44:56,628 - INFO - Assembling app:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:56,638 - INFO - PersistenceUnit(name=myDataBase,
> provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
> 2010-03-16 22:44:57,130 - INFO - Jndi(name=EchoBeanLocal) -->
> Ejb(deployment-id=EchoBean)
> 2010-03-16 22:44:57,130 - INFO - Created Ejb(deployment-id=EchoBean,
> ejb-name=EchoBean, container=My Stateless Container)
> 2010-03-16 22:44:57,130 - INFO - Deployed
> Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
> 2010-03-16 22:44:57,440 - INFO - Undeploying app:
> /home/vicky/developer/build-openejb/webapps/ejb-sample
> 2010-03-16 22:44:57,458 - ERROR - Unable to clear Sun JarFileFactory cache
> java.lang.ClassCastException: java.lang.String cannot be cast to
> java.net.URL
> at
> org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
> at
> org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
> at
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
> at
> org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
> at
> org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
> at
> org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
> *********************************************************************************************************************************************************
>
>
>
>
> Mark already brought this to our notice before
>
> http://issues.apache.org/jira/browse/GERONIMO-5036
>
>
> regards,
> Vicky
>
>
>
> Gurkan Erdogdu wrote:
> > As I said before, do not use trunk, it is under heavy development :).
> >
> > Download our latest M4 version from our web site and follow
> > instructions on README file.
> >
> > For quick look, readme file is in
> > http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> > explains how to deploy ejb-sample using mvn tomcat:deploy.
> >
> > After downloading M4, go into samples directory and run mvn
> > tomcat:deploy on ejb-sample. But, please ensure that you configure
> > your tomcat correctly.
> >
> > Thanks;
> >
> > --Gurkan
> >
> > 2010/3/16 Paul J. Reder <rederpj@remulak.net
> <ma...@remulak.net> <mailto:rederpj@remulak.net
> <ma...@remulak.net>>>
> >
> > I'm also trying to deploy/run the ejb-sample with tomcat6 +
> > openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64 and getting failures.
> > I'm still looking into it, but figured I'd
> > add my data to Vicky's.
> >
> > I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> > copied the latest:
> > geronimo-atinject_1.0_spec-1.0-beta.jar
> > geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> > geronimo-jcdi_1.0_spec-1.0-beta.jar
> > openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> > openwebbeans-spi-1.0.0-SNAPSHOT.jar
> >
> > into tomcat/lib
> >
> > Deploy works fine, but trying to start the app results in the
> > following (It appears I'm not making it as far as Vicky):
> > (according to debug msgs, FindByQualifier is passed an empty set
> > for remainingSet before it gets to InjectionResolver.java:174)
> >
> >
> ==============================================================================================
> >
> > Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer
> > deploy
> > SEVERE:
> > Throwable occurred:
> > javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> > [org.apache.webbeans.sample.ejb.Echo] is not found with the
> > qualifiers [@javax.enterprise.inject.Default()] for injection into
> > Field Injection Point, field name : echo, Bean Owner :
> > [Name:echo,WebBeans Type:MANAGED,API
> >
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> > at
> >
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> > at
> >
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> > at
> >
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> > at
> >
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> > at
> >
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> > at
> > org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> > at
> >
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> > at
> >
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> > at
> >
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> > at
> >
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> > at
> >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> > at
> >
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> > at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> > at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> > at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> > at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> > at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> > at
> > org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> > at
> >
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> > at
> >
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> > at
> > org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> > at
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> > at
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> > at
> > org.apache.catalina.core.StandardService.start(StandardService.java:516)
> > at
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> > at
> > org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> > at java.lang.reflect.Method.invoke(Method.java:600)
> > at
> > org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> > at
> > org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> >
> >
> >
> ==============================================================================================
> >
> >
> >
> >
> > On 03/16/2010 08:15 AM, Vicky Kak wrote:
> >
> > I downloaded the binaries for M4 and here is the result
> >
> >
> *********************************************************************************************
> >
> > 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig
> > deployWAR
> > INFO: Deploying web application archive ejb-sample.war
> > context path = /ejb-sample
> > 16 Mar, 2010 5:39:20 PM
> > org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance has been
> > stopped
> > already. Could not load
> > org/apache/openjpa/util/ImplHelper.class. The
> > eventual following stack trace is caused by an error thrown for
> > debugging purposes as well as to attempt to terminate the
> > thread which
> > caused the illegal access, and has no functional impact.
> > 16 Mar, 2010 5:39:20 PM
> > org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance has been
> > stopped
> > already. Could not load
> > org/apache/openjpa/util/ImplHelper$1.class. The
> > eventual following stack trace is caused by an error thrown for
> > debugging purposes as well as to attempt to terminate the
> > thread which
> > caused the illegal access, and has no functional impact.
> >
> *********************************************************************************************
> >
> >
> > I did place the openjpa jar in the tomat/lib, it resulted in the
> > following trace
> >
> *********************************************************************************************
> >
> > context path = /ejb-sample
> > 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config
> > properties
> > [META-INF/openwebbeans/openwebbeans.properties] found at location
> >
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> > Overriding default settings.
> > 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin
> > : EjbPlugin
> > 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> > OpenWebBeansJsfPlugin
> > 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
> > value true
> > 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
> > using
> > default value false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> > default value
> > false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> > default value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default
> > value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default
> > value true
> > 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> > 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using
> > default value 2
> > 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> > 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
> > value false
> > 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> > Autoscrolling, DetectJavascript, AddResourceClass and
> > CheckExtensionsFilter are disabled now.
> > 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> > MyFaces-JSF-Implementation
> > 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> > META-INF/standard-faces-config.xml
> > 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> > /WEB-INF/faces-config.xml
> > 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> > MyFaces-package :
> > myfaces-api in version : 1.2.8 from path :
> >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> > MyFaces-package :
> > myfaces-impl in version : 1.2.8 from path :
> >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk not
> > found.
> > 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk12
> > not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox12 not found.
> > 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> > tomahawk-sandbox15 not found.
> > 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> > myfaces-orchestra-core not found.
> > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > myfaces-orchestra-core12 not found.
> > 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> > trinidad-api
> > not found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > trinidad-impl not found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > tobago not
> > found.
> > 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> > commons-el
> > not found.
> > 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package :
> > jsp-api not
> > found.
> > 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> > faces-config.xml null
> > or empty, setting locale to default locale : en_IN
> > 17:42:57,926 INFO FacesConfigurator:1367 - Serialization
> > provider :
> > class
> > org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> > '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> > initialized.
> > 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> > ExternalContext using fallback LifecycleProvider.
> > 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> > LifecycleProvider
> > org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> > 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> > Container was
> > stopped for context path, /ejb-sample
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearReferencesThreads
> > SEVERE: A web application appears to have started a thread named
> > [pool-1-thread-1] but has failed to stop it. This is very
> > likely to
> > create a memory leak.
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with key of type
> > [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877])
> > and a
> > value of type [org.apache.myfaces.config.RuntimeConfig] (value
> > [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed
> > to remove
> > it when the web application was stopped. To prevent a memory
> > leak, the
> > ThreadLocal has been forcibly removed.
> > 16 Mar, 2010 5:42:57 PM
> > org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with key of
> > type [null]
> > (value [javax.faces.context.FacesContext$1@17fb9d5]) and a
> > value of type
> > [null] (value [null]) but failed to remove it when the web
> > application
> > was stopped. To prevent a memory leak, the ThreadLocal has
> > been forcibly
> > removed.
> > 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> > deployDirectory
> >
> *********************************************************************************************
> >
> >
> > I did got the similar behavior with the code from the trunk.
> >
> > Vicky
> >
> >
> > --
> > Paul J. Reder
> > -----------------------------------------------------------
> > "The strength of the Constitution lies entirely in the
> > determination of each
> > citizen to defend it. Only if every single citizen feels duty
> > bound to do
> > his share in this defense are the constitutional rights secure."
> > -- Albert Einstein
> >
> >
> >
> >
> > --
> > Gurkan Erdogdu
> > http://gurkanerdogdu.blogspot.com
>
>
>
> ------------------------------------------------------------------------
> Yahoo! Türkiye aç?ld?!
> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de!
> www.yahoo.com.tr <http://tr.yahoo.com/>
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <gu...@yahoo.com>.
Yeah, this is mostly related with java version.
________________________________
From: Vicky Kak <vi...@gmail.com>
To: user@openwebbeans.apache.org
Sent: Tue, March 16, 2010 8:20:28 PM
Subject: Re: Installation details in README_M3.txt is confusing.
Gurkan,
The problem is cropping from openejb, check the logs
*********************************************************************************************************************************************************
2010-03-16 22:44:54,629 - INFO - Found ejb module EjbModule in war
/ejb-sample
2010-03-16 22:44:54,874 - INFO - Configuring enterprise application:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:56,621 - INFO - Configuring
PersistenceUnit(name=myDataBase,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
<jta-data-source> to Resource ID 'My DataSource' from 'null'
2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
<non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
2010-03-16 22:44:56,628 - INFO - Enterprise application
"/home/vicky/developer/build-openejb/webapps/ejb-sample" loaded.
2010-03-16 22:44:56,628 - INFO - Assembling app:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:56,638 - INFO - PersistenceUnit(name=myDataBase,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
2010-03-16 22:44:57,130 - INFO - Jndi(name=EchoBeanLocal) -->
Ejb(deployment-id=EchoBean)
2010-03-16 22:44:57,130 - INFO - Created Ejb(deployment-id=EchoBean,
ejb-name=EchoBean, container=My Stateless Container)
2010-03-16 22:44:57,130 - INFO - Deployed
Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
2010-03-16 22:44:57,440 - INFO - Undeploying app:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:57,458 - ERROR - Unable to clear Sun JarFileFactory cache
java.lang.ClassCastException: java.lang.String cannot be cast to
java.net.URL
at
org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
at
org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
*********************************************************************************************************************************************************
Mark already brought this to our notice before
http://issues.apache.org/jira/browse/GERONIMO-5036
regards,
Vicky
Gurkan Erdogdu wrote:
> As I said before, do not use trunk, it is under heavy development :).
>
> Download our latest M4 version from our web site and follow
> instructions on README file.
>
> For quick look, readme file is in
> http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> explains how to deploy ejb-sample using mvn tomcat:deploy.
>
> After downloading M4, go into samples directory and run mvn
> tomcat:deploy on ejb-sample. But, please ensure that you configure
> your tomcat correctly.
>
> Thanks;
>
> --Gurkan
>
> 2010/3/16 Paul J. Reder <rederpj@remulak.net <ma...@remulak.net>>
>
> I'm also trying to deploy/run the ejb-sample with tomcat6 +
> openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64 and getting failures.
> I'm still looking into it, but figured I'd
> add my data to Vicky's.
>
> I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> copied the latest:
> geronimo-atinject_1.0_spec-1.0-beta.jar
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> geronimo-jcdi_1.0_spec-1.0-beta.jar
> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>
> into tomcat/lib
>
> Deploy works fine, but trying to start the app results in the
> following (It appears I'm not making it as far as Vicky):
> (according to debug msgs, FindByQualifier is passed an empty set
> for remainingSet before it gets to InjectionResolver.java:174)
>
> ==============================================================================================
>
> Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer
> deploy
> SEVERE:
> Throwable occurred:
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [org.apache.webbeans.sample.ejb.Echo] is not found with the
> qualifiers [@javax.enterprise.inject.Default()] for injection into
> Field Injection Point, field name : echo, Bean Owner :
> [Name:echo,WebBeans Type:MANAGED,API
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> at
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> at
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> at
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> at
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> ==============================================================================================
>
>
>
>
> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>
> I downloaded the binaries for M4 and here is the result
>
> *********************************************************************************************
>
> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig
> deployWAR
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped
> already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no functional impact.
> 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped
> already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no functional impact.
> *********************************************************************************************
>
>
> I did place the openjpa jar in the tomat/lib, it resulted in the
> following trace
> *********************************************************************************************
>
> context path = /ejb-sample
> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config
> properties
> [META-INF/openwebbeans/openwebbeans.properties] found at location
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> Overriding default settings.
> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin
> : EjbPlugin
> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> OpenWebBeansJsfPlugin
> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
> value true
> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
> using
> default value false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> default value
> false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> default value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default
> value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default
> value true
> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using
> default value 2
> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
> value false
> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> Autoscrolling, DetectJavascript, AddResourceClass and
> CheckExtensionsFilter are disabled now.
> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> MyFaces-JSF-Implementation
> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> META-INF/standard-faces-config.xml
> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>
> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>
> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> /WEB-INF/faces-config.xml
> 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> myfaces-api in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> myfaces-impl in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk not
> found.
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk12
> not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox12 not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox15 not found.
> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core12 not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> trinidad-api
> not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> trinidad-impl not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> tobago not
> found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> commons-el
> not found.
> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package :
> jsp-api not
> found.
> 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> faces-config.xml null
> or empty, setting locale to default locale : en_IN
> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization
> provider :
> class
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> initialized.
> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> ExternalContext using fallback LifecycleProvider.
> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> LifecycleProvider
> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> Container was
> stopped for context path, /ejb-sample
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [pool-1-thread-1] but has failed to stop it. This is very
> likely to
> create a memory leak.
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877])
> and a
> value of type [org.apache.myfaces.config.RuntimeConfig] (value
> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed
> to remove
> it when the web application was stopped. To prevent a memory
> leak, the
> ThreadLocal has been forcibly removed.
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of
> type [null]
> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a
> value of type
> [null] (value [null]) but failed to remove it when the web
> application
> was stopped. To prevent a memory leak, the ThreadLocal has
> been forcibly
> removed.
> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> *********************************************************************************************
>
>
> I did got the similar behavior with the code from the trunk.
>
> Vicky
>
>
> --
> Paul J. Reder
> -----------------------------------------------------------
> "The strength of the Constitution lies entirely in the
> determination of each
> citizen to defend it. Only if every single citizen feels duty
> bound to do
> his share in this defense are the constitutional rights secure."
> -- Albert Einstein
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
___________________________________________________________________
Yahoo! Türkiye açıldı! http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
Gurkan,
The problem is cropping from openejb, check the logs
*********************************************************************************************************************************************************
2010-03-16 22:44:54,629 - INFO - Found ejb module EjbModule in war
/ejb-sample
2010-03-16 22:44:54,874 - INFO - Configuring enterprise application:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:56,621 - INFO - Configuring
PersistenceUnit(name=myDataBase,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
<jta-data-source> to Resource ID 'My DataSource' from 'null'
2010-03-16 22:44:56,621 - INFO - Adjusting PersistenceUnit myDataBase
<non-jta-data-source> to Resource ID 'My Unmanaged DataSource' from 'null'
2010-03-16 22:44:56,628 - INFO - Enterprise application
"/home/vicky/developer/build-openejb/webapps/ejb-sample" loaded.
2010-03-16 22:44:56,628 - INFO - Assembling app:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:56,638 - INFO - PersistenceUnit(name=myDataBase,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
2010-03-16 22:44:57,130 - INFO - Jndi(name=EchoBeanLocal) -->
Ejb(deployment-id=EchoBean)
2010-03-16 22:44:57,130 - INFO - Created Ejb(deployment-id=EchoBean,
ejb-name=EchoBean, container=My Stateless Container)
2010-03-16 22:44:57,130 - INFO - Deployed
Application(path=/home/vicky/developer/build-openejb/webapps/ejb-sample)
2010-03-16 22:44:57,440 - INFO - Undeploying app:
/home/vicky/developer/build-openejb/webapps/ejb-sample
2010-03-16 22:44:57,458 - ERROR - Unable to clear Sun JarFileFactory cache
java.lang.ClassCastException: java.lang.String cannot be cast to
java.net.URL
at
org.apache.openejb.ClassLoaderUtil.clearSunJarFileFactoryCache(ClassLoaderUtil.java:173)
at
org.apache.openejb.ClassLoaderUtil.destroyClassLoader(ClassLoaderUtil.java:130)
at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:918)
at
org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:785)
at
org.apache.openejb.tomcat.catalina.TomcatWebAppBuilder.afterStop(TomcatWebAppBuilder.java:403)
at
org.apache.openejb.tomcat.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:66)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4678)
*********************************************************************************************************************************************************
Mark already brought this to our notice before
http://issues.apache.org/jira/browse/GERONIMO-5036
regards,
Vicky
Gurkan Erdogdu wrote:
> As I said before, do not use trunk, it is under heavy development :).
>
> Download our latest M4 version from our web site and follow
> instructions on README file.
>
> For quick look, readme file is in
> http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txt
> explains how to deploy ejb-sample using mvn tomcat:deploy.
>
> After downloading M4, go into samples directory and run mvn
> tomcat:deploy on ejb-sample. But, please ensure that you configure
> your tomcat correctly.
>
> Thanks;
>
> --Gurkan
>
> 2010/3/16 Paul J. Reder <rederpj@remulak.net <ma...@remulak.net>>
>
> I'm also trying to deploy/run the ejb-sample with tomcat6 +
> openEJB3 + 1.6.0-openjdk on Fedora 11 x86_64 and getting failures.
> I'm still looking into it, but figured I'd
> add my data to Vicky's.
>
> I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> copied the latest:
> geronimo-atinject_1.0_spec-1.0-beta.jar
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> geronimo-jcdi_1.0_spec-1.0-beta.jar
> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>
> into tomcat/lib
>
> Deploy works fine, but trying to start the app results in the
> following (It appears I'm not making it as far as Vicky):
> (according to debug msgs, FindByQualifier is passed an empty set
> for remainingSet before it gets to InjectionResolver.java:174)
>
> ==============================================================================================
>
> Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer
> deploy
> SEVERE:
> Throwable occurred:
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [org.apache.webbeans.sample.ejb.Echo] is not found with the
> qualifiers [@javax.enterprise.inject.Default()] for injection into
> Field Injection Point, field name : echo, Bean Owner :
> [Name:echo,WebBeans Type:MANAGED,API
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> at
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> at
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> at
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> at
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at
> org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> ==============================================================================================
>
>
>
>
> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>
> I downloaded the binaries for M4 and here is the result
>
> *********************************************************************************************
>
> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig
> deployWAR
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped
> already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no functional impact.
> 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped
> already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the
> thread which
> caused the illegal access, and has no functional impact.
> *********************************************************************************************
>
>
> I did place the openjpa jar in the tomat/lib, it resulted in the
> following trace
> *********************************************************************************************
>
> context path = /ejb-sample
> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config
> properties
> [META-INF/openwebbeans/openwebbeans.properties] found at location
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> Overriding default settings.
> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin
> : EjbPlugin
> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> OpenWebBeansJsfPlugin
> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default
> value true
> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
> using
> default value false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
> default value
> false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> default value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default
> value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default
> value true
> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using
> default value 2
> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
> value false
> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> Autoscrolling, DetectJavascript, AddResourceClass and
> CheckExtensionsFilter are disabled now.
> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> MyFaces-JSF-Implementation
> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> META-INF/standard-faces-config.xml
> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>
> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>
> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> /WEB-INF/faces-config.xml
> 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> myfaces-api in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> myfaces-impl in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk not
> found.
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk12
> not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox12 not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox15 not found.
> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core12 not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> trinidad-api
> not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> trinidad-impl not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> tobago not
> found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> commons-el
> not found.
> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package :
> jsp-api not
> found.
> 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> faces-config.xml null
> or empty, setting locale to default locale : en_IN
> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization
> provider :
> class
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> initialized.
> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> ExternalContext using fallback LifecycleProvider.
> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> LifecycleProvider
> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> Container was
> stopped for context path, /ejb-sample
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [pool-1-thread-1] but has failed to stop it. This is very
> likely to
> create a memory leak.
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877])
> and a
> value of type [org.apache.myfaces.config.RuntimeConfig] (value
> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed
> to remove
> it when the web application was stopped. To prevent a memory
> leak, the
> ThreadLocal has been forcibly removed.
> 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of
> type [null]
> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a
> value of type
> [null] (value [null]) but failed to remove it when the web
> application
> was stopped. To prevent a memory leak, the ThreadLocal has
> been forcibly
> removed.
> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> *********************************************************************************************
>
>
> I did got the similar behavior with the code from the trunk.
>
> Vicky
>
>
> --
> Paul J. Reder
> -----------------------------------------------------------
> "The strength of the Constitution lies entirely in the
> determination of each
> citizen to defend it. Only if every single citizen feels duty
> bound to do
> his share in this defense are the constitutional rights secure."
> -- Albert Einstein
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <cg...@gmail.com>.
As I said before, do not use trunk, it is under heavy development :).
Download our latest M4 version from our web site and follow instructions on
README file.
For quick look, readme file is in
http://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M4.txtexplains
how to deploy ejb-sample using mvn tomcat:deploy.
After downloading M4, go into samples directory and run mvn tomcat:deploy on
ejb-sample. But, please ensure that you configure your tomcat correctly.
Thanks;
--Gurkan
2010/3/16 Paul J. Reder <re...@remulak.net>
> I'm also trying to deploy/run the ejb-sample with tomcat6 + openEJB3 +
> 1.6.0-openjdk on Fedora 11 x86_64 and getting failures. I'm still looking
> into it, but figured I'd
> add my data to Vicky's.
>
> I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've copied the
> latest:
> geronimo-atinject_1.0_spec-1.0-beta.jar
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> geronimo-jcdi_1.0_spec-1.0-beta.jar
> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>
> into tomcat/lib
>
> Deploy works fine, but trying to start the app results in the following (It
> appears I'm not making it as far as Vicky): (according to debug msgs,
> FindByQualifier is passed an empty set for remainingSet before it gets to
> InjectionResolver.java:174)
>
>
> ==============================================================================================
>
> Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer deploy
> SEVERE:
> Throwable occurred: javax.enterprise.inject.UnsatisfiedResolutionException:
> Api type [org.apache.webbeans.sample.ejb.Echo] is not found with the
> qualifiers [@javax.enterprise.inject.Default()] for injection into Field
> Injection Point, field name : echo, Bean Owner : [Name:echo,WebBeans
> Type:MANAGED,API
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> at
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> at
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> at
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> at
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:600)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
>
> ==============================================================================================
>
>
>
>
> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>
>> I downloaded the binaries for M4 and here is the result
>>
>>
>> *********************************************************************************************
>>
>> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive ejb-sample.war
>> context path = /ejb-sample
>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance has been stopped
>> already. Could not load org/apache/openjpa/util/ImplHelper.class. The
>> eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance has been stopped
>> already. Could not load org/apache/openjpa/util/ImplHelper$1.class. The
>> eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>>
>> *********************************************************************************************
>>
>>
>> I did place the openjpa jar in the tomat/lib, it resulted in the
>> following trace
>>
>> *********************************************************************************************
>>
>> context path = /ejb-sample
>> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config properties
>> [META-INF/openwebbeans/openwebbeans.properties] found at location
>>
>> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
>> Overriding default settings.
>> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin : EjbPlugin
>> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
>> OpenWebBeansJsfPlugin
>> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
>> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
>> default value false
>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
>> false
>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
>> default value true
>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
>> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
>> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
>> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
>> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
>> Autoscrolling, DetectJavascript, AddResourceClass and
>> CheckExtensionsFilter are disabled now.
>> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
>> MyFaces-JSF-Implementation
>> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
>> META-INF/standard-faces-config.xml
>> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
>>
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>>
>> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
>>
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>>
>> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
>> /WEB-INF/faces-config.xml
>> 17:42:57,784 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>> myfaces-api in version : 1.2.8 from path :
>>
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>>
>> 17:42:57,785 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>> myfaces-impl in version : 1.2.8 from path :
>>
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>>
>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk not
>> found.
>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk12
>> not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox12 not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox15 not found.
>> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
>> myfaces-orchestra-core not found.
>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
>> myfaces-orchestra-core12 not found.
>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package : trinidad-api
>> not found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
>> trinidad-impl not found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : tobago not
>> found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : commons-el
>> not found.
>> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package : jsp-api not
>> found.
>> 17:42:57,809 WARN LocaleUtils:55 - Locale name in faces-config.xml null
>> or empty, setting locale to default locale : en_IN
>> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization provider :
>> class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
>> '/home/vicky/developer/build-openejb/webapps/ejb-sample/' initialized.
>> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
>> ExternalContext using fallback LifecycleProvider.
>> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
>> LifecycleProvider
>> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
>> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans Container was
>> stopped for context path, /ejb-sample
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [pool-1-thread-1] but has failed to stop it. This is very likely to
>> create a memory leak.
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type
>> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877]) and a
>> value of type [org.apache.myfaces.config.RuntimeConfig] (value
>> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed to remove
>> it when the web application was stopped. To prevent a memory leak, the
>> ThreadLocal has been forcibly removed.
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [null]
>> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a value of type
>> [null] (value [null]) but failed to remove it when the web application
>> was stopped. To prevent a memory leak, the ThreadLocal has been forcibly
>> removed.
>> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>>
>> *********************************************************************************************
>>
>>
>> I did got the similar behavior with the code from the trunk.
>>
>> Vicky
>>
>>
> --
> Paul J. Reder
> -----------------------------------------------------------
> "The strength of the Constitution lies entirely in the determination of
> each
> citizen to defend it. Only if every single citizen feels duty bound to do
> his share in this defense are the constitutional rights secure."
> -- Albert Einstein
>
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
Hi Paul,
I did not copy these files in $CATALINA_HOME/lib, these are present in
the web applications lib directory.
openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
openwebbeans-spi-1.0.0-SNAPSHOT.jar
The installation details needs to be explains the details properly and
explicitily, that is what I have been pointing in the subject line.
AFAIU the spi specific beans should be placed in the web application and
tomcat specific jars need not to be there for ejb-samples application.
Regards,
Vicky
Paul J. Reder wrote:
> I'm also trying to deploy/run the ejb-sample with tomcat6 + openEJB3 +
> 1.6.0-openjdk on Fedora 11 x86_64 and getting failures. I'm still
> looking into it, but figured I'd
> add my data to Vicky's.
>
> I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've
> copied the latest:
> geronimo-atinject_1.0_spec-1.0-beta.jar
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> geronimo-jcdi_1.0_spec-1.0-beta.jar
> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>
> into tomcat/lib
>
> Deploy works fine, but trying to start the app results in the
> following (It appears I'm not making it as far as Vicky): (according
> to debug msgs, FindByQualifier is passed an empty set for remainingSet
> before it gets to InjectionResolver.java:174)
>
> ==============================================================================================
>
>
> Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer deploy
> SEVERE:
> Throwable occurred:
> javax.enterprise.inject.UnsatisfiedResolutionException: Api type
> [org.apache.webbeans.sample.ejb.Echo] is not found with the qualifiers
> [@javax.enterprise.inject.Default()] for injection into Field
> Injection Point, field name : echo, Bean Owner : [Name:echo,WebBeans
> Type:MANAGED,API
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
>
> at
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
>
> at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
>
> at
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
>
> at
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> at
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
>
> at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
>
> at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
>
> at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
>
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>
> at java.lang.reflect.Method.invoke(Method.java:600)
> at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> ==============================================================================================
>
>
>
>
>
> On 03/16/2010 08:15 AM, Vicky Kak wrote:
>> I downloaded the binaries for M4 and here is the result
>>
>> *********************************************************************************************
>>
>>
>> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive ejb-sample.war
>> context path = /ejb-sample
>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance has been stopped
>> already. Could not load org/apache/openjpa/util/ImplHelper.class. The
>> eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance has been stopped
>> already. Could not load org/apache/openjpa/util/ImplHelper$1.class. The
>> eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>> *********************************************************************************************
>>
>>
>>
>> I did place the openjpa jar in the tomat/lib, it resulted in the
>> following trace
>> *********************************************************************************************
>>
>>
>> context path = /ejb-sample
>> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config properties
>> [META-INF/openwebbeans/openwebbeans.properties] found at location
>> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
>>
>> Overriding default settings.
>> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
>> EjbPlugin
>> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
>> OpenWebBeansJsfPlugin
>> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
>> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
>> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
>> default value false
>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
>> false
>> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
>> default value true
>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
>> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
>> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
>> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
>> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
>> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value
>> false
>> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
>> Autoscrolling, DetectJavascript, AddResourceClass and
>> CheckExtensionsFilter are disabled now.
>> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
>> MyFaces-JSF-Implementation
>> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
>> META-INF/standard-faces-config.xml
>> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>>
>>
>> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
>> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>>
>>
>> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
>> /WEB-INF/faces-config.xml
>> 17:42:57,784 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>> myfaces-api in version : 1.2.8 from path :
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>>
>>
>> 17:42:57,785 INFO FacesConfigurator:755 - Starting up MyFaces-package :
>> myfaces-impl in version : 1.2.8 from path :
>> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>>
>>
>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk not
>> found.
>> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk12
>> not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox12 not found.
>> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
>> tomahawk-sandbox15 not found.
>> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
>> myfaces-orchestra-core not found.
>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
>> myfaces-orchestra-core12 not found.
>> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package : trinidad-api
>> not found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
>> trinidad-impl not found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : tobago not
>> found.
>> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : commons-el
>> not found.
>> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package : jsp-api not
>> found.
>> 17:42:57,809 WARN LocaleUtils:55 - Locale name in faces-config.xml null
>> or empty, setting locale to default locale : en_IN
>> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization provider :
>> class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
>> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
>> '/home/vicky/developer/build-openejb/webapps/ejb-sample/' initialized.
>> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
>> ExternalContext using fallback LifecycleProvider.
>> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
>> LifecycleProvider
>> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
>> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
>> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
>> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans Container was
>> stopped for context path, /ejb-sample
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named
>> [pool-1-thread-1] but has failed to stop it. This is very likely to
>> create a memory leak.
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type
>> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877]) and a
>> value of type [org.apache.myfaces.config.RuntimeConfig] (value
>> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed to remove
>> it when the web application was stopped. To prevent a memory leak, the
>> ThreadLocal has been forcibly removed.
>> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [null]
>> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a value of type
>> [null] (value [null]) but failed to remove it when the web application
>> was stopped. To prevent a memory leak, the ThreadLocal has been forcibly
>> removed.
>> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
>> deployDirectory
>> *********************************************************************************************
>>
>>
>>
>> I did got the similar behavior with the code from the trunk.
>>
>> Vicky
>>
>
Re: Installation details in README_M3.txt is confusing.
Posted by Mark Struberg <st...@yahoo.de>.
someone over at the myfaces list had the same experience today. Maybe there is some bug in it?
LieGrue,
strub
--- Paul J. Reder <re...@remulak.net> schrieb am Di, 16.3.2010:
> Von: Paul J. Reder <re...@remulak.net>
> Betreff: Re: Installation details in README_M3.txt is confusing.
> An: user@openwebbeans.apache.org
> Datum: Dienstag, 16. März, 2010 16:04 Uhr
> I'm also trying to deploy/run the
> ejb-sample with tomcat6 + openEJB3 + 1.6.0-openjdk on Fedora
> 11 x86_64 and getting failures. I'm still looking into it,
> but figured I'd
> add my data to Vicky's.
>
> I'm using trunk as of 3/16/2010 10:00am Eastern US time and
> I've copied the latest:
> geronimo-atinject_1.0_spec-1.0-beta.jar
> geronimo-interceptor_1.1_spec-1.0.0-beta.jar
> geronimo-jcdi_1.0_spec-1.0-beta.jar
> openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
> openwebbeans-spi-1.0.0-SNAPSHOT.jar
>
> into tomcat/lib
>
> Deploy works fine, but trying to start the app results in
> the following (It appears I'm not making it as far as
> Vicky): (according to debug msgs, FindByQualifier is passed
> an empty set for remainingSet before it gets to
> InjectionResolver.java:174)
>
> ==============================================================================================
>
> Mar 16, 2010 9:28:47 AM
> org.apache.webbeans.config.BeansDeployer deploy
> SEVERE:
> Throwable occurred:
> javax.enterprise.inject.UnsatisfiedResolutionException: Api
> type [org.apache.webbeans.sample.ejb.Echo] is not found with
> the qualifiers [@javax.enterprise.inject.Default()] for
> injection into Field Injection Point, field name :Â
> echo, Bean Owner : [Name:echo,WebBeans Type:MANAGED,API
> Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
> Â Â Â Â at
> org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
> Â Â Â Â at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
> Â Â Â Â at
> org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
> Â Â Â Â at
> org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
> Â Â Â Â at
> org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
> Â Â Â Â at
> org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
> Â Â Â Â at
> org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
> Â Â Â Â at
> org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
> Â Â Â Â at
> org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
> Â Â Â Â at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
> Â Â Â Â at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
> Â Â Â Â at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
> Â Â Â Â at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
> Â Â Â Â at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
> Â Â Â Â at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
> Â Â Â Â at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
> Â Â Â Â at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
> Â Â Â Â at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
> Â Â Â Â at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
> Â Â Â Â at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> Â Â Â Â at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
> Â Â Â Â at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
> Â Â Â Â at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> Â Â Â Â at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> Â Â Â Â at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
> Â Â Â Â at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> Â Â Â Â at
> org.apache.catalina.startup.Catalina.start(Catalina.java:593)
> Â Â Â Â at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> Â Â Â Â at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
> Â Â Â Â at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
> Â Â Â Â at
> java.lang.reflect.Method.invoke(Method.java:600)
> Â Â Â Â at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> Â Â Â Â at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>
>
> ==============================================================================================
>
>
>
>
> On 03/16/2010 08:15 AM, Vicky Kak wrote:
> > I downloaded the binaries for M4 and here is the
> result
> >
> >
> *********************************************************************************************
> >
> > 16 Mar, 2010 5:39:14 PM
> org.apache.catalina.startup.HostConfig deployWAR
> > INFO: Deploying web application archive
> ejb-sample.war
> > context path = /ejb-sample
> > 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance
> has been stopped
> > already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The
> > eventual following stack trace is caused by an error
> thrown for
> > debugging purposes as well as to attempt to terminate
> the thread which
> > caused the illegal access, and has no functional
> impact.
> > 16 Mar, 2010 5:39:20 PM
> org.apache.catalina.loader.WebappClassLoader
> > findResourceInternal
> > INFO: Illegal access: this web application instance
> has been stopped
> > already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The
> > eventual following stack trace is caused by an error
> thrown for
> > debugging purposes as well as to attempt to terminate
> the thread which
> > caused the illegal access, and has no functional
> impact.
> >
> *********************************************************************************************
> >
> >
> > I did place the openjpa jar in the tomat/lib, it
> resulted in the
> > following trace
> >
> *********************************************************************************************
> >
> > context path = /ejb-sample
> > 17:42:57,088 INFO OpenWebBeansConfiguration:134 -
> Config properties
> > [META-INF/openwebbeans/openwebbeans.properties] found
> at location
> >
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> > Overriding default settings.
> > 17:42:57,124 INFO PluginLoader:143 - Adding
> OpenWebBeansPlugin : EjbPlugin
> > 17:42:57,126 INFO PluginLoader:143 - Adding
> OpenWebBeansPlugin :
> > OpenWebBeansJsfPlugin
> > 17:42:57,376 INFO StartupServletContextListener:81 -
> Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.PRETTY_HTML' found, using default
> value true
> > 17:42:57,406 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using
> default value true
> > 17:42:57,407 INFO MyfacesConfig:341 - No context init
> parameter
> >
> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON'
> found, using
> > default value false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found,
> using default value
> > false
> > 17:42:57,410 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS'
> found, using
> > default value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using
> default value true
> > 17:42:57,411 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using
> default value true
> > 17:42:57,411 INFO MyfacesConfig:379 - No context init
> parameter
> > 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found,
> using default value 2
> > 17:42:57,412 INFO MyfacesConfig:341 - No context init
> parameter
> > 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using
> default value false
> > 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not
> available.
> > Autoscrolling, DetectJavascript, AddResourceClass and
> > CheckExtensionsFilter are disabled now.
> > 17:42:57,412 INFO MyfacesConfig:323 - Starting up
> Tomahawk on the
> > MyFaces-JSF-Implementation
> > 17:42:57,459 INFO FacesConfigurator:441 - Reading
> standard config
> > META-INF/standard-faces-config.xml
> > 17:42:57,757 INFO FacesConfigurator:642 - Reading
> config :
> >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,765 INFO FacesConfigurator:642 - Reading
> config :
> >
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
> >
> > 17:42:57,768 INFO FacesConfigurator:715 - Reading
> config
> > /WEB-INF/faces-config.xml
> > 17:42:57,784 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> > myfaces-api in version : 1.2.8 from path :
> >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:755 - Starting up
> MyFaces-package :
> > myfaces-impl in version : 1.2.8 from path :
> >
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
> >
> > 17:42:57,785 INFO FacesConfigurator:750 -
> MyFaces-package : tomahawk not
> > found.
> > 17:42:57,785 INFO FacesConfigurator:750 -
> MyFaces-package : tomahawk12
> > not found.
> > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > tomahawk-sandbox not found.
> > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > tomahawk-sandbox12 not found.
> > 17:42:57,786 INFO FacesConfigurator:750 -
> MyFaces-package :
> > tomahawk-sandbox15 not found.
> > 17:42:57,787 INFO FacesConfigurator:750 -
> MyFaces-package :
> > myfaces-orchestra-core not found.
> > 17:42:57,790 INFO FacesConfigurator:750 -
> MyFaces-package :
> > myfaces-orchestra-core12 not found.
> > 17:42:57,790 INFO FacesConfigurator:750 -
> MyFaces-package : trinidad-api
> > not found.
> > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package :
> > trinidad-impl not found.
> > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package : tobago not
> > found.
> > 17:42:57,791 INFO FacesConfigurator:750 -
> MyFaces-package : commons-el
> > not found.
> > 17:42:57,792 INFO FacesConfigurator:750 -
> MyFaces-package : jsp-api not
> > found.
> > 17:42:57,809 WARN LocaleUtils:55 - Locale name in
> faces-config.xml null
> > or empty, setting locale to default locale : en_IN
> > 17:42:57,926 INFO FacesConfigurator:1367 -
> Serialization provider :
> > class
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> > 17:42:57,936 INFO AbstractFacesInitializer:98 -
> ServletContext
> >
> '/home/vicky/developer/build-openejb/webapps/ejb-sample/'
> initialized.
> > 17:42:57,937 INFO StartupServletContextListener:81 -
> Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,940 INFO StartupServletContextListener:81 -
> Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 -
> No
> > ExternalContext using fallback LifecycleProvider.
> > 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 -
> Using
> > LifecycleProvider
> >
> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> > 17:42:57,983 INFO StartupServletContextListener:81 -
> Checking for
> > plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> > 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans
> Container was
> > stopped for context path, /ejb-sample
> > 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> > clearReferencesThreads
> > SEVERE: A web application appears to have started a
> thread named
> > [pool-1-thread-1] but has failed to stop it. This is
> very likely to
> > create a memory leak.
> > 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with
> key of type
> > [java.lang.ThreadLocal] (value
> [java.lang.ThreadLocal@d03877]) and a
> > value of type
> [org.apache.myfaces.config.RuntimeConfig] (value
> > [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but
> failed to remove
> > it when the web application was stopped. To prevent a
> memory leak, the
> > ThreadLocal has been forcibly removed.
> > 16 Mar, 2010 5:42:57 PM
> org.apache.catalina.loader.WebappClassLoader
> > clearThreadLocalMap
> > SEVERE: A web application created a ThreadLocal with
> key of type [null]
> > (value [javax.faces.context.FacesContext$1@17fb9d5])
> and a value of type
> > [null] (value [null]) but failed to remove it when the
> web application
> > was stopped. To prevent a memory leak, the ThreadLocal
> has been forcibly
> > removed.
> > 16 Mar, 2010 5:42:58 PM
> org.apache.catalina.startup.HostConfig
> > deployDirectory
> >
> *********************************************************************************************
> >
> >
> > I did got the similar behavior with the code from the
> trunk.
> >
> > Vicky
> >
>
> -- Paul J. Reder
> -----------------------------------------------------------
> "The strength of the Constitution lies entirely in the
> determination of each
> citizen to defend it. Only if every single citizen
> feels duty bound to do
> his share in this defense are the constitutional rights
> secure."
> -- Albert Einstein
>
>
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
Re: Installation details in README_M3.txt is confusing.
Posted by "Paul J. Reder" <re...@remulak.net>.
I'm also trying to deploy/run the ejb-sample with tomcat6 + openEJB3 + 1.6.0-openjdk
on Fedora 11 x86_64 and getting failures. I'm still looking into it, but figured I'd
add my data to Vicky's.
I'm using trunk as of 3/16/2010 10:00am Eastern US time and I've copied the latest:
geronimo-atinject_1.0_spec-1.0-beta.jar
geronimo-interceptor_1.1_spec-1.0.0-beta.jar
geronimo-jcdi_1.0_spec-1.0-beta.jar
openwebbeans-tomcat-1.0.0-SNAPSHOT.jar
openwebbeans-spi-1.0.0-SNAPSHOT.jar
into tomcat/lib
Deploy works fine, but trying to start the app results in the following (It appears
I'm not making it as far as Vicky): (according to debug msgs, FindByQualifier is
passed an empty set for remainingSet before it gets to InjectionResolver.java:174)
==============================================================================================
Mar 16, 2010 9:28:47 AM org.apache.webbeans.config.BeansDeployer deploy
SEVERE:
Throwable occurred: javax.enterprise.inject.UnsatisfiedResolutionException: Api type
[org.apache.webbeans.sample.ejb.Echo] is not found with the qualifiers
[@javax.enterprise.inject.Default()] for injection into Field Injection Point, field
name : echo, Bean Owner : [Name:echo,WebBeans Type:MANAGED,API
Types:[java.lang.Object,org.apache.webbeans.sample.bean.EchoManaged],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default,javax.inject.Named]]
at
org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:116)
at
org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:174)
at
org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1007)
at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
at
org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
at
org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
at
org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
at
org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
==============================================================================================
On 03/16/2010 08:15 AM, Vicky Kak wrote:
> I downloaded the binaries for M4 and here is the result
>
> *********************************************************************************************
>
> 16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been stopped
> already. Could not load org/apache/openjpa/util/ImplHelper.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the thread which
> caused the illegal access, and has no functional impact.
> 16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web application instance has been stopped
> already. Could not load org/apache/openjpa/util/ImplHelper$1.class. The
> eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the thread which
> caused the illegal access, and has no functional impact.
> *********************************************************************************************
>
>
> I did place the openjpa jar in the tomat/lib, it resulted in the
> following trace
> *********************************************************************************************
>
> context path = /ejb-sample
> 17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config properties
> [META-INF/openwebbeans/openwebbeans.properties] found at location
> :jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
> Overriding default settings.
> 17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin : EjbPlugin
> 17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
> OpenWebBeansJsfPlugin
> 17:42:57,376 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.PRETTY_HTML' found, using default value true
> 17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
> 17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
> default value false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
> false
> 17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
> default value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
> 17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
> 17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
> 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
> 17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
> 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
> 17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
> Autoscrolling, DetectJavascript, AddResourceClass and
> CheckExtensionsFilter are disabled now.
> 17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
> MyFaces-JSF-Implementation
> 17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
> META-INF/standard-faces-config.xml
> 17:42:57,757 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
>
> 17:42:57,765 INFO FacesConfigurator:642 - Reading config :
> jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
>
> 17:42:57,768 INFO FacesConfigurator:715 - Reading config
> /WEB-INF/faces-config.xml
> 17:42:57,784 INFO FacesConfigurator:755 - Starting up MyFaces-package :
> myfaces-api in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:755 - Starting up MyFaces-package :
> myfaces-impl in version : 1.2.8 from path :
> file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
>
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk not
> found.
> 17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk12
> not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox12 not found.
> 17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
> tomahawk-sandbox15 not found.
> 17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
> myfaces-orchestra-core12 not found.
> 17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package : trinidad-api
> not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
> trinidad-impl not found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : tobago not
> found.
> 17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : commons-el
> not found.
> 17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package : jsp-api not
> found.
> 17:42:57,809 WARN LocaleUtils:55 - Locale name in faces-config.xml null
> or empty, setting locale to default locale : en_IN
> 17:42:57,926 INFO FacesConfigurator:1367 - Serialization provider :
> class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
> 17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
> '/home/vicky/developer/build-openejb/webapps/ejb-sample/' initialized.
> 17:42:57,937 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,940 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
> ExternalContext using fallback LifecycleProvider.
> 17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
> LifecycleProvider
> org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
> 17:42:57,983 INFO StartupServletContextListener:81 - Checking for
> plugins:org.apache.myfaces.FACES_INIT_PLUGINS
> 17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans Container was
> stopped for context path, /ejb-sample
> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> SEVERE: A web application appears to have started a thread named
> [pool-1-thread-1] but has failed to stop it. This is very likely to
> create a memory leak.
> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type
> [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877]) and a
> value of type [org.apache.myfaces.config.RuntimeConfig] (value
> [org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed to remove
> it when the web application was stopped. To prevent a memory leak, the
> ThreadLocal has been forcibly removed.
> 16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
> clearThreadLocalMap
> SEVERE: A web application created a ThreadLocal with key of type [null]
> (value [javax.faces.context.FacesContext$1@17fb9d5]) and a value of type
> [null] (value [null]) but failed to remove it when the web application
> was stopped. To prevent a memory leak, the ThreadLocal has been forcibly
> removed.
> 16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> *********************************************************************************************
>
>
> I did got the similar behavior with the code from the trunk.
>
> Vicky
>
--
Paul J. Reder
-----------------------------------------------------------
"The strength of the Constitution lies entirely in the determination of each
citizen to defend it. Only if every single citizen feels duty bound to do
his share in this defense are the constitutional rights secure."
-- Albert Einstein
Re: Installation details in README_M3.txt is confusing.
Posted by Vicky Kak <vi...@gmail.com>.
I downloaded the binaries for M4 and here is the result
*********************************************************************************************
16 Mar, 2010 5:39:14 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive ejb-sample.war
context path = /ejb-sample
16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already. Could not load org/apache/openjpa/util/ImplHelper.class. The
eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
16 Mar, 2010 5:39:20 PM org.apache.catalina.loader.WebappClassLoader
findResourceInternal
INFO: Illegal access: this web application instance has been stopped
already. Could not load org/apache/openjpa/util/ImplHelper$1.class.
The eventual following stack trace is caused by an error thrown for
debugging purposes as well as to attempt to terminate the thread which
caused the illegal access, and has no functional impact.
*********************************************************************************************
I did place the openjpa jar in the tomat/lib, it resulted in the
following trace
*********************************************************************************************
context path = /ejb-sample
17:42:57,088 INFO OpenWebBeansConfiguration:134 - Config properties
[META-INF/openwebbeans/openwebbeans.properties] found at location
:jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/ejb-sample.jar!/META-INF/openwebbeans/openwebbeans.properties.
Overriding default settings.
17:42:57,124 INFO PluginLoader:143 - Adding OpenWebBeansPlugin : EjbPlugin
17:42:57,126 INFO PluginLoader:143 - Adding OpenWebBeansPlugin :
OpenWebBeansJsfPlugin
17:42:57,376 INFO StartupServletContextListener:81 - Checking for
plugins:org.apache.myfaces.FACES_INIT_PLUGINS
17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.PRETTY_HTML' found, using default value true
17:42:57,406 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
17:42:57,407 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
default value false
17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value
false
17:42:57,410 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using
default value true
17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
17:42:57,411 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
17:42:57,411 INFO MyfacesConfig:379 - No context init parameter
'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
17:42:57,412 INFO MyfacesConfig:341 - No context init parameter
'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
17:42:57,412 INFO MyfacesConfig:307 - Tomahawk jar not available.
Autoscrolling, DetectJavascript, AddResourceClass and
CheckExtensionsFilter are disabled now.
17:42:57,412 INFO MyfacesConfig:323 - Starting up Tomahawk on the
MyFaces-JSF-Implementation
17:42:57,459 INFO FacesConfigurator:441 - Reading standard config
META-INF/standard-faces-config.xml
17:42:57,757 INFO FacesConfigurator:642 - Reading config :
jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/faces-config.xml
17:42:57,765 INFO FacesConfigurator:642 - Reading config :
jar:file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/openwebbeans-jsf-1.0.0-M4.jar!/META-INF/faces-config.xml
17:42:57,768 INFO FacesConfigurator:715 - Reading config
/WEB-INF/faces-config.xml
17:42:57,784 INFO FacesConfigurator:755 - Starting up MyFaces-package :
myfaces-api in version : 1.2.8 from path :
file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-api-1.2.8.jar
17:42:57,785 INFO FacesConfigurator:755 - Starting up MyFaces-package :
myfaces-impl in version : 1.2.8 from path :
file:/home/vicky/developer/build-openejb/webapps/ejb-sample/WEB-INF/lib/myfaces-impl-1.2.8.jar
17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk
not found.
17:42:57,785 INFO FacesConfigurator:750 - MyFaces-package : tomahawk12
not found.
17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
tomahawk-sandbox not found.
17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
tomahawk-sandbox12 not found.
17:42:57,786 INFO FacesConfigurator:750 - MyFaces-package :
tomahawk-sandbox15 not found.
17:42:57,787 INFO FacesConfigurator:750 - MyFaces-package :
myfaces-orchestra-core not found.
17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
myfaces-orchestra-core12 not found.
17:42:57,790 INFO FacesConfigurator:750 - MyFaces-package :
trinidad-api not found.
17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package :
trinidad-impl not found.
17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : tobago not
found.
17:42:57,791 INFO FacesConfigurator:750 - MyFaces-package : commons-el
not found.
17:42:57,792 INFO FacesConfigurator:750 - MyFaces-package : jsp-api not
found.
17:42:57,809 WARN LocaleUtils:55 - Locale name in faces-config.xml null
or empty, setting locale to default locale : en_IN
17:42:57,926 INFO FacesConfigurator:1367 - Serialization provider :
class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
17:42:57,936 INFO AbstractFacesInitializer:98 - ServletContext
'/home/vicky/developer/build-openejb/webapps/ejb-sample/' initialized.
17:42:57,937 INFO StartupServletContextListener:81 - Checking for
plugins:org.apache.myfaces.FACES_INIT_PLUGINS
17:42:57,940 INFO StartupServletContextListener:81 - Checking for
plugins:org.apache.myfaces.FACES_INIT_PLUGINS
17:42:57,974 INFO DefaultLifecycleProviderFactory:58 - No
ExternalContext using fallback LifecycleProvider.
17:42:57,979 INFO DefaultLifecycleProviderFactory:71 - Using
LifecycleProvider
org.apache.myfaces.config.annotation.AllAnnotationLifecycleProvider
17:42:57,983 INFO StartupServletContextListener:81 - Checking for
plugins:org.apache.myfaces.FACES_INIT_PLUGINS
17:42:57,986 INFO DefaultLifecycle:143 - OpenWebBeans Container was
stopped for context path, /ejb-sample
16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: A web application appears to have started a thread named
[pool-1-thread-1] but has failed to stop it. This is very likely to
create a memory leak.
16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type
[java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d03877]) and a
value of type [org.apache.myfaces.config.RuntimeConfig] (value
[org.apache.myfaces.config.RuntimeConfig@2b2fec]) but failed to remove
it when the web application was stopped. To prevent a memory leak, the
ThreadLocal has been forcibly removed.
16 Mar, 2010 5:42:57 PM org.apache.catalina.loader.WebappClassLoader
clearThreadLocalMap
SEVERE: A web application created a ThreadLocal with key of type [null]
(value [javax.faces.context.FacesContext$1@17fb9d5]) and a value of type
[null] (value [null]) but failed to remove it when the web application
was stopped. To prevent a memory leak, the ThreadLocal has been forcibly
removed.
16 Mar, 2010 5:42:58 PM org.apache.catalina.startup.HostConfig
deployDirectory
*********************************************************************************************
I did got the similar behavior with the code from the trunk.
Vicky
Gurkan Erdogdu wrote:
> Here is the M4 --> Released and tested version. It can contain README_M4.
>
> http://www.apache.org/dyn/closer.cgi/openwebbeans
>
> We are working on the "trunk" therefore some samples may not work as
> expected, because they are not tested like released version.
>
> --Gurkan
>
> 2010/3/16 Gurkan Erdogdu <cgurkanerdogdu@gmail.com
> <ma...@gmail.com>>
>
> Hello;
>
> do you use M4 version? we have released it.
>
> --Gurkan
>
> 2010/3/16 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>>
>
> I did tried the fresh installation now and this is what I see now
>
> ***************************************************************************************************
>
> 16 Mar, 2010 1:45:05 PM org.apache.catalina.startup.HostConfig
> deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 1:45:07 PM org.apache.catalina.startup.HostConfig
> deployWAR
> SEVERE: Error deploying web application archive ejb-sample.war
> java.lang.NoClassDefFoundError: Could not fully load class:
> org.apache.webbeans.servlet.WebBeansConfigurationListener
> due to:Lorg/apache/webbeans/spi/ContainerLifecycle;
> in classLoader:
> org.apache.openejb.core.TempClassLoader@15ba1ef
> at
> org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:177)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3142)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:992)
> at
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:202)
> ***************************************************************************************************
>
>
> I tried putting the owb specific spi jar inside the web
> application and was able to get rid of this error but got the
> other one related to openjpa related ones.
> Could you/some one test the stuff and check if things work at
> you end?
>
> -Vicky
>
>
> Gurkan Erdogdu wrote:
>
> Could you deploy using "mvn tomcat:deploy" at ejb-sample root?
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
>
> Looks like changing the properties did the trick
> however there
> seems to be some other eissue due to missing
> dependency, here is
> what I see now
>
>
> *******************************************************************************************************
>
> 23 Feb, 2010 5:20:52 PM
> org.apache.catalina.startup.HostConfig
> deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
>
> INFO: Illegal access: this web application instance has
> been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class. The eventual
> following
> stack trace is caused by an error thrown for debugging
> purposes as
> well as to attempt to terminate the thread which caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 5:20:57 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
>
> INFO: Illegal access: this web application instance has
> been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper$1.class. The eventual
> following stack trace is caused by an error thrown for
> debugging
> purposes as well as to attempt to terminate the thread
> which
> caused the illegal access, and has no functional impact.
>
> *******************************************************************************************************
>
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> I mean is that I have refactored our resource injection
> handling but we do not update our ejb samples.
> Currently in
> ejb-sample/pom.xml it defines resource-plugin but
> this is not
> required anymore.
>
> Moreover,
>
> ejb-samples/META-INF/openwebbeans/openwebbeans.properties
> must
> be updated to include
> ResourceInjectionService.(currently it
> use ResourceService!). After changing, re-try to
> deploy it
> using "mvn clean tomcat:deploy" command as
> explained in README.
>
> #use resource service
>
> org.apache.webbeans.spi.ResourceInjectionService=org.apache.webbeans.ejb.resource.OpenEjbResourceInjectionService
>
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>
>
> I am not sure what you mean here, I assume that
> you need to
> make
> some configurations in Tomat and deploy the
> sample application.
> Let me know once you perform the tests, I will
> meanwhile take a
> look at the tomcat logging details.
>
> -Vicky
> Gurkan Erdogdu wrote:
>
> Yes that is it.
>
> But we do not try to run samples after
> changing some
> configurations therefore you could get some
> exceptions.
>
> I will look at in the evening to run ejb
> samples.
>
> --Gurkan
>
> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>>
>
> Hi Gurkan,
>
> Thanks for the details.
> I have been building the OWB from the
> trunk and
> followed the
> readme which is based on M3, the M4
> specific readme
> is not yet
> available.
>
> I did understand that we need the place
> the common jars
> specific
> to jsr330/jsr299 in the $TOMCAT/lib and
> configure the
> openejb in
> tomcat.
> After this we should be able to deploy the
> ejb-sample.war
> in the
> $TOMCAT/webapps, pretty simple!
>
> Is there anything else I should look from
> configuration
> perspective?
>
> Here is what I see from the Tomcat
> console currently
>
>
> ***********************************************************************************************
>
> INFO: Deploying web application archive
> ejb-sample.war
> context path = /ejb-sample
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Error listenerStart
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ejb-sample] startup
> failed due to
> previous errors
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web
> application instance
> has been
> stopped already. Could not load
> org/apache/openjpa/util/ImplHelper.class.
> The eventual
> following
> stack trace is caused by an error thrown
> for debugging
> purposes as
> well as to attempt to terminate the
> thread which
> caused the
> illegal access, and has no functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.loader.WebappClassLoader
> findResourceInternal
> INFO: Illegal access: this web
> application instance
> has been
> stopped already. Could not load
>
> org/apache/openjpa/util/ImplHelper$1.class. The
> eventual
> following stack trace is caused by an
> error thrown for
> debugging
> purposes as well as to attempt to
> terminate the
> thread which
> caused the illegal access, and has no
> functional impact.
> 23 Feb, 2010 3:41:09 PM
> org.apache.catalina.startup.HostConfig
> deployDirectory
>
> ***********************************************************************************************
>
>
> Regards,
> Vicky
> Gurkan Erdogdu wrote:
>
> Hello Vicky;
>
> Some configuration file names are
> changed.
> README_M3 is a
> little bit old with respect to
> openwebbeans.properties
> content. We have a plan to release M4
> this week
> that it
> contains lots of bug fixes. Therefore
> instead of
> using M3
> artifacts, until M4 releases,
> checkout source
> from SVN and
> build it yourself.
>
> >>>
> "atinject-api-1.0.0-incubating-M3.jar....
> at-inject.(JSR-330 API).jar and
> cdi.jar (JSR-299
> API)
> projects
> have moved to geronimo specs. You can
> download
> it from
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/
> manually or if you use "maven", you
> can define
> dependencies to
> them looking at pom content fro there.
>
> Locations :
> ----------------------------
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/
>
> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/
>
> You have to add those jars into
> TOMCAT lib folder.
>
> >>>WEB-INF/lib, I don't understand
> what does
> this mean,
> it is
> not clear.
> It means that some of the libraries
> (jars) that OWB
> needs are
> not contained in Tomcat. You have to
> manually
> add those
> jars
> into your application WEB-INF/lib.
> For example,
> if you
> create
> a JSF application, add JSF jars into
> WEB-INF/lib
> with
> OWB JSF
> plugin. Another example is that OWB
> needes
> validator.jar.
>
> Generally you have to add implementation
> jar(webbeans-impl)
> and its dependencies to application
> WEB-INF/lib
> except
> atinject.jar and cdi.jar.
> webbeans-impl jar must be
> reside in
> WEB-INF/lib folder of the
> application, not in
> TOMCAT/lib folder.
>
> For Configuration:
> ------------------------
> openwebbeans-default.properties does
> not use EJB
> meta-data
> discovery as default. To use EJB
> discovery you
> have to
> tweak
> some properties. Look at
>
> http://svn.apache.org/repos/asf/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties.
>
> Moreover, README_M3 talked about
> resource plugin
> that was
> responsibe for injecting Java EE
> resources into
> bean (For
> example, EntityManager, DataSource
> etc.). There
> is no
> ResourcePlugin in current codebase.
> It has removed.
> Now, there
> is a ResourceInjectionService. You
> have to
> configure this
> service in openwebbeans.properties to use
> OpenEJB resource
> injection service instead of default.
> (Look at
> ejb-sample
> openwebbeans.properties).
>
> Currently OWB looks for
>
> META-INF/openwebbeans/openwebbeans.properties
> files to run
> over default configuration
> properties. If you have a
> JAR that
> is located in Tomcat LIB folder that
> contains
>
> META-INF/openwebbeans/openwebbeans.properties
> file, it
> is read
> by OWB.
>
> One more thing, OWB uses EJB interceptor
> (OpenWebBeansEJBInterceptor) to inject
> dependencies to EJB
> beans. Therefore your every session
> bean must
> have this
> interceptor. Again look at samples.
>
> Please look at ejb-sample application
> for current
> configuration.
>
> You can also join us on freenode
> channel on #IRC
> with
> #openwebbeans channel.
>
> Thanks;
>
> --Gurkan
>
>
> 2010/2/23 Vicky Kak
> <vicky.kak@gmail.com <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>
> <mailto:vicky.kak@gmail.com <ma...@gmail.com>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>
>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>
> <mailto:vicky.kak@gmail.com
> <ma...@gmail.com>>>>>>
>
>
>
> Vicky Kak wrote:
>
> Hi Folks,
>
> I am in process of testing
> openwebbean with
> Tomcat/openejb, I
> did read the related section
> from the
> following docs
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M3.txt
>
> Here is the section which
> explains it
>
> ********************************************************************************************
>
> EJB Support via Embeddable OpenEJB
> Container in
> Tomcat 6.X
>
> ---------------------------------------------
>
> Configuration Steps:
>
> --------------------------------------------
> 1* Download Tomcat 6.X version
> 2* Configure OpenEJB. Look at URL
>
> http://openejb.apache.org/tomcat.html for
> installation.
> 3* Copy
> "atinject-api-1.0.0-incubating-M3.jar" to
> Tomcat /lib
> folder.
> 4* Copy
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> 5* Look at ejb-sample.war for
> "WEB-INF/lib"
> libraries to
> develop custom application.
> You can also look at a source
> of the
> project.
>
> ********************************************************************************************
>
>
> "atinject-api-1.0.0-incubating-M3.jar"
> does not get
> generated
> at atinject-tck location, I
> was expecting
> it to be
> there. It
> is not there, I did pull the
> CDI api jar and
> dropped it
> in the
> $TOMCAT_HOME/lib.
>
>
> "openwebbeans-api-1.0.0-incubating-M3.jar"
> should also be
> copied to the $TOMCAT/lib,
> this should be
> pointed in the
> instructions too.
>
> >>Look at ejb-sample.war for
> "WEB-INF/lib"
> libraries to
> develop custom application.
> I don't understand what does
> this mean, it is
> not clear.
>
>
>
> ********************************************************************************************
>
> How to Develop EJB Applications
>
> ---------------------------------------------
> 1* Add
> "META-INF/openwebbeans.properties"
> into your
> application classpath.
> 2* Add
>
> "org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true"
> to use EJB functionality.
> So OWB container looks for EJBs.
> 3* Add
>
> "org.apache.webbeans.resource.spi.ResourceService=org.apache.webbeans.spi.ee.openejb.resource.OpenEjbResourceServiceImpl"
> to
> use OpenEJB Resource injections.
> 4* Add "openwebbeans-ejb",
> "openwebbeans-resource" and
> "openwebbeans-geronimo"
> plugins into your web
> application
> classpath.
> It adds EJB, Resource and Open EJB
> Resource plugins
> into your
> application.
> 5* If you want to use other
> plugins, add
> respective plugins
> into your application
> classpath. For
> example, if you
> wish to use
> JSF framework, you add
> "openwebbeans-jsf"
> plugin.
> 6* Add OWB related interceptor
> into your EJB
> Beans. This is
> called
>
> "org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor"
> This is needed for OWB injections.
> 7* Update your application's
> "web.xml" to add
> OWB specific
> configuration.
>
>
> ---------------------------------------------
>
> ********************************************************************************************
>
>
> Why can't we have this
> openwebbeans.properties
> as a part of
> the jars which we have dropped in
> $TOMCAT/lib, it is
> not good
> idea to configure the
> classpath for the
> Tomcat
> and then
> start.
> I see the default properties
> file being here
>
> https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/resources/META-INF/openwebbeans/openwebbeans-default.properties
>
>
> This does not contain the
> property values as
> mentioned
> in "How
> to Develop EJB Applications",
> I was
> thinking of
> taking the
> same file setting it to the
> Tomcat CP.
>
> I have been able to configure
> the openEJB
> for Tomcat
> and have
> not yet followed the
> instructions to set the
>
> META-INF/openwebbeans.properties and hence
> getting this
> error
>
> *******************************************************************************
>
> context path = /ejb-sample
> 23 Feb, 2010 1:33:28 PM
>
> org.apache.catalina.core.StandardContext
> start
> SEVERE: Error listenerStart
>
> *******************************************************************************
>
>
> Before digging more into the
> code and finding
> the details I
> would like to know more from
> the community.
>
> Regards,
> Vicky
>
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> -- Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <cg...@gmail.com>.
Here is the M4 --> Released and tested version. It can contain README_M4.
http://www.apache.org/dyn/closer.cgi/openwebbeans
We are working on the "trunk" therefore some samples may not work as
expected, because they are not tested like released version.
--Gurkan
2010/3/16 Gurkan Erdogdu <cg...@gmail.com>
> Hello;
>
> do you use M4 version? we have released it.
>
> --Gurkan
>
> 2010/3/16 Vicky Kak <vi...@gmail.com>
>
> I did tried the fresh installation now and this is what I see now
>>
>> ***************************************************************************************************
>>
>> 16 Mar, 2010 1:45:05 PM org.apache.catalina.startup.HostConfig deployWAR
>>
>> INFO: Deploying web application archive ejb-sample.war
>> context path = /ejb-sample
>> 16 Mar, 2010 1:45:07 PM org.apache.catalina.startup.HostConfig deployWAR
>> SEVERE: Error deploying web application archive ejb-sample.war
>> java.lang.NoClassDefFoundError: Could not fully load class:
>> org.apache.webbeans.servlet.WebBeansConfigurationListener
>> due to:Lorg/apache/webbeans/spi/ContainerLifecycle;
>> in classLoader:
>> org.apache.openejb.core.TempClassLoader@15ba1ef
>> at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:177)
>> at
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3142)
>> at
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:992)
>> at
>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:202)
>> ***************************************************************************************************
>>
>>
>> I tried putting the owb specific spi jar inside the web application and
>> was able to get rid of this error but got the other one related to openjpa
>> related ones.
>> Could you/some one test the stuff and check if things work at you end?
>>
>> -Vicky
>>
>>
>> Gurkan Erdogdu wrote:
>>
>>> Could you deploy using "mvn tomcat:deploy" at ejb-sample root?
>>>
>>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com <ma...@gmail.com>>
>>>
>>> Looks like changing the properties did the trick however there
>>> seems to be some other eissue due to missing dependency, here is
>>> what I see now
>>>
>>>
>>> *******************************************************************************************************
>>>
>>> 23 Feb, 2010 5:20:52 PM org.apache.catalina.startup.HostConfig
>>> deployWAR
>>>
>>> INFO: Deploying web application archive ejb-sample.war
>>> context path = /ejb-sample
>>> 23 Feb, 2010 5:20:57 PM
>>> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>>>
>>> INFO: Illegal access: this web application instance has been
>>> stopped already. Could not load
>>> org/apache/openjpa/util/ImplHelper.class. The eventual following
>>> stack trace is caused by an error thrown for debugging purposes as
>>> well as to attempt to terminate the thread which caused the
>>> illegal access, and has no functional impact.
>>> 23 Feb, 2010 5:20:57 PM
>>> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>>>
>>> INFO: Illegal access: this web application instance has been
>>> stopped already. Could not load
>>> org/apache/openjpa/util/ImplHelper$1.class. The eventual
>>> following stack trace is caused by an error thrown for debugging
>>> purposes as well as to attempt to terminate the thread which
>>> caused the illegal access, and has no functional impact.
>>>
>>> *******************************************************************************************************
>>>
>>>
>>> -Vicky
>>> Gurkan Erdogdu wrote:
>>>
>>> I mean is that I have refactored our resource injection
>>> handling but we do not update our ejb samples. Currently in
>>> ejb-sample/pom.xml it defines resource-plugin but this is not
>>> required anymore.
>>>
>>> Moreover,
>>> ejb-samples/META-INF/openwebbeans/openwebbeans.properties must
>>> be updated to include ResourceInjectionService.(currently it
>>> use ResourceService!). After changing, re-try to deploy it
>>> using "mvn clean tomcat:deploy" command as explained in README.
>>>
>>> #use resource service
>>>
>>> org.apache.webbeans.spi.ResourceInjectionService=org.apache.webbeans.ejb.resource.OpenEjbResourceInjectionService
>>>
>>>
>>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>>> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
>>>
>>> <ma...@gmail.com>>>
>>>
>>> I am not sure what you mean here, I assume that you need to
>>> make
>>> some configurations in Tomat and deploy the sample application.
>>> Let me know once you perform the tests, I will meanwhile take a
>>> look at the tomcat logging details.
>>>
>>> -Vicky
>>> Gurkan Erdogdu wrote:
>>>
>>> Yes that is it.
>>>
>>> But we do not try to run samples after changing some
>>> configurations therefore you could get some exceptions.
>>>
>>> I will look at in the evening to run ejb samples.
>>>
>>> --Gurkan
>>>
>>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>>> <ma...@gmail.com>
>>> <mailto:vicky.kak@gmail.com
>>> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
>>>
>>> <ma...@gmail.com>
>>>
>>> <mailto:vicky.kak@gmail.com <mailto:vicky.kak@gmail.com
>>> >>>>
>>>
>>> Hi Gurkan,
>>>
>>> Thanks for the details.
>>> I have been building the OWB from the trunk and
>>> followed the
>>> readme which is based on M3, the M4 specific readme
>>> is not yet
>>> available.
>>>
>>> I did understand that we need the place the common jars
>>> specific
>>> to jsr330/jsr299 in the $TOMCAT/lib and configure the
>>> openejb in
>>> tomcat.
>>> After this we should be able to deploy the
>>> ejb-sample.war
>>> in the
>>> $TOMCAT/webapps, pretty simple!
>>>
>>> Is there anything else I should look from configuration
>>> perspective?
>>>
>>> Here is what I see from the Tomcat console currently
>>>
>>>
>>> ***********************************************************************************************
>>>
>>> INFO: Deploying web application archive ejb-sample.war
>>> context path = /ejb-sample
>>> 23 Feb, 2010 3:41:09 PM
>>> org.apache.catalina.core.StandardContext start
>>> SEVERE: Error listenerStart
>>> 23 Feb, 2010 3:41:09 PM
>>> org.apache.catalina.core.StandardContext start
>>> SEVERE: Context [/ejb-sample] startup failed due to
>>> previous errors
>>> 23 Feb, 2010 3:41:09 PM
>>> org.apache.catalina.loader.WebappClassLoader
>>> findResourceInternal
>>> INFO: Illegal access: this web application instance
>>> has been
>>> stopped already. Could not load
>>> org/apache/openjpa/util/ImplHelper.class. The eventual
>>> following
>>> stack trace is caused by an error thrown for debugging
>>> purposes as
>>> well as to attempt to terminate the thread which
>>> caused the
>>> illegal access, and has no functional impact.
>>> 23 Feb, 2010 3:41:09 PM
>>> org.apache.catalina.loader.WebappClassLoader
>>> findResourceInternal
>>> INFO: Illegal access: this web application instance
>>> has been
>>> stopped already. Could not load
>>> org/apache/openjpa/util/ImplHelper$1.class. The
>>> eventual
>>> following stack trace is caused by an error thrown for
>>> debugging
>>> purposes as well as to attempt to terminate the
>>> thread which
>>> caused the illegal access, and has no functional impact.
>>> 23 Feb, 2010 3:41:09 PM
>>> org.apache.catalina.startup.HostConfig
>>> deployDirectory
>>>
>>> ***********************************************************************************************
>>>
>>>
>>> Regards,
>>> Vicky
>>> Gurkan Erdogdu wrote:
>>>
>>> Hello Vicky;
>>>
>>> Some configuration file names are changed.
>>> README_M3 is a
>>> little bit old with respect to
>>> openwebbeans.properties
>>> content. We have a plan to release M4 this week
>>> that it
>>> contains lots of bug fixes. Therefore instead of
>>> using M3
>>> artifacts, until M4 releases, checkout source
>>> from SVN and
>>> build it yourself.
>>>
>>> >>> "atinject-api-1.0.0-incubating-M3.jar....
>>> at-inject.(JSR-330 API).jar and cdi.jar (JSR-299
>>> API)
>>> projects
>>> have moved to geronimo specs. You can download
>>> it from
>>>
>>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/
>>> manually or if you use "maven", you can define
>>> dependencies to
>>> them looking at pom content fro there.
>>>
>>> Locations :
>>> ----------------------------
>>>
>>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/
>>>
>>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/
>>>
>>> You have to add those jars into TOMCAT lib folder.
>>>
>>> >>>WEB-INF/lib, I don't understand what does
>>> this mean,
>>> it is
>>> not clear.
>>> It means that some of the libraries (jars) that OWB
>>> needs are
>>> not contained in Tomcat. You have to manually
>>> add those
>>> jars
>>> into your application WEB-INF/lib. For example,
>>> if you
>>> create
>>> a JSF application, add JSF jars into WEB-INF/lib
>>> with
>>> OWB JSF
>>> plugin. Another example is that OWB needes
>>> validator.jar.
>>>
>>> Generally you have to add implementation
>>> jar(webbeans-impl)
>>> and its dependencies to application WEB-INF/lib
>>> except
>>> atinject.jar and cdi.jar. webbeans-impl jar must be
>>> reside in
>>> WEB-INF/lib folder of the application, not in
>>> TOMCAT/lib folder.
>>>
>>> For Configuration:
>>> ------------------------
>>> openwebbeans-default.properties does not use EJB
>>> meta-data
>>> discovery as default. To use EJB discovery you
>>> have to
>>> tweak
>>> some properties. Look at
>>>
>>> http://svn.apache.org/repos/asf/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
>>> .
>>>
>>> Moreover, README_M3 talked about resource plugin
>>> that was
>>> responsibe for injecting Java EE resources into
>>> bean (For
>>> example, EntityManager, DataSource etc.). There
>>> is no
>>> ResourcePlugin in current codebase. It has removed.
>>> Now, there
>>> is a ResourceInjectionService. You have to
>>> configure this
>>> service in openwebbeans.properties to use
>>> OpenEJB resource
>>> injection service instead of default. (Look at
>>> ejb-sample
>>> openwebbeans.properties).
>>>
>>> Currently OWB looks for
>>> META-INF/openwebbeans/openwebbeans.properties
>>> files to run
>>> over default configuration properties. If you have a
>>> JAR that
>>> is located in Tomcat LIB folder that contains
>>> META-INF/openwebbeans/openwebbeans.properties
>>> file, it
>>> is read
>>> by OWB.
>>>
>>> One more thing, OWB uses EJB interceptor
>>> (OpenWebBeansEJBInterceptor) to inject
>>> dependencies to EJB
>>> beans. Therefore your every session bean must
>>> have this
>>> interceptor. Again look at samples.
>>>
>>> Please look at ejb-sample application for current
>>> configuration.
>>>
>>> You can also join us on freenode channel on #IRC
>>> with
>>> #openwebbeans channel.
>>>
>>> Thanks;
>>>
>>> --Gurkan
>>>
>>>
>>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>>> <ma...@gmail.com>
>>> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>>> <mailto:vicky.kak@gmail.com
>>> <ma...@gmail.com>
>>> <mailto:vicky.kak@gmail.com
>>> <ma...@gmail.com>>> <mailto:vicky.kak@gmail.com
>>>
>>> <ma...@gmail.com>
>>>
>>> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>>>
>>> <mailto:vicky.kak@gmail.com
>>> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
>>> <ma...@gmail.com>>>>>
>>>
>>>
>>>
>>> Vicky Kak wrote:
>>>
>>> Hi Folks,
>>>
>>> I am in process of testing openwebbean with
>>> Tomcat/openejb, I
>>> did read the related section from the
>>> following docs
>>>
>>> https://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M3.txt
>>>
>>> Here is the section which explains it
>>>
>>> ********************************************************************************************
>>>
>>> EJB Support via Embeddable OpenEJB
>>> Container in
>>> Tomcat 6.X
>>> ---------------------------------------------
>>>
>>> Configuration Steps:
>>> --------------------------------------------
>>> 1* Download Tomcat 6.X version
>>> 2* Configure OpenEJB. Look at URL
>>> http://openejb.apache.org/tomcat.html for
>>> installation.
>>> 3* Copy
>>> "atinject-api-1.0.0-incubating-M3.jar" to
>>> Tomcat /lib
>>> folder.
>>> 4* Copy
>>> "openwebbeans-api-1.0.0-incubating-M3.jar"
>>> 5* Look at ejb-sample.war for "WEB-INF/lib"
>>> libraries to
>>> develop custom application.
>>> You can also look at a source of the
>>> project.
>>>
>>> ********************************************************************************************
>>>
>>> "atinject-api-1.0.0-incubating-M3.jar"
>>> does not get
>>> generated
>>> at atinject-tck location, I was expecting
>>> it to be
>>> there. It
>>> is not there, I did pull the CDI api jar and
>>> dropped it
>>> in the
>>> $TOMCAT_HOME/lib.
>>>
>>> "openwebbeans-api-1.0.0-incubating-M3.jar"
>>> should also be
>>> copied to the $TOMCAT/lib, this should be
>>> pointed in the
>>> instructions too.
>>>
>>> >>Look at ejb-sample.war for "WEB-INF/lib"
>>> libraries to
>>> develop custom application.
>>> I don't understand what does this mean, it is
>>> not clear.
>>>
>>>
>>>
>>> ********************************************************************************************
>>>
>>> How to Develop EJB Applications
>>> ---------------------------------------------
>>> 1* Add "META-INF/openwebbeans.properties"
>>> into your
>>> application classpath.
>>> 2* Add
>>>
>>> "org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true"
>>> to use EJB functionality.
>>> So OWB container looks for EJBs.
>>> 3* Add
>>>
>>> "org.apache.webbeans.resource.spi.ResourceService=org.apache.webbeans.spi.ee.openejb.resource.OpenEjbResourceServiceImpl"
>>> to
>>> use OpenEJB Resource injections.
>>> 4* Add "openwebbeans-ejb",
>>> "openwebbeans-resource" and
>>> "openwebbeans-geronimo" plugins into your web
>>> application
>>> classpath.
>>> It adds EJB, Resource and Open EJB
>>> Resource plugins
>>> into your
>>> application.
>>> 5* If you want to use other plugins, add
>>> respective plugins
>>> into your application classpath. For
>>> example, if you
>>> wish to use
>>> JSF framework, you add "openwebbeans-jsf"
>>> plugin.
>>> 6* Add OWB related interceptor into your EJB
>>> Beans. This is
>>> called
>>>
>>> "org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor"
>>> This is needed for OWB injections.
>>> 7* Update your application's "web.xml" to add
>>> OWB specific
>>> configuration.
>>>
>>> ---------------------------------------------
>>>
>>> ********************************************************************************************
>>>
>>>
>>> Why can't we have this
>>> openwebbeans.properties
>>> as a part of
>>> the jars which we have dropped in
>>> $TOMCAT/lib, it is
>>> not good
>>> idea to configure the classpath for the
>>> Tomcat
>>> and then
>>> start.
>>> I see the default properties file being here
>>>
>>> https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/resources/META-INF/openwebbeans/openwebbeans-default.properties
>>>
>>>
>>> This does not contain the property values as
>>> mentioned
>>> in "How
>>> to Develop EJB Applications", I was
>>> thinking of
>>> taking the
>>> same file setting it to the Tomcat CP.
>>>
>>> I have been able to configure the openEJB
>>> for Tomcat
>>> and have
>>> not yet followed the instructions to set the
>>> META-INF/openwebbeans.properties and hence
>>> getting this
>>> error
>>>
>>> *******************************************************************************
>>>
>>> context path = /ejb-sample
>>> 23 Feb, 2010 1:33:28 PM
>>> org.apache.catalina.core.StandardContext
>>> start
>>> SEVERE: Error listenerStart
>>>
>>> *******************************************************************************
>>>
>>>
>>> Before digging more into the code and finding
>>> the details I
>>> would like to know more from the community.
>>>
>>> Regards,
>>> Vicky
>>>
>>>
>>>
>>>
>>>
>>>
>>> -- Gurkan Erdogdu
>>> http://gurkanerdogdu.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>> -- Gurkan Erdogdu
>>> http://gurkanerdogdu.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>> -- Gurkan Erdogdu
>>> http://gurkanerdogdu.blogspot.com
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Gurkan Erdogdu
>>> http://gurkanerdogdu.blogspot.com
>>>
>>
>>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
Re: Installation details in README_M3.txt is confusing.
Posted by Gurkan Erdogdu <cg...@gmail.com>.
Hello;
do you use M4 version? we have released it.
--Gurkan
2010/3/16 Vicky Kak <vi...@gmail.com>
> I did tried the fresh installation now and this is what I see now
>
> ***************************************************************************************************
>
> 16 Mar, 2010 1:45:05 PM org.apache.catalina.startup.HostConfig deployWAR
>
> INFO: Deploying web application archive ejb-sample.war
> context path = /ejb-sample
> 16 Mar, 2010 1:45:07 PM org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying web application archive ejb-sample.war
> java.lang.NoClassDefFoundError: Could not fully load class:
> org.apache.webbeans.servlet.WebBeansConfigurationListener
> due to:Lorg/apache/webbeans/spi/ContainerLifecycle;
> in classLoader:
> org.apache.openejb.core.TempClassLoader@15ba1ef
> at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:177)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.createInheritedClassFinder(AnnotationDeployer.java:3142)
> at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:992)
> at
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:202)
> ***************************************************************************************************
>
>
> I tried putting the owb specific spi jar inside the web application and was
> able to get rid of this error but got the other one related to openjpa
> related ones.
> Could you/some one test the stuff and check if things work at you end?
>
> -Vicky
>
>
> Gurkan Erdogdu wrote:
>
>> Could you deploy using "mvn tomcat:deploy" at ejb-sample root?
>>
>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com <ma...@gmail.com>>
>>
>> Looks like changing the properties did the trick however there
>> seems to be some other eissue due to missing dependency, here is
>> what I see now
>>
>>
>> *******************************************************************************************************
>>
>> 23 Feb, 2010 5:20:52 PM org.apache.catalina.startup.HostConfig
>> deployWAR
>>
>> INFO: Deploying web application archive ejb-sample.war
>> context path = /ejb-sample
>> 23 Feb, 2010 5:20:57 PM
>> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>>
>> INFO: Illegal access: this web application instance has been
>> stopped already. Could not load
>> org/apache/openjpa/util/ImplHelper.class. The eventual following
>> stack trace is caused by an error thrown for debugging purposes as
>> well as to attempt to terminate the thread which caused the
>> illegal access, and has no functional impact.
>> 23 Feb, 2010 5:20:57 PM
>> org.apache.catalina.loader.WebappClassLoader findResourceInternal
>>
>> INFO: Illegal access: this web application instance has been
>> stopped already. Could not load
>> org/apache/openjpa/util/ImplHelper$1.class. The eventual
>> following stack trace is caused by an error thrown for debugging
>> purposes as well as to attempt to terminate the thread which
>> caused the illegal access, and has no functional impact.
>>
>> *******************************************************************************************************
>>
>>
>> -Vicky
>> Gurkan Erdogdu wrote:
>>
>> I mean is that I have refactored our resource injection
>> handling but we do not update our ejb samples. Currently in
>> ejb-sample/pom.xml it defines resource-plugin but this is not
>> required anymore.
>>
>> Moreover,
>> ejb-samples/META-INF/openwebbeans/openwebbeans.properties must
>> be updated to include ResourceInjectionService.(currently it
>> use ResourceService!). After changing, re-try to deploy it
>> using "mvn clean tomcat:deploy" command as explained in README.
>>
>> #use resource service
>>
>> org.apache.webbeans.spi.ResourceInjectionService=org.apache.webbeans.ejb.resource.OpenEjbResourceInjectionService
>>
>>
>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
>>
>> <ma...@gmail.com>>>
>>
>> I am not sure what you mean here, I assume that you need to
>> make
>> some configurations in Tomat and deploy the sample application.
>> Let me know once you perform the tests, I will meanwhile take a
>> look at the tomcat logging details.
>>
>> -Vicky
>> Gurkan Erdogdu wrote:
>>
>> Yes that is it.
>>
>> But we do not try to run samples after changing some
>> configurations therefore you could get some exceptions.
>>
>> I will look at in the evening to run ejb samples.
>>
>> --Gurkan
>>
>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>> <ma...@gmail.com>
>> <mailto:vicky.kak@gmail.com
>> <ma...@gmail.com>> <mailto:vicky.kak@gmail.com
>>
>> <ma...@gmail.com>
>>
>> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>>>
>>
>> Hi Gurkan,
>>
>> Thanks for the details.
>> I have been building the OWB from the trunk and
>> followed the
>> readme which is based on M3, the M4 specific readme
>> is not yet
>> available.
>>
>> I did understand that we need the place the common jars
>> specific
>> to jsr330/jsr299 in the $TOMCAT/lib and configure the
>> openejb in
>> tomcat.
>> After this we should be able to deploy the
>> ejb-sample.war
>> in the
>> $TOMCAT/webapps, pretty simple!
>>
>> Is there anything else I should look from configuration
>> perspective?
>>
>> Here is what I see from the Tomcat console currently
>>
>>
>> ***********************************************************************************************
>>
>> INFO: Deploying web application archive ejb-sample.war
>> context path = /ejb-sample
>> 23 Feb, 2010 3:41:09 PM
>> org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> 23 Feb, 2010 3:41:09 PM
>> org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/ejb-sample] startup failed due to
>> previous errors
>> 23 Feb, 2010 3:41:09 PM
>> org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance
>> has been
>> stopped already. Could not load
>> org/apache/openjpa/util/ImplHelper.class. The eventual
>> following
>> stack trace is caused by an error thrown for debugging
>> purposes as
>> well as to attempt to terminate the thread which
>> caused the
>> illegal access, and has no functional impact.
>> 23 Feb, 2010 3:41:09 PM
>> org.apache.catalina.loader.WebappClassLoader
>> findResourceInternal
>> INFO: Illegal access: this web application instance
>> has been
>> stopped already. Could not load
>> org/apache/openjpa/util/ImplHelper$1.class. The
>> eventual
>> following stack trace is caused by an error thrown for
>> debugging
>> purposes as well as to attempt to terminate the
>> thread which
>> caused the illegal access, and has no functional impact.
>> 23 Feb, 2010 3:41:09 PM
>> org.apache.catalina.startup.HostConfig
>> deployDirectory
>>
>> ***********************************************************************************************
>>
>>
>> Regards,
>> Vicky
>> Gurkan Erdogdu wrote:
>>
>> Hello Vicky;
>>
>> Some configuration file names are changed.
>> README_M3 is a
>> little bit old with respect to
>> openwebbeans.properties
>> content. We have a plan to release M4 this week
>> that it
>> contains lots of bug fixes. Therefore instead of
>> using M3
>> artifacts, until M4 releases, checkout source
>> from SVN and
>> build it yourself.
>>
>> >>> "atinject-api-1.0.0-incubating-M3.jar....
>> at-inject.(JSR-330 API).jar and cdi.jar (JSR-299
>> API)
>> projects
>> have moved to geronimo specs. You can download
>> it from
>>
>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/
>> manually or if you use "maven", you can define
>> dependencies to
>> them looking at pom content fro there.
>>
>> Locations :
>> ----------------------------
>>
>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-atinject_1.0_spec/
>>
>> http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jcdi_1.0_spec/
>>
>> You have to add those jars into TOMCAT lib folder.
>>
>> >>>WEB-INF/lib, I don't understand what does
>> this mean,
>> it is
>> not clear.
>> It means that some of the libraries (jars) that OWB
>> needs are
>> not contained in Tomcat. You have to manually
>> add those
>> jars
>> into your application WEB-INF/lib. For example,
>> if you
>> create
>> a JSF application, add JSF jars into WEB-INF/lib
>> with
>> OWB JSF
>> plugin. Another example is that OWB needes
>> validator.jar.
>>
>> Generally you have to add implementation
>> jar(webbeans-impl)
>> and its dependencies to application WEB-INF/lib
>> except
>> atinject.jar and cdi.jar. webbeans-impl jar must be
>> reside in
>> WEB-INF/lib folder of the application, not in
>> TOMCAT/lib folder.
>>
>> For Configuration:
>> ------------------------
>> openwebbeans-default.properties does not use EJB
>> meta-data
>> discovery as default. To use EJB discovery you
>> have to
>> tweak
>> some properties. Look at
>>
>> http://svn.apache.org/repos/asf/openwebbeans/trunk/samples/ejb-sample/src/main/resources/META-INF/openwebbeans/openwebbeans.properties
>> .
>>
>> Moreover, README_M3 talked about resource plugin
>> that was
>> responsibe for injecting Java EE resources into
>> bean (For
>> example, EntityManager, DataSource etc.). There
>> is no
>> ResourcePlugin in current codebase. It has removed.
>> Now, there
>> is a ResourceInjectionService. You have to
>> configure this
>> service in openwebbeans.properties to use
>> OpenEJB resource
>> injection service instead of default. (Look at
>> ejb-sample
>> openwebbeans.properties).
>>
>> Currently OWB looks for
>> META-INF/openwebbeans/openwebbeans.properties
>> files to run
>> over default configuration properties. If you have a
>> JAR that
>> is located in Tomcat LIB folder that contains
>> META-INF/openwebbeans/openwebbeans.properties
>> file, it
>> is read
>> by OWB.
>>
>> One more thing, OWB uses EJB interceptor
>> (OpenWebBeansEJBInterceptor) to inject
>> dependencies to EJB
>> beans. Therefore your every session bean must
>> have this
>> interceptor. Again look at samples.
>>
>> Please look at ejb-sample application for current
>> configuration.
>>
>> You can also join us on freenode channel on #IRC
>> with
>> #openwebbeans channel.
>>
>> Thanks;
>>
>> --Gurkan
>>
>>
>> 2010/2/23 Vicky Kak <vicky.kak@gmail.com
>> <ma...@gmail.com>
>> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>> <mailto:vicky.kak@gmail.com
>> <ma...@gmail.com>
>> <mailto:vicky.kak@gmail.com
>> <ma...@gmail.com>>> <mailto:vicky.kak@gmail.com
>>
>> <ma...@gmail.com>
>>
>> <mailto:vicky.kak@gmail.com <ma...@gmail.com>>
>>
>> <mailto:vicky.kak@gmail.com
>> <ma...@gmail.com> <mailto:vicky.kak@gmail.com
>> <ma...@gmail.com>>>>>
>>
>>
>>
>> Vicky Kak wrote:
>>
>> Hi Folks,
>>
>> I am in process of testing openwebbean with
>> Tomcat/openejb, I
>> did read the related section from the
>> following docs
>>
>> https://svn.apache.org/repos/asf/openwebbeans/trunk/readme/README_M3.txt
>>
>> Here is the section which explains it
>>
>> ********************************************************************************************
>>
>> EJB Support via Embeddable OpenEJB
>> Container in
>> Tomcat 6.X
>> ---------------------------------------------
>>
>> Configuration Steps:
>> --------------------------------------------
>> 1* Download Tomcat 6.X version
>> 2* Configure OpenEJB. Look at URL
>> http://openejb.apache.org/tomcat.html for
>> installation.
>> 3* Copy
>> "atinject-api-1.0.0-incubating-M3.jar" to
>> Tomcat /lib
>> folder.
>> 4* Copy
>> "openwebbeans-api-1.0.0-incubating-M3.jar"
>> 5* Look at ejb-sample.war for "WEB-INF/lib"
>> libraries to
>> develop custom application.
>> You can also look at a source of the
>> project.
>>
>> ********************************************************************************************
>>
>> "atinject-api-1.0.0-incubating-M3.jar"
>> does not get
>> generated
>> at atinject-tck location, I was expecting
>> it to be
>> there. It
>> is not there, I did pull the CDI api jar and
>> dropped it
>> in the
>> $TOMCAT_HOME/lib.
>>
>> "openwebbeans-api-1.0.0-incubating-M3.jar"
>> should also be
>> copied to the $TOMCAT/lib, this should be
>> pointed in the
>> instructions too.
>>
>> >>Look at ejb-sample.war for "WEB-INF/lib"
>> libraries to
>> develop custom application.
>> I don't understand what does this mean, it is
>> not clear.
>>
>>
>>
>> ********************************************************************************************
>>
>> How to Develop EJB Applications
>> ---------------------------------------------
>> 1* Add "META-INF/openwebbeans.properties"
>> into your
>> application classpath.
>> 2* Add
>>
>> "org.apache.webbeans.spi.deployer.UseEjbMetaDataDiscoveryService=true"
>> to use EJB functionality.
>> So OWB container looks for EJBs.
>> 3* Add
>>
>> "org.apache.webbeans.resource.spi.ResourceService=org.apache.webbeans.spi.ee.openejb.resource.OpenEjbResourceServiceImpl"
>> to
>> use OpenEJB Resource injections.
>> 4* Add "openwebbeans-ejb",
>> "openwebbeans-resource" and
>> "openwebbeans-geronimo" plugins into your web
>> application
>> classpath.
>> It adds EJB, Resource and Open EJB
>> Resource plugins
>> into your
>> application.
>> 5* If you want to use other plugins, add
>> respective plugins
>> into your application classpath. For
>> example, if you
>> wish to use
>> JSF framework, you add "openwebbeans-jsf"
>> plugin.
>> 6* Add OWB related interceptor into your EJB
>> Beans. This is
>> called
>>
>> "org.apache.webbeans.ejb.interceptor.OpenWebBeansEjbInterceptor"
>> This is needed for OWB injections.
>> 7* Update your application's "web.xml" to add
>> OWB specific
>> configuration.
>>
>> ---------------------------------------------
>>
>> ********************************************************************************************
>>
>>
>> Why can't we have this
>> openwebbeans.properties
>> as a part of
>> the jars which we have dropped in
>> $TOMCAT/lib, it is
>> not good
>> idea to configure the classpath for the
>> Tomcat
>> and then
>> start.
>> I see the default properties file being here
>>
>> https://svn.apache.org/repos/asf/openwebbeans/trunk/webbeans-impl/src/main/resources/META-INF/openwebbeans/openwebbeans-default.properties
>>
>>
>> This does not contain the property values as
>> mentioned
>> in "How
>> to Develop EJB Applications", I was
>> thinking of
>> taking the
>> same file setting it to the Tomcat CP.
>>
>> I have been able to configure the openEJB
>> for Tomcat
>> and have
>> not yet followed the instructions to set the
>> META-INF/openwebbeans.properties and hence
>> getting this
>> error
>>
>> *******************************************************************************
>>
>> context path = /ejb-sample
>> 23 Feb, 2010 1:33:28 PM
>> org.apache.catalina.core.StandardContext
>> start
>> SEVERE: Error listenerStart
>>
>> *******************************************************************************
>>
>>
>> Before digging more into the code and finding
>> the details I
>> would like to know more from the community.
>>
>> Regards,
>> Vicky
>>
>>
>>
>>
>>
>>
>> -- Gurkan Erdogdu
>> http://gurkanerdogdu.blogspot.com
>>
>>
>>
>>
>>
>> -- Gurkan Erdogdu
>> http://gurkanerdogdu.blogspot.com
>>
>>
>>
>>
>>
>> -- Gurkan Erdogdu
>> http://gurkanerdogdu.blogspot.com
>>
>>
>>
>>
>>
>> --
>> Gurkan Erdogdu
>> http://gurkanerdogdu.blogspot.com
>>
>
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com