This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Struts and the fly likes a CMP problem under jb+wls,struts..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "a CMP problem under jb+wls,struts..... " Watch "a CMP problem under jb+wls,struts..... " New topic

a CMP problem under jb+wls,struts.....

yu lei

Joined: Sep 19, 2003
Posts: 5
deploy on jbuilder+weblogic+struts:
i built a project(named untitled2):
creat a CMP(name as News);
creat a webapplication(name as aperapp) with struts framework;
creat Action(name as aperaction), a part of which source is follow:
javax.naming.Context context = new javax.naming.InitialContext();
context.lookup("untitled2.NewsHome");//I think that " untitled2.NewsHome " is wrong .but what is right,help me!!!
by the way:
the deploy and run is all right,but the follow errors:
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: While trying to look up /app/ejb/News.jar#News/local-home in /app/webapp/paperapp/26723714.; remaining name '/app/ejb/News/jar#News/local-home'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(
at weblogic.jndi.internal.ApplicationNamingNode.lookup(
I agree. Here's the link:
subject: a CMP problem under jb+wls,struts.....
It's not a secret anymore!