• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question about Resin And WebLogic

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem Statement:
1.I write HelloWorld EJB and deploy it on my WebLogic Server successful.
2.Open the resin.conf file in the directory of %RESIN_HOME%/conf/resin.conf and add those codes
<jndi-link>
<jndi-name>java:comp/env/ejb/HelloSession</jndi-name>
<jndi-factory>weblogic.jndi.WLInitialContextFactory</jndi-factory>
<init-param java.naming.provider.url="t3://10.132.4.230:7001"/>
<jndi-lookup>HelloSession</jndi-lookup>
</jndi-link>
3.Write two same WebApp which has a servlet(named helloservlet) to invoke the ejb on the WebLogic Server, then put them in the directory of %RESIN_HOME%/webapps/
4.As the result, I can invoke the servlet successful in one WebApp, but if I invoke another one the resin will prompt "ClassCastException" error
Who can tell me how to resovle it and which one invoke the error WebLogic Server or Resin?
If you can understand what I said I will email the codes to you.
Thanks
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have your EJB interfaces packaged with the Web Application deployed to Resin? Also you need WebLogic's Jndi classes available to Resin. I would just put the whole weblogic.jar on Resin CLASSPATH.
More importantly... why are you using an external Web Container when WebLogic comes packaged with a perfectly good one. Please don't say you are separating the Web and Ejb Tiers because that is the best way to handicap performance of your application.
 
Xiuyuan Niu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.I have put the those jar files in the classspath of Resin, but it didn't work well.
2.The reason that i use Resin is that I wanna put a fire wall between Web-Tier and Application-Tier for security issues.
3.If I put the EJB client jars in the Resin classpath, it will work well. But my client didn't agree with it and they said they wanna implements hot deploy.
SO, I wanna demarcate the boundary of issues, WebLogic or Resin?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic