Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Cannot create Local Session Bean in JBoss 4.0.3 ?

 
Ranch Hand
Posts: 219
Firefox Browser Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Why i cannot create Local Session Bean in JBoss 4.0.3? The console displays this exception messages:

22:28:12,461 INFO [CEJBHomeGetter] _claClazz.getName() ==> org.hmulyo.jpetstore
.catalog.service.sessionBean.ISbCatalogLocalHome
22:28:12,471 INFO [STDOUT] java.lang.reflect.InvocationTargetException
22:28:12,471 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
22:28:12,471 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
22:28:12,471 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
22:28:12,471 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
24)
22:28:12,471 INFO [STDOUT] at org.hmulyo.component.service.helper.CServiceL
ocator.locateSessionBean(CServiceLocator.java:20)
22:28:12,471 INFO [STDOUT] at org.hmulyo.jpetstore.catalog.presentation.bus
inessDelegate.CBdeCatalog.searchCategories(CBdeCatalog.java:23)
22:28:12,471 INFO [STDOUT] at org.hmulyo.jpetstore.catalog.presentation.jsf
.CPbeCategory.searchCategories(CPbeCategory.java:70)
22:28:12,471 INFO [STDOUT] at org.hmulyo.jpetstore.catalog.presentation.jsf
.CPbeCategory.searchAllFishProducts(CPbeCategory.java:52)
22:28:12,471 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
22:28:12,502 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
22:28:12,502 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
22:28:12,502 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3
24)
22:28:12,502 INFO [STDOUT] at org.apache.myfaces.el.MethodBindingImpl.invok
e(MethodBindingImpl.java:129)
22:28:12,502 INFO [STDOUT] at org.apache.myfaces.application.ActionListener
Impl.processAction(ActionListenerImpl.java:63)
22:28:12,502 INFO [STDOUT] at javax.faces.component.UICommand.broadcast(UIC
ommand.java:106)
22:28:12,502 INFO [STDOUT] at javax.faces.component.UIViewRoot._broadcastFo
rPhase(UIViewRoot.java:90)
22:28:12,502 INFO [STDOUT] at javax.faces.component.UIViewRoot.processAppli
cation(UIViewRoot.java:164)
22:28:12,502 INFO [STDOUT] at org.apache.myfaces.lifecycle.LifecycleImpl.in
vokeApplication(LifecycleImpl.java:271)
22:28:12,502 INFO [STDOUT] at org.apache.myfaces.lifecycle.LifecycleImpl.ex
ecute(LifecycleImpl.java:86)
22:28:12,502 INFO [STDOUT] at javax.faces.webapp.FacesServlet.service(Faces
Servlet.java:94)
22:28:12,502 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
22:28:12,502 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
22:28:12,512 INFO [STDOUT] at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:81)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:213)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:178)
22:28:12,512 INFO [STDOUT] at org.jboss.web.tomcat.security.CustomPrincipal
Valve.invoke(CustomPrincipalValve.java:39)
22:28:12,512 INFO [STDOUT] at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:159)
22:28:12,512 INFO [STDOUT] at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:59)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:126)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:105)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107)
22:28:12,512 INFO [STDOUT] at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:148)
22:28:12,512 INFO [STDOUT] at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:856)
22:28:12,522 INFO [STDOUT] at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.processConnection(Http11Protocol.java:744)
22:28:12,522 INFO [STDOUT] at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
ocessSocket(PoolTcpEndpoint.java:527)
22:28:12,522 INFO [STDOUT] at org.apache.tomcat.util.net.MasterSlaveWorkerT
hread.run(MasterSlaveWorkerThread.java:112)
22:28:12,522 INFO [STDOUT] at java.lang.Thread.run(Thread.java:534)
22:28:12,522 INFO [STDOUT] Caused by: java.lang.NullPointerException
22:28:12,522 INFO [STDOUT] at org.jboss.ejb.plugins.local.LocalHomeProxy.in
voke(LocalHomeProxy.java:118)
22:28:12,522 INFO [STDOUT] at $Proxy66.create(Unknown Source)
22:28:12,522 INFO [STDOUT] ... 39 more

The exception happens when the Local Home interface calls the create() method.
But then i moved my application to JBoss 3.2.7 and it's fine. So, is there any bugs in JBoss 4.0.3?
[ December 31, 2005: Message edited by: Hendy Setyo Mulyo ]
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you declared the local interface in jboss.xml and checked that ejb-jar.xml is definitely pointing to the local interfaces and the interfaces extend EJBLocalHomeand EJBLocalObject
 
Why is the word "abbreviation" so long? And this ad is so short?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic