How to deploy a .war file in a portal?
Hi,
I have developed a search engin and made it a .war file. It runs properly
with Tomecat. Where should I put this file to make it usable with BEA weblogic
portal 7.0? If I want to put it into a portalet, what configuration must I do?
thanx.
Hi,
Try deploying it to PortalApp application, Copy the war file under PortalApp directory
and modify the config.xml or using weblogic console for deployment.
Cheers
Syed
"phoebe" <[email protected]> wrote:
>
Hi,
I have developed a search engin and made it a .war file. It runs
properly
with Tomecat. Where should I put this file to make it usable with BEA
weblogic
portal 7.0? If I want to put it into a portalet, what configuration must
I do?
thanx.
Similar Messages
-
How to deploy jsr168 war file into Webcenter Portal
I want to intergated a jsr168 war file with Web Center Portal. I only install WebCenter Portal without JDeveloper and Content. So how should I deploy it?
Thank you!
Regards,
JugelaYou have the weblogic domain right ? Opent the enterprise manager in browser by hitting the below url -
http://<Admin Server address>:<port>/em
login with credentials.
From deployments end,you can install the war file which will targeted to WC_Portlet server.
After that register the portlet WSRP url with your application and use it.
The above suggest is without the intervention of jdeveloper /webcenter.
Regards,
Hoque -
How to deploy a war file on Weblogic Server 7.0??
Hello Everyone
I am trying to deploy a servlet on Weblogic Server 7.0 as a WAR file. Can anyone of u plz tell me the steps required to do that. I am posting this question on EJb forum and not on servlets coz this is not a servlet problem, rather this is something which is related to J2EE, ie how to deploy a war file on J2EE Server.
This is how i have done it, but this is not working---
(1) First i created a directory structure for the web application according to J2EE Specification.
C:\Work\
myServletWAR\
META-INF\
WEB-INF\
classes\
HelloServlet.class
web.xml
i.e within work directory, there is a dic called myServletWAR which is my application directory which contains 2 sub directories viz META-INF which contains the mainifest file being generated by the jar utility. the second directory in the myServletWAR application dir is WEB-INF, which contains one file called web.xml for servlet mapping and one directory classes which contains HelloServlet.class
(2) I used following command for creating war file from myServletWAR director(i.e from my web application's directory).
jar -cvf TestServletWAR.war .
This creates the TestServletWAR.war file in myServletWAR dir.
Here is how my Servlet and web.xml looks like...
Servlet code
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet extends HttpServlet
public void doPost ( HttpServletRequest req, HttpServletResponse res )
throws IOException, ServletException
doGet( req, res );
public void doGet ( HttpServletRequest req, HttpServletResponse res )
throws IOException, ServletException
res.setContentType( "text/html" ); // Can also use "text/plain" or others.
PrintWriter out = res.getWriter();
// Get the requestor's IP address (See JavaDocs to see how to get other info):
String addr = req.getRemoteAddr();
// Create output (the response):
out.println( "<HTML><HEAD><TITLE>HelloServlet in myServletWAR</TITLE></HEAD>" );
out.println( "<BODY><H1 ALIGN=\"CENTER\">" );
out.println( "Hello " + addr + ", from HelloServlet in myServletWAR!" );
out.println( "</H1></BODY></HTML>" );
out.close();
************************Servlet Ends Here **************************
web.xml
---------------------------------------------------------- <!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>myServletWAR, a first Web Application</display-name>
<description>
This is a simple web application containing a single servlet
of the "Hello, World" variety.
</description>
<servlet>
<servlet-name>myHello</servlet-name>
<servlet-class>HelloServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>myHello</servlet-name>
<url-pattern>/myHello</url-pattern>
</servlet-mapping>
</web-app>
****************************web.xml file ends here********************
After deploying the TestServletWAR.war file on the weblogic 7.0, i tried to execute the servlet from the browser by the following URL
http://localhost:7001/myServletWAR/myHello
I am getting the HTTP 404 Error, which is an indication that weblogic was unable to find the resourse, which it was requested for. Can anybody plz tell me what i m doing worng?? do i need to use weblogic related xml file (i.e weblogic.xml) also along with web.xml. If yes, then what all i need to include that. I m not very sure. A sample weblogic.xml file for this HelloWorld example will help me a lot.
Looking forward for your help
Thanx in advance
Nishahi i have read ur answer regarding deploing a servlet in weblogic 7.0
i am facing another problem
when i try to access the servlet inside my classes directory it throwa an error stating this :
IT DOES NOT FOUND THE CLASSES ON WHICH MY SERVLET DEPENDS.WHAT DOEES ATHIS MEAN
KINDLY TELL ME
PUNEET JAIN
<May 28, 2003 1:46:25 PM IST> <Error> <HTTP> <101250> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Se
rvlet class myclasses.Wservlet for servlet welcome could not be loaded because a class on which it depends was not found
in the classpath D:\bea\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\W
ebApp\WEB-INF\classes.
java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)>
<May 28, 2003 1:46:26 PM IST> <Error> <HTTP> <101018> <[ServletContext(id=6057728,name=WebApp,context-path=/WebApp)] Ser
vlet failed with ServletException
javax.servlet.ServletException: [ServletContext(id=6057728,name=WebApp,context-path=/WebApp)]: Servlet class myclasses.W
servlet for servlet welcome could not be loaded because a class on which it depends was not found in the classpath D:\be
a\user_projects\PuneetDomain\applications\WebApp;D:\bea\user_projects\PuneetDomain\applications\WebApp\WEB-INF\classes.
java.lang.NoClassDefFoundError: myclasses/Wservlet (wrong name: Wservlet)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:791)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:517)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> -
How to deploy a WAR file in JRun server?
hi,
I created one war file, now i want to deploy that file in JRun server. can anyone give me an idea of how to deploy that war file in server...By following the deployment documentation for your server. This isn't a general purpose "help me do everything" forum
-
How to deploy exploded war file(from JBoss-Eclipse IDE) to Sun Server 9
anyone plz tell how to deploy exploded war file (from JBoss-Eclipse IDE) to sun application server 9.i deployed noramllay at tht time404 hrown.plzz tell urgent
regards,
S SunderHi!
How did You deploy WAR file? Did You try to do this with Application Server Admin Console?
Thanks,
Roman. -
How to deploy a WAR file to Sun One Portal Server
Would someone please tell me the instruction of how to deploy a WAR file to Sun One Portal Server 6.2. Thank you.
I would advise against this. We tried that and it totally hosed the server.xml file and took our staging portal server down.
I have no idea what was "in" the server.xml or other files, but trying to deploy a .war file using the WS admin interface hosed portal server's settings. -
Deploying a war file to the portal server
Hi,
I have downloaded a portlet (portletsamples.war) from the following URL,
http://developers.sun.com/prodtech/portalserver/reference/techart/jsr168/
Could I know how to deploy this war file to SUN ONE Portal server 6.0?
--Muthui used the following command
/opt/SUNWps/bin/pdeploy deploy -u "amadmin" -w password -d "dc=cmarks,dc=com" -p password /opt/madiha/me.war
It gives the error
errorStoreDP (User does not have sufficient access.)
1)does it matter if the portal server is started or not when we deploy?
2)i am logged in to the machine as the super user "root" but yet it is throwing this error
the error that i get in the pdeply.debug file is
ERROR: Exception:
com.sun.portal.desktop.context.ContextError: DSAMEConnection.setTemplateAttribute(): , dn=dc=cmarks,dc=com, serviceName= SunPortalDesktopService, sunPortalDesktopDpDocument=
com.iplanet.am.sdk.AMException: User does not have sufficient access.
at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:1050)
at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
com.iplanet.am.sdk.AMException: User does not have sufficient access.
at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:2136)
at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:867)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1573)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1514)
at com.sun.portal.desktop.context.DSAMEConnection.setTemplateAttribute(DSAMEConnection.java:992)
at com.sun.portal.desktop.context.DSAMEConnection.setAttributeByDN(DSAMEConnection.java:518)
at com.sun.portal.desktop.context.DSAMEAdminDPContext.storeDPDocumentByDN(DSAMEAdminDPContext.java:210)
at com.sun.portal.portlet.cli.PDDPUpdater.storeDPDocument(PDDPUpdater.java:232)
at com.sun.portal.portlet.cli.PDDPUpdater.addProviders(PDDPUpdater.java:98)
at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:229)
at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:208)
at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:54)
can somebody plz help? -
How to deploy a war file from a different app server to the SAP one
Hello,
I hve recieved a war file from Tomcat that needs to be deployed on the SAP Java App server. As far as I know the SDM only allows to deploy ear files. How can I deploy this war to the app server?Hi Roy,
in order to deploy the WAR file you have to wrap an EAR around it. I had the same problem.
You can do this using Netweaver Developer studio.
Perform the following steps:
- Start NWDS
- Create a New Enterprise Application Project
- Create a New Web Module Project (name it like your war file => e.g. your war file is called myApp.war => call your Web Module myApp)
- Edit the application.xml of your Enterprise App if necessary (description, Displayname etc.)
- Link your Web Archive to your application archive (right Mouse click on Application Archive and from the Context Menu choose "Add Modules" => In the list choose your Web Module)
=> You can also perform a right mouse click on your web Module and from the context menu choose "Add to EAR Project" => In the list choose your Enterprise Application!
- Build Web Archive (right mouse click on your Web Module and from the context menu choose "Build Web Archive" => This will create a war file that has the same name as your war file! => If you do not see it try to switch to resource perspective!)
- Build Application archive (right mouse click on Application archive => from the context menu choose "Build Application Archive")
You are done
The EAR file is generated and will be created in your workspace.
Now browse to your workspace. Unpack the EAR using WinZip or any other Archiver program.
Replace the contained war with your war and repack the ear file (You can also use tools like Total Commander to directly replace the war file in the EAR with your war without having to unpack the war). You can also import your war into NWDS and rebuild it so you won't have to replace the WAR in the EAR but as your WAR is already built I would just replace it as described!
You can now deploy the ear file to SAP J2EE
Hope this helps (Reward points for helpful answers are appreciated!)
Cheers -
How to deploy a war file with no descriptors in WLS - quick question
Hi All
How do we deploy a war file, which doesnt have weblogic.xml nor web.xml in it ?
We have these xml files.
1- How do we include these xml files ? any command line to do that ?
2- Which is an easier approach to deploy a war file
a) include these xml files into the war and then deploy with WLS using weblogic.Deployer or
b) explode the war and then copy these xml files to its WEB-INF ?
Is there an example we could use to follow to deploy our war file ?
ThanksPuthanampatti, thanks for responding.
What is the complete command line to deploy the war to a managed server, not Admin Server ?
Our thinking is to deploy an exploded war directory but copy the descriptor files first.
What do you think ? -
How to deploy the war file in weblogic 6.0 with sp1?
I write a jap and a web.xml files and also pack these files into a war file.
When I use the console to deploy the war, the console think the war is a
application, not web application.
I attach the test.war.
[test.war]
change your web-inf directory name to WEB-INF. This should fix your problem.
Kumar.
Alex wrote:
> I write a jap and a web.xml files and also pack these files into a war file.
> When I use the console to deploy the war, the console think the war is a
> application, not web application.
> I attach the test.war.
>
> Name: test.war
> test.war Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode
-
How to deploy a war file into websphere appserver? error !!!
Hello expert,
I build one very simple war file, simpletest.war, using build tool 'ant', I did not have any tools available at this moment:
D:\Projects\E-form\simpletest\build>jar.exe -tvf simpletest.war
0 Fri Nov 11 12:06:52 CST 2005 META-INF/
106 Fri Nov 11 12:06:50 CST 2005 META-INF/MANIFEST.MF
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/forms/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/forms/renderform/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/
476 Fri Nov 11 11:58:20 CST 2005 Default.jsp
3045 Fri Nov 11 12:06:52 CST 2005 WEB-INF/classes/txdot/forms/renderform/GetForm.class
513415 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/dom4j-full.jar
1171931 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/etechUtils.jar
92281 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/formServer-client.jar
288752 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/j2ee.jar
32062 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/jaxrpc.jar
60047 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/resolver.jar
959368 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xercesImpl.jar
126179 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xercesSamples.jar
124724 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xml-apis.jar
124724 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xmlParserAPIs.jar
721 Fri Nov 11 11:58:28 CST 2005 WEB-INF/web.xml
And web.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>txdot.forms.renderform.GetForm</servlet-name>
<servlet-class>txdot.forms.renderform.GetForm</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>txdot.forms.renderform.GetForm</servlet-name>
<url-pattern>/GetForm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Default.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/renderform/error.jsp</location>
</error-page>
</web-app>
But when I try to deploy into websphere app server, it gave me one error saying corrupted files. But the same file I can run in Jboss.
Thanks a lot.
GraceYanping, we use ANT all the time to deploy to WebSphere without a problem.
Why don't you ask Natasha or John for some help. Otherwise, walk over to Walnut Street and ask at the Computer Support Center. -
How to deploy a war file into websphere appserver
Hello expert,
I build one very simple war file, simpletest.war, using build tool 'ant', I did not have any tools available at this moment:
D:\Projects\E-form\simpletest\build>jar.exe -tvf simpletest.war
0 Fri Nov 11 12:06:52 CST 2005 META-INF/
106 Fri Nov 11 12:06:50 CST 2005 META-INF/MANIFEST.MF
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/forms/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/classes/txdot/forms/renderform/
0 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/
476 Fri Nov 11 11:58:20 CST 2005 Default.jsp
3045 Fri Nov 11 12:06:52 CST 2005 WEB-INF/classes/txdot/forms/renderform/GetForm.class
513415 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/dom4j-full.jar
1171931 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/etechUtils.jar
92281 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/formServer-client.jar
288752 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/j2ee.jar
32062 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/jaxrpc.jar
60047 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/resolver.jar
959368 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xercesImpl.jar
126179 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xercesSamples.jar
124724 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xml-apis.jar
124724 Fri Nov 11 12:06:50 CST 2005 WEB-INF/lib/xmlParserAPIs.jar
721 Fri Nov 11 11:58:28 CST 2005 WEB-INF/web.xml
And web.xml is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<servlet>
<servlet-name>txdot.forms.renderform.GetForm</servlet-name>
<servlet-class>txdot.forms.renderform.GetForm</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>txdot.forms.renderform.GetForm</servlet-name>
<url-pattern>/GetForm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Default.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/renderform/error.jsp</location>
</error-page>
</web-app>But when I try to deploy into websphere app server, it gave me one error saying corrupted files. But the same file I can run in Jboss.
Thanks a lot.
GraceHello,
Who are you pls? It looks like you know all of us.
Thanks for your response. Is there special format for
web.xml or just generic?
GraceYanping:
web.xml has a DTD that is readily available. You may refer to it. -
How to deploy a war file?
could any one pls suggest the steps need to take care for the deploying war file with OAS 9i. I was able to see the first default page but while trying to call the JSP page from main page , System displaying page cannot be displayed "Internal server error".
Hi steve,
Thanks for the suggestion...
I was able to deploy the application but while trying to call the JSP page from the main page,system throwing me the below error.
500 Internal Server Error
OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="/WEB-INF/wilog.tld" prefix="log" %>
Error: Prefix log is already used by a previous taglib directive.
Could you please help me to sort out the issue.
Aravind -
How to deploy my war file to be ROOT under tomcat
Hello all
i successfully deployed my web application to be as ROOT under tomcat
but in my web application the jsp files are inside inner directory called jsps
so if i like to brows to test.jsp i have to type
http://localhost:8080/jsps/test.jsp
how can i avoid this and configure tomcat to take the jsps dir as part of the ROOT url
so i could type
http://localhost:8080/test.jsp
and tomcat will autumnally will know this file is inside jsps dir
thanksHello all
i successfully deployed my web application to be as
ROOT under tomcat He says he has successfully deployed the application as ROOT
but in my web application the jsp files are inside
inner directory called jsps
so if i like to brows to test.jsp i have to type
http://localhost:8080/jsps/test.jsp
he says that he can access the jsps/test.jsp as part of the root web app.
how can i avoid this and configure tomcat to take the
jsps dir as part of the ROOT url
so i could type
http://localhost:8080/test.jsp
He then says that he wants to access jsps/test.jsp as /test.jsp which is a mapping issue.
The problem is the subject line does not match the problem in the message body. -
How to deploy a .war file in jboss using eclipse
Hi,
iam new to using eclipse as my ide. i have installed the jboss ide in it. i have a servlet and i would like to deploy the servlet in jboss through eclipse, can some one help me with thisHi,
This forum is exclusively for Sun Java Studio Creator.
Please post the question in the appropriate forum.
Thanks,
Creator Team
Maybe you are looking for
-
3G VPN established but no traffic using ASA 5505
Hi All, hoping that someone can help me here. We are able to esatblish VPN connection but we cannot pass traffic out. Here are the details. ISP has a range of 25.16.0.0/15 and they are doing Natting. We are using Raven X and ASA5505 is connected. S
-
Database connection string dynamic
Hello everybody, My application should do some tests that user choses. For each test type I should save the database in a file with different name, something like : Report_YYYY_MM_DD_Test_x, without stopping the execution of the application. My probl
-
HT4306 why can't i hook up to store and download music in canada
why can't i hook up to store and download music in canada
-
NFC application in app world.
Hi all, Can anyone list out the applications in the AppWorld which uses NFC .
-
Kid locked ipod. New CP at home. Unable to sync to itunes. how do i unlock?????