• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

how to deploy jsp,servlets..etc

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i used to deploy any web application in folder webapps in tomcat it is straightward but in websephere 6.9 network version it is complex..
may anyone give me help :roll: :roll:
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one help
 
author & internet detective
Posts: 42134
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hani,
I've never deployed a web application to WebSphere, just an EAR. Have you looked at the IBM redbooks? Do you have a more specific question?
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Complex? Don't say the word complex.

With Tomcat you just drop a war into the right folder, and it magically deploys. With WebSPhere, it's not that simple, but don't say it's complex.

With WebSphere, you have to tell the tool about your war. Simply go to the link to "deploy applicatoin" and browse to your war file. You will be asked for a context root, which is defined in the application.xml file of an ear, so since you're deploying a war, it's not pre-defined. Then, you just have to confirm a few things, and Bob's your uncle.

Of course, you're doing this through the WebSphere Admin Console. Maybe I should have mentioned that. I think the URL is localhost:9090/admin, assuming you don't have security turned on. And the deployment manager, or the 'node agent' for server1 must be started if you're not running in a network deployed environment. The admin console is itself a J2EE application, so the deployment manager or server1 must be started for the admin console to come up.

Now having said all this, you can deploy using a JACL script as well, but that's probably way far ahead in your future. This is a good link to scare you though.

http://www.technicalfacilitation.com/scripting/installEar.jacl

I've got a multimedia tutorial on deploying a J2EE application to WAS 5, called "Lock and Load Deploy"

http://www.technicalfacilitation.com/examscam/get.php?link=../was/tutorials

This is as complex as deploying an EAR to WAS gets, as I set up JDBC drivers, configure message queues, deploy CMP beans, and send it all to the server. But with a war, you really only have to point to the war and click the finish button. Nevertheless, watching even the first minute of the tutorial will give you a pretty clear idea on how to do this with WebSphere 6. The screens are practically the same, although the theme of the admin console changed a bit between 5 and 6.

If you are still having problems, post another message. I'll check back later today. Include the WAS version you are running, and any details about the war that might make it more complex than just a vanilla JSP application.

Oh, one other thing. In the bin directory of WAS, there is a utility called serverStatus. Issue the command serverStatus -all to ensure that a server, either server1 or the dmgr is running. If not, you may need to issue a startManager command, or startServer server1 command. It depends on how your WAS architecture is set up.

Cheers!

-Cameron McKenzie
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Kameron McKenzie ,
and any Helper Developer.

my problem is: i cant getting started with Websephere 6.0 in linux red hat
Because of
1)i dont konw how to connect the web application with DB i see a lot of tutorials on that...But no one give me the full screen of that)
for example when i go to Administrative console & go to JDBC providers

2)new to DB2 IBM2(i tried to trace a tutorial for deploy websphereBank) as you see No tutorial for simple web application or something like Hello Websphere !!!
3) i want so simple tutorial to deploy even one jsp in .ear file .
Anyone make my mission to become true

Best Wishes
SCJP1.4
SCBCD 1.4
SCWCD 1.4
Hani Ibrahim
 
Cameron Wallace McKenzie
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just a few questions before we bring down a bank:

Is this your own version of WebSphere that you're running on your own Linux box, or is this a test server that a bunch of people are using? I don't want to give you any directions that might ruin someone else's environment.

Can you bring up the admin console for WebSphere? You can't do much without the admin console.

Can you start the deployment manager? Is the server active when you issue a serverStatus -all command? What port is WebSphere running on? a netstat -a should tell you this.

You need to know if WebSphere is even running.
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Kameron McKenzie ,
and any Helper Developer.

Let me answer your questions Sir:
1)

Is this your own version of WebSphere that you're running on your own Linux box, or is this a test server that a bunch of people are using?


The Answer :i use :Websphere Application Server Network Deployment Bersion 6.0
2)

Can you bring up the admin console for WebSphere? You can't do much without the admin console.


The Answer is :Yes i open the url:
http://localhost:9060/ibm/console
i can login and see the home page wich contains for example Application server,jdbc providers etc...

i hope i answered all your questions:
if you would make dummy jsp file & put it into war file & walk with me step by step from A to Z that allowed me to applied them i will be great thankful to you...

Best Wishes,
Hani Younis
SCJP 1.4
SCBCD 1.3
SCWCD 1.4
 
Cameron Wallace McKenzie
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, you've got the deployment manager installed. Do you have any "Base" server profiles created? The deployment manager itself can't run J2EE applications, but instead, it controls base nodes that do.

Do you have a default profile, or server1 profile, federated into the Network Deployment Manager domain?

I had a macromedia presentation on this, but I deleted it by accident. Now I'm kicking myself.

-Cameron
 
hani Ibrahim
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Kameron McKenzie ,
and any Helper Developer,

YES YES YES..i have created profile and inside it create server1
no problem in these things
But "What Next" is the problem such as packaging and DEPLOYING and please please please be So simple

Best Wishes,
Hani Younis
SCJP 1.4
SCBCD 1.3
SCWCD 1.4
 
reply
    Bookmark Topic Watch Topic
  • New Topic