• 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

Compile and Deploy On WebLogic 7.0

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to All

How to compile,create jar file and deploy the Session Bean on Weblogic 7.0 File Path on my drive is

F:\Tushar\EJB\Example\ejb-jar.xml
F:\Tushar\EJB\Example\weblogic-ejb-jar.xml
F:\Tushar\EJB\Example\Hello.java
F:\Tushar\EJB\Example\HelloBean.java
F:\Tushar\EJB\Example\HelloClient.java
F:\Tushar\EJB\Example\HelloHome.java

Thanks in Advance

Tushar



 
Ranch Hand
Posts: 278
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer to Weblogic Documents. All the steps are clearly mentioned.
 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
U can go to WebLogicBuilder tool then u can select the package folder and u can deploy ....
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,

Inside your root folder you create one META-INF Folder and copy the xml files in to that.There is no need to keep the .xml files inside your root folder. The root folder i am telling is the folder which containing the .java files.

1.go to the folder c:\bea\weblogic700\server\bin;
2.inside that execute the batch file to set the path. type setwlsenv.
3.go to your folder in that same command prompt. compile all your java files using javac *.java.
4.creating jar file using the following command: jar cvf hello.jar META-INF *.class
5.open another command prompt and go to the bin folder and type startwls.
6.it will ask username & password, default user&pass is weblogic,weblogic.
7.If there is no config.xml then it will ask u that u want to create one new config.xml, you press 'y' and reenter the password the server comes under runnable mode.
8.open internet explorer and type http://localhost:7001/console
9.press deployments and press create new EJB module and press upload your files option in second frame and select your folder and select the jar file which you created yearlier.
10.press upload button after that in the second frame scrolldown the page, in that list your will also be there select that and it will go to next frame, there u just press the button deploy. In that deployment screen u press the right button in the mouse and press refresh and it will show you the message redeploy, then u can know that ur jar was deployed in to the server.
11.Go to the dos prompt which u opened first there u can run your client program.
12. If u want to shut down the server goto the console mode select servers in the first frame.click the myserver in the first frame itselt. It will ask u the question graceful shutdown the server and press that. Your server will be shut down.

This is the process.You execute in the manner that what it wrote above.And one more thing if it wont take the meta-inf folder means u search for already given meta-inf folder. I think it will be in the samples folder. copy that folder and paste it in to your folder. Replace the xml file. If u had any problem send mail to rdhurga_4881@yahoo.co.in
 
Everybody's invited. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic