Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

Struts 2.x.x & EJB 3.1 on Glassfish  RSS feed

 
Kevin P Smith
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys,

Just wondering if anyone has managed to get a Struts 2 (2.1.6) and EJB 3.1 app working on Sun's Glassfish (v3) AS?

I have seen the thread about the plugin for JBoss, but was wondering if anyone had managed it on Glassfish?

I have tried just Injecting a EJB bean into a Struts Action but I get a -[]i NullPointerException[/i]

I found another thread on this forum where someone said use somethink like this:



But I just get a:
javax.naming.NamingException: Lookup failed for 'com.myproject.bear.session.ITestSessionBean' in SerialContext [Root exception is javax.naming.NameNotFoundException: com.myproject.bear.session.ITestSessionBean not found]|#]

Cheers in advance

KS
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate Post. Please don't post the same thing in different forums...
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!