[EJB 3.0] - No container configured with name 'Stateless Bean''
by nanda_kishore
Hi i am trying to deploy ejb 3 application un jboss 5.0.0 Beta4. i am getting this error. I removed messaging files under deploy because it is trying to connect messaging services. can any one tell me how to over come this error and how to disable messaging service.
12:18:53,452 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=iBlue' to JNDI name 'java:iBlue'
| 12:18:53,520 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
| 12:18:53,601 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/iBlue.ear state=PostClassLoader mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying iBlue-ejb.jar: No container configured with name 'Stateless Bean''
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.RuntimeException: No container configured with name 'Stateless Bean''
| at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:247)
| at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:493)
| at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:143)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:528)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:488)
| at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:470)
| at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:436)
| at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:378)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:145)
| ... 22 more
| 12:18:53,733 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| 12:18:53,894 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
| *** CONTEXTS IN ERROR: Name -> Error12:18:53,452 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=iBlue' to JNDI name 'java:iBlue'
| 12:18:53,520 INFO [RARDeployment] Required license terms exist, view vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
| 12:18:53,601 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/var/jboss-5.0.0.Beta4/server/default/deploy/iBlue.ear state=PostClassLoader mode=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error deploying iBlue-ejb.jar: No container configured with name 'Stateless Bean''
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.RuntimeException: No container configured with name 'Stateless Bean''
| at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:247)
| at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:493)
| at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:143)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:528)
| at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:488)
| at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:470)
| at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:436)
| at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:378)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:145)
| ... 22 more
| 12:18:53,733 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
| 12:18:53,894 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
| *** CONTEXTS IN ERROR: Name -> Error
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186144#4186144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186144
16 years, 2 months
build jbossweb
by Frank Liu
Hi there,
I downloaded jboss 4.2.3 src and tried to rebuild the jbossweb.jar from source.
It seems the jboss 4.2.3 src tarball doesn't have the jbossweb src. It
looks like the jbossweb.jar in jboss 4.2.3 is 2.0.1.GA, so I
downloaded the http://anonsvn.jboss.org/repos/jbossweb/tags/JBOSSWEB_2_0_1_GA
but a deep look seems to indicate this is NOT the right source file.
Anybody know where I can find the right jbossweb source and build
scripts used by jboss 4.2.3?
BTW, what I am trying to do is to apply the patch from
https://jira.jboss.org/jira/browse/JBPAPP-363 and create a new
jbossweb.jar. I was hoping the latest jboss 4.2.3 would have already
included this patch, but a simple test shows no.
Thanks!
Frank
16 years, 2 months
[JBoss Portal] - What am I supposed to use instead of LayoutStrategy
by elacazedieu
Hi,
I'm currently using Portal 2.6.7, and I need to use a custom window state to provide a "single portlet content" view for popups and printing.
I managed to do that by using an undocumented feature (specifying my own PortalLayout implementation in the layouts.xml file)
I think that layout strategies could have fullfiled my needs, but they are not available in 2.6.x anymore (they were in 2.4.x)
What would be the "correct waty" to do what I did?
FYI, I just copied the JSPLayout code in my own class, and adapted it to do the following :
- If a Window has a WindowState that starts with "solo" or equals maximized, use it to get the correct JSP uri from the PortalLayoutMetaData,
- Do the same as what is done for maximized mode (ie, display only the selected window, in a region called like the window state name)
This works quite fine, but I'm not very happy to use something undocumented...
And by the way, they are still some references to Strategies n the 2.6.7 reference guide.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186142#4186142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186142
16 years, 2 months
[JBoss Messaging] - How to configure JMSAppender in JBoss?
by prpo
Hello All,
I'm trying to configure JMSAppender in JBoss 4.2.3
I modified the root jboss-log4j.xml (at server/default/conf) to enable the appender.
| <appender name="TESTLOGGINGJMS" class="org.apache.log4j.net.JMSAppender">
| <param name="Threshold" value="ERROR"/>
| <param name="ProviderURL" value="localhost" />
| <param name="InitialContextFactoryName" value="org.jnp.interfaces.NamingContextFactory" />
| <param name="URLPkgPrefixes" value="org.jboss.naming rg.jnp.interfaces" />
| <param name="TopicConnectionFactoryBindingName" value="TopicConnectionFactory"/>
| <param name="TopicBindingName" value="topic/loggingTopic"/>
| </appender>
|
I add my own logger to the same file as
| <logger name="com.prpo" additivity="false">
| <appender-ref ref="TESTLOGGINGJMS" />
| </logger>
|
When I start the jboss server, looks like the server is waiting for the topic to be created.
And throws an exception saying
| 14:26:34,627 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
| log4j:ERROR Error while activating options for appender named [TESTLOGGINGJMS].
| javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused]]]
|
|
This is because the JMS topic is not created yet. I create the topic via a -service.xml file using MBeans.
How can I delay initializing the log4j appender until the topic is created?
thanks
Pras
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186140#4186140
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186140
16 years, 2 months