How to deploy a WAR into a portlet (7.0)
Is it possible to deploy a WAR file into a portlet in Weblogic
Portal 7.0?
This seems like some obvious, needed functionality but I can't find it
documented anywhere.
Larry Mulcahy Address email to [email protected] only
PGP public key at:
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03
AIM id: FleshMonster
Is it possible to deploy a WAR file into a portlet in Weblogic
Portal 7.0?
This seems like some obvious, needed functionality but I can't find it
documented anywhere.
Larry Mulcahy Address email to [email protected] only
PGP public key at:
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x2C4C5A03
AIM id: FleshMonster
Similar Messages
-
How to deploy my .WAR as a portlet, not a new page.
Hi,
I already know how to deploy my war file in the Portal. But How can I deploy it as a portlet?
I have tried deploy a simple helloworld.jsp into sample provider. And it works. But when I try to create a new provider (which already config .properties , and provider.xml file). It always gives me "404 Not found" error.
Oracle support said it must be something wrong with setting problem. But we havn't solve this problem yet.
Can anyone give me a help or advice?
help~~~~ pleasehi Harsha,
Thanks for help.
I post my instruction to deploye my war file. It was from Oracle support. But it still doesn't work well.
Could you check?
Thanks a lot
1.Go to the Middletier ORACLE_HOME
2.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\htdocs\
3.Create a folder called test
4.Copy your jsp files under this "test" folder
5.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\deployment
6.Copy the file sample.properties which is there to a file called test.properties
7.Edit test.properties and make the following changes:
serviceClass=oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter
loaderClass=oracle.portal.provider.v2.http.DefaultProviderLoader
showTestPage=true
definition=providers/test/provider.xml
autoReload=true
testPageURI=/htdocs/testpage/TestPage.jsp
8.Go to ORACLE_HOME\j2ee\OC4J_Portal\applications\jpdk\jpdk\WEB-INF\providers
9.Create a folder called test
10.Create a file called provider.xml and put the contents as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<localePersonalizationLevel>none</localePersonalizationLevel>
<session>true</session>
<defaultLocale>en</defaultLocale>
<preferenceStore class="oracle.portal.provider.v2.preference.FilePreferenceSt
ore">
<name>prefStore1</name>
<useHashing>true</useHashing>
</preferenceStore>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>MyJsp</name>
<title>MyJsp</title>
<shortTitle>MyJsp</shortTitle>
<description>This portlet is a sample implemented by Me.</description>
<timeout>40</timeout>
<timeoutMessage>MyJsp timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<contentType>text/html</contentType>
<showPage>/htdocs/test/test.jsp</showPage>
</renderer>
</portlet>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>2</id>
<name>MyJsp2</name>
<title>MyJsp2</title>
<shortTitle>MyJsp2</shortTitle>
<description>This portlet is a sample implemented by Me.</description>
<timeout>40</timeout>
<timeoutMessage>MyJsp2 timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<contentType>text/html</contentType>
<showPage>/htdocs/test/test1.jsp</showPage>
</renderer>
</portlet>
</provider>
11.In the above change the name of the jsp files from test.jsp and test1.jsp to whatever the name of your jsp file is
12.Test that the following provider test page comes up:
http://midtier:port/jpdk/providers/test
(It should show the name of the 2 portlets above)
13.If there is a 500 Internal server error, restart OC4J_Portal and try again
14.Once you get the test page above, go to Portal and register the provider.
Give the URL as http://midtier:port/jpdk/providers
and the Service Id as urn:test
15.Add the portlet to the page. -
How do I change a WAR into a portlet?
Hi,
How do I change a WAR into a portlet?
Do I just change the zone.properties, jserv.properties, and the provider.xml. In other words, do I treat it like a jar?
Any help would be greatly appreciated,
WilsonIf you mean how do you get the contents of a .war file into a JServ environment, then I would advise against trying this unless really necessary. The servlets in the .war file will only work if they do not rely on any Servlet 2.2-specific features, since JServ only supports Servlet 2.0.
Why not just plug the .war file into OC4J? You can still 'front end' it with Apache if you want by using mod_proxy.
If you really wanted to try this, first you would need to unzip the .war file to the filesystem. Then the full path to WEB-INF/classes (if it exists) and each .jar file in WEB-INF/lib would have to be mentioned as repositories in zone.properties, as these all contain 'zone' (or 'web app') specific classes.
WEB-INF/web.xml contains an XML description of the servlets that need mounting in zone.properties, including their init args.
All the other files outside of WEB-INF should be treated as documents by the web server, so should either be copied into your default htdocs directory or exposed under an alias in httpd.conf.This also relies on the classes in the .war file not 'clashing' with different versions in the server's global classpath in jserv.properties. -
How to deploy the .war to tomcat
Hello All,
How to deploy the war file into tomcat server & work? Can any body enlighten me how to proceed and test the application?Hi,
assumed you talk about Tomcat in general.
Simply copy you archive (xyz.war) into the subdir \webapps of your tomcat installation.
Invocation: http://hostname:port/xyz/resource
-> where xyz is the name of your archive and
-> resource is what you have specified within web.xml (<servlet-mapping> - tag) or a jsp / html you have in your archive.
-> host is your machine (try localhost for instance)
-> port usually is 8080
Hope that helps
M. -
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. -
How To Deploy/Run a pure Java Portlet into Webcenter
Hello Gurus,
I am new to the portal technologies. So maybe I am asking a very basic question.
Here it what I would like to achieve.
1) Create a sample "HelloWorld" portlet (A java class which implements a portlet interface or some standard portlet impl class) and I use doView() method to show "Hello World" content on the screen.
I need to deploy and test this portlet class into Webcenter. I have JDeveloper as IDE.
2) Create a sample JSP page which prints "Hello World" content. Convert this into JSR-168 and then deploy and run into Webcenter.
Please can anyone provide the easiest steps to achive this? Step-by-step instructions will be highly appreciated as this is bit urgent.
Thanks in advance for any help you can provide on this.
With kind regards-
AshishHello,
Yes, I`m working with 10g.
I've used enterprise Manager to deploy the portlet. I`ve selected "create automatic deploy plan"
The portlet was deployed but I can´t see WSRP interface as http://localhost:8888/WSRPMapPortlet/portlets?WSDL
As yo can see, I´m deploying WSRPMapPortlet sample.
I can´t use JDeveloper in my job :(
Maybe I must do any configuration change to deploy correctly the portlet and expose it in WSRP, I don´t know
Best Regards
Miguel Lacosta -
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 a WAR onto the NW AS?
I have a WAR which runs quite well under Tomcat. I want now to deploy it onto the SAP NW AS. With which tool can I do this?
Hallo Thomas,
It is actually the only way. You cannot deploy a WAR file as it is on the WAS. You need to import the files into NWDS, and create a new WAR out of it, then an EAR archive and then deploy it.
The reason for the new archives is that the NWDS adds new descriptors specific to the Web Application Server.
Here is how you can do it. Unzip the WAR into a temporary folder somewhere. Then in NWDS, you create a project of type Web Module and import your contents into the webContent folder of your NWDS project.
Now create a project of type Enterprise Module and add a reference to the Web Module Project. If the reference has been set correctly, you should be able to see module reference unter the tab "modules" in your application.xml (Enterprise Project). After that, right click on the Enterprise Project and click "Build Application Archive" and the EAR file will be built. Just right click on the EAR file to deploy it on the server.
In case you do not have administrator rights for deployment, you can send the new EAR file to the concerned Administrator.
Bye,
Sameer -
How TO DEPLOY JAR FILES INTO XI Server using SDM
Hi XI Gurus,
im working on adapter development. we have created jar file in NWDS.
now going ahead to deploy into XI server through SDM.
can we deploy jar files directly into xiserver through SDM. or it needs to convert to any other formate like EAR, SDA. then how would i convert to SDA.
i any have clear idea on this... pls throw the ways how to convert........
JAR File to EAR format
JAR file to SDA format
EAR file to SDA format
can any one explain the procedure step by step how to convert jar file into deployment archive file in order to succesfully into XI server.
thanks i advance. points will be rewarded.
Regards
RajeshHi Rajesh,
JAR file in itself in not deployable.
So v need to envelop this jar file into an EAR file and then v deploy this EAR file on SDM.
Creating Jar
Inside NWDS --> Windows --> Open perspective --> J2EE Development --> right click on ur proj --> Build EJB Archive
Converting .EAR file to .SDA
Converting .EAR file to .SDA
Regards,
Prateek -
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 the project into my weblogic Application Server?
How do I deploy the project into my weblogic Application Server? Should it be fine if I copy the project folder to the AS root?
Also, How should i invoke the Context sensitive help from Javascript assuming project deployed to Weblogic AS.
I am using Robohelp 10.
Thanks in advance.Hi,
You generate the help and then you copy the generated output to the server.
For context sensitivity, which output are you using? Try the following
pages for more info:
http://www.grainge.org/pages/authoring/calling_webhelp/calling_webhelp.htm
http://www.wvanweelden.eu/article-category/context-sensitivity
Greet,
Willam
Maybe you are looking for
-
Adobe Flash Player 11.6 r602 has stopped working
I get this message whenever I try and watch a video, same message for any page that uses flash, same message no matter which browser I'm using. This problem began with version 10, and I was using older versions of Flash Player until the other day whe
-
Issue with sending internal E-Mails(ERMS Demo)
Hi Experts, I want to implement ERMS.For this, the first step is E-Mails should come to the CRM system.The steps which i followed:- a) Got a mail-id configured from BASIS team-xyz at abc dot com. b) Assigned this mail id to my business partner. c) Cr
-
Premiere Pro Constantly Crashing!
I have recently downloaded Premiere Pro trial and then upgraded to Premiere pro CC. Since moving to Premiere Pro CC the program crashes without warning and I'm loosing hours of work due to this. I save constantly but the saved files keep reverting ba
-
Hi everione, I am trying to export the DB but it won't work. I try: exp system/manager file=Wonder.dmp full=yes I get: EXP-00056: ORACLE error 1017 encountered ORA-01017: invalid username/password; logon denied Username: I can logon to SQLplus with:
-
VPN & Video Conferencing Ip List in Router
hi, I want to find out the ip list(source & Destination ip) and bandwith usages for which vpn/video conferencing are allowed in my cisco router. pls help me how can I do it.