Help coderanch get a
new server
by contributing to the fundraiser
  • 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

Sun ONE Application Server 7 Deployment instruction for Advisor Example in Chapter 1

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, here we go, I finally got that working. However, I still don't know how to get a generated Stub-jar.
Any ways, for those that would like to play around with Sun ONE Application Server 7: Here we go:
0) Follow all the steps in HF EJB, so that you know your app is definitely working!!! You have the AdviceApp.ear from the RI.
1) unjar it

From now on you need one new Deployment Descriptor (DD) [sun-ejb-jar.xml] and modify an existing one [application.xml]
2) We need to have a new Sun ONE server-specific deployment descriptor:
Name: sun-ejb-jar.xml
Location: in the same directory as the normal DD ejb-jar.xml (META-INF)
Here:

3) We need to make sure that application.xml
Name: application.xml
Location: directory under META-INF in the ear file [application.xml] (META-INF)
Here:

4) Deploy it using the Administration Tool in the Browser. Default:
http://localhost:4848
However, I still don't know how to generate those Client stub. Well, I guess, stay tuned or may be somebody has an answer soon.
Thanks,
John
[ November 23, 2003: Message edited by: John Liang ]
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
go to the app deployed directory...you will see it. For windows, the default would be:
C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps
 
John Liang
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Thanks, that's great help. I have found it, but:


javax.naming.CommunicationException: Can't find SerialContextProvider
at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.jav
a:63)
at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:120
)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviceClient.go(AdviceClient.java:16)
at AdviceClient.main(AdviceClient.java:9)


So ... ... any idea? I have checked out the javasoft site, they said that's a problem with JDK ...
Thanks in advance,
John
 
and POOF! You're gone! But look, this tiny ad is still here:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic