This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes configure tomcat with bea weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "configure tomcat with bea weblogic" Watch "configure tomcat with bea weblogic" New topic
Author

configure tomcat with bea weblogic

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
when i run an web application developed using netbeans 6.9.1,it runs successfully because tomcat is bundled along with netbeans.But i want to install that web application in bea weblogic.therefore i need to know to configure tomcat with bea weblogic 8.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
What do you mean by " configure tomcat with bea weblogic 8"? WebLogic Server has its own servlet container.
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Sriram,

WebLogic server has its own servlet container.

All you need to do is to configure your Netbeans with the weblogic server and run the applications on it.

Alternatively you can export the application from the Netbeans as a war file and write WebLogic Specific Deployment descriptor and deploy it on the WebLogic Server.

Cheers,
Anandraj
http://weblogic-wonders.com


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
anandraj tadkal wrote:Sriram,

WebLogic server has its own servlet container.

All you need to do is to configure your Netbeans with the weblogic server and run the applications on it.

Alternatively you can export the application from the Netbeans as a war file and write WebLogic Specific Deployment descriptor and deploy it on the WebLogic Server.

Cheers,
Anandraj
http://weblogic-wonders.com


Actually i want to deploy my web application in weblogic

thanks
shriram iyer
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Hi Sriram,

WebLogic Server provides many features for deploying the application.

The most easier one is to use the weblogic admin console to do so.

1. Login into the console, navigate to the Deployments tab from the left panel.
2. Click install and specify the file to be installed.

Alternatively you can also use the weblogic.Deployer utility to deploy the application.

1. Open a command prompt , set the classpath by running the setDomainEnv script.
2. Execute the below command.

Deploying application on admin server:

java weblogic.Deployer -adminurl url -username username -password password -name myapp -deploy c:/myapps/myapp.ear

Deploying application on managed server:

java weblogic.Deployer -adminurl url -username username -password password -name myapp -deploy c:/myapps/myapp.ear -targets ManagedServer1

Refer the WebLogic Deployer link for more details on the utility.

Cheers,
Anandraj
http://weblogic-wonders.com

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
anandraj tadkal wrote:Hi Sriram,

WebLogic Server provides many features for deploying the application.

The most easier one is to use the weblogic admin console to do so.

1. Login into the console, navigate to the Deployments tab from the left panel.
2. Click install and specify the file to be installed.

Alternatively you can also use the weblogic.Deployer utility to deploy the application.

1. Open a command prompt , set the classpath by running the setDomainEnv script.
2. Execute the below command.

Deploying application on admin server:

java weblogic.Deployer -adminurl url -username username -password password -name myapp -deploy c:/myapps/myapp.ear

Deploying application on managed server:

java weblogic.Deployer -adminurl url -username username -password password -name myapp -deploy c:/myapps/myapp.ear -targets ManagedServer1

Refer the WebLogic Deployer link for more details on the utility.

Cheers,
Anandraj
http://weblogic-wonders.com



i know to deploy the war application,but i dont know how to solve the jsp compiling error as follows

**********************************************

Compilation of 'H:\bea\user_projects\domains\cmpfirst\.\myserver\.wlnotdelete\extract\myserver_myapp_HiberWeb\jsp_servlet\__index.java' failed:
--------------------------------------------------------------------------------
H:\bea\user_projects\domains\cmpfirst\.\myserver\.wlnotdelete\extract\myserver_myapp_HiberWeb\jsp_servlet\__index.java:17: cannot access myapps.clss.InsertData
probably occurred due to an error in /index.jsp line 7:
<%@page contentType="text/html" pageEncoding="UTF-8" import="myapps.clss.InsertData "%>


--------------------------------------------------------------------------------
Full compiler error(s):
H:\bea\user_projects\domains\cmpfirst\.\myserver\.wlnotdelete\extract\myserver_myapp_HiberWeb\jsp_servlet\__index.java:17: cannot access myapps.clss.InsertData
bad class file: H:\bea\user_projects\domains\cmpfirst\myserver\.wlnotdelete\extract\myserver_myapp_HiberWeb\jarfiles\_wl_cls_gen.jar(myapps/clss/InsertData.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import myapps.clss.InsertData; //[ /index.jsp; Line: 7]
^
1 error

************************************

my domain name is cmpfirst
i am accessing the class myapps.clss.InsertData from my jsp page called index.jsp

i am trying to run an hibernate web application using weblogic 8.1
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

The Tomcat that is bundled with the NetBeans 6.9.1 works on JDK 1.6 Update 13 or later. The 6.9.1 version of the IDE can not be installed using JDK 5.0. Hence the Hibernate application that works fine with TomCat server is compiled with JDK 1.6.

However the weblogic server 8.1 is shipped with JDK 1.4.

This could cause the problem.

You can try deploying the application on WebLogic Server 10.3 and later as they are shipped with JDK 1.6 and later.

Else try to recompile the application in JDK 1.4.

javac -source 1.4 FIleName.java

Cheers,
Anandraj
http://weblogic-wonders.com
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
anandraj tadkal wrote:The Tomcat that is bundled with the NetBeans 6.9.1 works on JDK 1.6 Update 13 or later. The 6.9.1 version of the IDE can not be installed using JDK 5.0. Hence the Hibernate application that works fine with TomCat server is compiled with JDK 1.6.

However the weblogic server 8.1 is shipped with JDK 1.4.

This could cause the problem.

You can try deploying the application on WebLogic Server 10.3 and later as they are shipped with JDK 1.6 and later.

Else try to recompile the application in JDK 1.4.

javac -source 1.4 FIleName.java

Cheers,
Anandraj
http://weblogic-wonders.com


thanks, it is working now
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98

Glad to hear that one Shriram!!

Cheers,
Anandraj
http://weblogic-wonders.com
 
Consider Paul's rocket mass heater.
 
subject: configure tomcat with bea weblogic
 
Similar Threads
use of WebServers infront of enterprise app server
Clean up temp files in Weblogic?
web logic application in eclipse
Tomcat JNDI lookup on Weblogic
How To Deploy Web App on WebLogic9.1