Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

webapp deployment question - help!

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read the whole message before going back!
Does anyone know of any plugins for Netbeans/Forte or Eclipse to deploy webapps to WebLogic server 6.1 or higher? I've been using Forte with an iPlanet integration plugin that works fairly well, but it looks like a switch to WebLogic may be in the works.
Or am I barking up the wrong tree? I only have experience with Resin and iPlanet. iPlanet requires .war files and an extra ias-web.xml descriptor. But Resin only needs a directory and a web.xml and .jsp/.java source files for a default setup (edit resin.conf for special setup) :
c:\Resin\webapps\<webappname>*.jsp
c:\Resin\webapps\<webappname>\WEB-INF\web.xml
c:\Resin\webapps\<webappname>\WEB-INF\classes\*.java
Is WebLogic more like Resin, or more like iPlanet? Also, Resin auto-detects changes to resin.conf, web.xml, .jsp/.java source and recompiles/reconfigures automatically, another thing iPlanet can't/won't do. If anyone thinks that I'm biased in favor of Resin, well.. I am!
Help??!?!??
 
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From your description, WebLogic is more like Resin, which means they both use a standard J2EE directory structure.
WebLogic uses the following directory structrue:
WebApplicationName/
Place your static files such as HTML files and JSP files in this directory. This directory is the document root of your Web Application.
/WEB-INF/web.xml
The Web Application deployment descriptor that configures the Web Application.
/WEB-INF/classes
Contains server-side classes such as HTTP servlets and utility classes.
/WEB-INF/lib
Contains .jar files used by the Web Application, including JSP tag libraries.
Applications can be auto-deployed when in development mode, otherwise you have to use the BEA WebLogic Console.
For more documentation than you would ever read, check out the online BEA documentation at:
BEA e-docs
[ May 14, 2002: Message edited by: Michael Pearson ]
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iPlanet uses standard J2EE directory structure, too, as defined in the spec. The point is that iPlanet doesn't have a place you can put the stuff - you must use the deployment tool to deploy the application. Resin allows you to just create the directories and web.xml and edit the .java files in-place and when a file changes it recompiles/reloads it automatically when accessed via an HTTP request.
Are the WebApplicationName/ directory and sub-directories located inside the WebLogic directory structure? Is it something like c:\BEA\WebLogic\webapps\WebApplicationName\? Or the UNIX/Linux equivalent, of course.
If you changed a servlet .java source in /WEB-INF/classes does it recompile it for you and load it over the previous copy when an HTTP request for it comes in, or must you perform some action to make it recompile/reload?
Thanks for your quick reply!
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I misunderstood your question and I must admit I have not had a reason to use iPlanet or Resin.
You do not have to use the WebLogic Administration Console for deployment.
A new servlet, EJB, jar, or ear can be automatically deployed by copying it to the folder -> wlserver/config/mydomain/applications.
The deploy utility is used to redeploy without the WebLogic Console and without restarting the Application Server. It is executed from the command prompt using the format:
% java weblogic.deploy [options] [action] password {application name} {source}
[ May 14, 2002: Message edited by: Michael Pearson ]
 
Gerry Giese
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, that's closer to what I was hoping, but you imply one detail vaguely enough that I'd like to clarify:
You can deploy a webapp by copying a .war file to the folder "wlserver/config/mydomain/applications" AND using the commandline "java weblogic.deploy [options] [action] password {application name} {source}". That is, you MUST run a deploy command of some sort, whether via commandline or command console, in order for WebLogic to make a webapp or any change to a webapp available for use. Correct?
Thanks for the info - this will be useful information. We're reevaluating our J2EE server choice (currently iPlanet(SunONE?) App Server before installing it everywhere, and it's come down to iAS and WLS, but I'm not very familiar with WLS. Is it as good as everyone says it is? All I keep hearing is 'Well it has the most market share...' which is in half the markets out there is no reason to pick the leader. Thanks again Michael!
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did not understand what I wrote.
Automatic Deployment works without the WebLogic Console or the weblogic.deploy command. It is automatic, period. It is used to deploy applications or files that have never been deployed before. Drop a Servlet, jar, ear, etc. into it and the magic happens without any intervention.
The weblogic.deploy command line utility is used to redeploy an application or file, but it can be used for original deployment too.
Are we on the same page yet?
 
Michael Pearson
Ranch Hand
Posts: 351
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gerry Giese:
We're reevaluating our J2EE server choice (currently iPlanet(SunONE?) App Server before installing it everywhere, and it's come down to iAS and WLS, but I'm not very familiar with WLS. Is it as good as everyone says it is? All I keep hearing is 'Well it has the most market share...' which is in half the markets out there is no reason to pick the leader. Thanks again Michael!


Yes, WLS has the largest market share of J2EE web servers. According to Gartner Group, both WAS and WLS share the market lead at 34%.
IBM Aims To Eclipse BEA, Sun with New WebSphere
Both are nice and if I was exclusively using Visual Age for Java I would prefer WAS. Otherwise I think I'd prefer BEA.
 
Did you just should on me? You should read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic