Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- EJB bean not started

- EJB bean not started

2007-07-13       - By miloslav.vlach

 Back
I have problem with @(protected) bean:

Iam trying to instantiate Stateful bean but the bean couldn't instantiate. When
I create @(protected) bean all works. But @(protected) not working.


 | import javax.ejb.Local;
 |
 | @(protected)
 | public interface Test {
 |  
 |   public void clickMe();
 |   public void destroy();
 | }
 |


 | @(protected)("testAction")
 | @(protected)
 | @(protected)(ScopeType.SESSION)
 | public class TestAction implements Test {
 |    
 |     @(protected)
 |     Log log;
 |    
 |     @(protected)(type=PersistenceContextType.EXTENDED)              
                 
 |     private EntityManager em;
 |    
 |     public void clickMe() {
 |       log.info("clicked");
 |     }
 |    
 |     @(protected) @(protected)                                                      
             
 |     public void destroy() {}
 | }
 |


 | Caused by: org.jboss.seam.InstantiationException: Could not instantiate
Seam component: testAction
 |         at org.jboss.seam.Component.newInstance(Component.java:1740)
 |         at org.jboss.seam.Component.getInstance(Component.java:1643)
 |         at org.jboss.seam.Component.getInstance(Component.java:1610)
 |         at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable
(SeamVariableResolver.java:53)
 |         at org.apache.myfaces.config.LastVariableResolverInChain
.resolveVariable(LastVariableResolverInChain.java:42)
 |         at com.sun.facelets.el.LegacyELContext Source code of com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue
(LegacyELContext.java:134)
 |         at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:73)
 |         at com.sun.el.parser.AstValue.getTarget(AstValue.java:67)
 |         at com.sun.el.parser.AstValue.invoke(AstValue.java:170)
 |         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java
:286)
 |         at com.sun.facelets.el.TagMethodExpression Source code of com.sun.facelets.el.TagMethodExpression
(TagMethodExpression.java:68)
 |         at com.sun.facelets.el.LegacyMethodBinding Source code of com.sun.facelets.el.LegacyMethodBinding
(LegacyMethodBinding.java:69)
 |         at org.apache.myfaces.application.ActionListenerImpl Source code of org.apache.myfaces.application.ActionListenerImpl
(ActionListenerImpl.java:63)
 |         ... 42 more
 | Caused by: javax.naming.NameNotFoundException Source code of javax.naming.NameNotFoundException: TestAction not bound
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:529)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:537)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:543)
 |         at org.jnp.server.NamingServer Source code of org.jnp.server.NamingServer(NamingServer.java:267)
 |         at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:626)
 |         at org.jnp.interfaces.NamingContext Source code of org.jnp.interfaces.NamingContext(NamingContext.java:588)
 |         at javax.naming.InitialContext Source code of javax.naming.InitialContext(InitialContext.java:351)
 |         at org.jboss.seam.Component.instantiateSessionBean(Component.java
:1107)
 |         at org.jboss.seam.Component.instantiate(Component.java:1093)
 |         at org.jboss.seam.Component.newInstance(Component.java:1736)
 |         ... 54 more
 |


 | 18:46:32,765 INFO  [MCKernelAbstraction] installing bean: persistence.units
:jar=ims.jar,unitName=ses with dependencies:
 | 18:46:32,781 INFO  [MCKernelAbstraction]        AbstractDependencyMetaData
@(protected){dependency=ses}
 | 18:46:32,843 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=ims,name=AttachementViewAction,service=EJB3 with dependencies:
 | 18:46:33,203 INFO  [EJBContainer] STARTED EJB: cz.bpsolutions.ims.services
.attachement.AttachementViewAction ejbName: AttachementViewAction
 | 18:46:33,234 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=ims,name=RegisterAction,service=EJB3 with dependencies:
 | 18:46:33,234 INFO  [MCKernelAbstraction]        AbstractDependencyMetaData
@(protected){dependency=persistence.units:jar=ims.jar,unitName=ses}
 | 18:46:33,250 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=ims,name=TestAction,service=EJB3 with dependencies:
 | 18:46:33,250 INFO  [MCKernelAbstraction]        AbstractDependencyMetaData
@(protected){dependency=persistence.units:jar=ims.jar,unitName=ses}
 | 18:46:33,250 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=ims,name=InvoiceListAction,service=EJB3 with dependencies:
 | 18:46:33,250 INFO  [MCKernelAbstraction]        AbstractDependencyMetaData
@(protected){dependency=persistence.units:jar=ims.jar,unitName=ses}
 | 18:46:33,281 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=jboss-seam,name=Dispatcher,service=EJB3 with dependencies:
 | 18:46:33,312 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.core
.Dispatcher ejbName: Dispatcher
 | 18:46:33,328 INFO  [MCKernelAbstraction] installing bean: jboss.j2ee:jar
=jboss-seam,name=TransactionListener,service=EJB3 with dependencies:
 | 18:46:33,390 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.core
.TransactionListener ejbName: TransactionListener
 | 18:46:33,406 INFO  [Lifecycle] starting up: org.jboss.seam.ui.graphicImage
.dynamicImageResource
 |

Know somebody how to solve this ?

M.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4064084#4064084

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4064084
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.