How to deploy a jsp page...???
Dear Experts,
May be my question will sound harebrained, but I am new to jsp and portal applications, I am having some experience in WD java, but not in Jsp and all.
Simply, I just wanted to know that if I had a jsp page which I want to deploy on my portal then how could i do it, I am using NWDS .
Request you to kindly Suggest.
Upendra Agarwal
One way using JSP portal is, creating Portal project with JSP Dynpage applications
You can use NWDS tool to create JSP Dynpage based Portal components.
Procedure to create and deploy Portal components,
1. Open Enterprise Portal Perspective in NWDS
2. Create -> new Portal Project -> Give the valid name
3. Right click on the project -> Choose Portal Object -> JSP Dynpage -> Give all the information including JSP name. -> Finish
4. Right Click on the project structure -> Properties -> Java Build Path -> All the following jars
htmlb, com.sap.portal.html_api.jar, servlet
5. Navigate to your JSP page located under the folder PORTAL-INF, Write logic
6. Right click on the portal projet-> Refresh -> Re-Build
7. Right Click on the portal project -> Export -> Give the Valid Portal serverdetails, Admin user name and password
8. You can create iView (iView from PAR) in content admin for the developed portal component
Ram
Similar Messages
-
How to deploy a JSP page into my APEX application?
hi all,
i am using a JSP to upload multiple spreadsheets into the db. i want to deploy it on the APEX and use it as part of my APEX application's uploading feature.
i already have the JSP file with me. can somebody please tell me how to put that onto the APEX?
Thanks,
BasavarajOne way using JSP portal is, creating Portal project with JSP Dynpage applications
You can use NWDS tool to create JSP Dynpage based Portal components.
Procedure to create and deploy Portal components,
1. Open Enterprise Portal Perspective in NWDS
2. Create -> new Portal Project -> Give the valid name
3. Right click on the project -> Choose Portal Object -> JSP Dynpage -> Give all the information including JSP name. -> Finish
4. Right Click on the project structure -> Properties -> Java Build Path -> All the following jars
htmlb, com.sap.portal.html_api.jar, servlet
5. Navigate to your JSP page located under the folder PORTAL-INF, Write logic
6. Right click on the portal projet-> Refresh -> Re-Build
7. Right Click on the portal project -> Export -> Give the Valid Portal serverdetails, Admin user name and password
8. You can create iView (iView from PAR) in content admin for the developed portal component
Ram -
How to integrate BIBean JSP page with Portal after deploying to iAS?
Hi all,
Right now we can deploy a JSP page contains BI Bean crosstab to iAS and can display the page using this url: http://xxx.xxx.xxx.xxx:7779/Application2/Analyze1.jsp.
BIBean version: 10.1.2.0.2
JDEV version: 10.1.2.1.0
iAS version: 10.1.2
Then according to a sample: http://otn.oracle.com/products/bib/htdocs/samples/samples_overview.html
, we should test PDKProviderAdapter, but we don't know how to create a provider for it. In the sample project "Portal" I can find a "provider" floder contains provider.xml under the "web content" node.
My question is : how to create the provider? which document or example can we refer to for help. Eagerly waiting for help.
Thanks in advance.
Scottthnx for your response.
Basically we need to develop few JSP pages and that will insert data into the Oracle tables. These tables will hold user information for further processing. Now the requirement is to call these JSP pages from OBI dashboard. We can easily call the JSP pages if OBI runs on OC4J (that we have checked). But in our production environment we are having IIS server to run OBI. So our concern is how to deploy these JSP pages on IIS server? -
How to open a JSP page from a form ??? plz help
hi ..
i want to know how to open a jsp page from a oracle apps form using a button .
the requirement is that whenever we click on the button created on the form, it opens a jsp page.
plz help me ..its urgent !! :-(In portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
Here is an example to hyperlink ans button to open a new page:
# From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
# Create a second portlet page, called PortletPage2.jsp, for the project.
# Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
# Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
# Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
# Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
# Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
# Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
Sherry
Creator Team -
How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
D:\war>jar -tf gmi.war
META-INF/
META-INF/MANIFEST.MF
gmiService.jsp
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/bt/
WEB-INF/classes/com/bt/gmi/
WEB-INF/classes/com/bt/gmi/gmiService.class
WEB-INF/getList.xsl
WEB-INF/getListByConnection.xsl
WEB-INF/getListByDistrict.xsl
WEB-INF/getListByDistrictConnection.xsl
WEB-INF/lib/
WEB-INF/source/
WEB-INF/source/build.bat
WEB-INF/source/gmiService.java
WEB-INF/web.xml
WEB-INF/weblogic.xml
tmpwar/
tmpwar/jsp_servlet/
tmpwar/jsp_servlet/_gmiservice.class
tmpwar/jsp_servlet/_gmiservice.java
When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
weblogic.jsp.pageCheckSeconds
-1
weblogic.jsp.precompile
false
weblogic.jsp.compileCommand
javac
weblogic.jsp.verbose
true
weblogic.jsp.packagePrefix
jsp_servlet
weblogic.jsp.keepgenerated
false
And in the weblogic.properties file:
weblogic.httpd.webApp.gmi=war/gmi
I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.kernel.ExecuteThread.run(Compiled Code)
The default Java compiler from sun lives in the tools.jar that comes with
the JDK. Just add that to your set of JARs which are deployed in production
and you should be fine. No need to install the full JDK - just make the
tools.jar available to WebLogic.
Regards
James
James Strachan
=============
email: [email protected]
web: http://www.metastuff.com
"Martin Webb" <[email protected]> wrote in message
news:[email protected]...
>
> How can WLS use JSP pages in a Web Application (either a .war file or a
war directory structure) without a java compiler?
>
> I suspect either the JSP specification is flawed (i.e. it doesn't take
account of servers using just a JRE), or BEA's implementation is broken.
>
> Production servers do not have a JDK installed. They only have a JRE.
Therfore a java compiler is not present on the machine that the Web
Application is deployed onto.
>
> On the development machine, when the server is requested to load the JSP
it creates a tmpwar directory within the Web Application directory
structure. This is then included in the resultant .war file thus:
>
> D:\war>jar -tf gmi.war
> META-INF/
> META-INF/MANIFEST.MF
> gmiService.jsp
> WEB-INF/
> WEB-INF/classes/
> WEB-INF/classes/com/
> WEB-INF/classes/com/bt/
> WEB-INF/classes/com/bt/gmi/
> WEB-INF/classes/com/bt/gmi/gmiService.class
> WEB-INF/getList.xsl
> WEB-INF/getListByConnection.xsl
> WEB-INF/getListByDistrict.xsl
> WEB-INF/getListByDistrictConnection.xsl
> WEB-INF/lib/
> WEB-INF/source/
> WEB-INF/source/build.bat
> WEB-INF/source/gmiService.java
> WEB-INF/web.xml
> WEB-INF/weblogic.xml
> tmpwar/
> tmpwar/jsp_servlet/
> tmpwar/jsp_servlet/_gmiservice.class
> tmpwar/jsp_servlet/_gmiservice.java
>
> When deployed on the production server with the web.xml file set to use
the following values (note XML stripped):
>
> weblogic.jsp.pageCheckSeconds
> -1
>
> weblogic.jsp.precompile
> false
>
> weblogic.jsp.compileCommand
> javac
>
> weblogic.jsp.verbose
> true
>
> weblogic.jsp.packagePrefix
> jsp_servlet
>
> weblogic.jsp.keepgenerated
> false
>
>
> And in the weblogic.properties file:
>
> weblogic.httpd.webApp.gmi=war/gmi
>
> I've also tried with the .war file, but that insists on creating another
tmpwar directory outside of the .war file.
>
>
> Then, although I have set pageCheckSeconds to -1 (don't check and don't
recompile) ter production server still attempts to recompile the JSP's:
>
>
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
verbose initialized to: true
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
packagePrefix initialized to: jsp_servlet
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
compileCommand initialized to: javac
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
srcCompiler initialized to weblogic.jspc
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
superclass initialized to null
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
workingDir initialized to:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
pageCheckSeconds initialized to: -1
> Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
initialization complete
> Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
file:
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java
> Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
>
> java.io.IOException: Compiler failed
executable.exec([Ljava.lang.String;[javac, -classpath,
/opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
rver/weblogic/war/gmi/_tmp_war, -d,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
java])
> at java.lang.Throwable.fillInStackTrace(Native Method)
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.io.IOException.<init>(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
> at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
> at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
> at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
7)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:118)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:142)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:744)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:692)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:251)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
> at weblogic.kernel.ExecuteThread.run(Compiled Code)
>
>
>
-
How to call a jsp page from oaf and run in jDeveloper
Hi all,
I created sample jsp and then tried.
String temp = "sample.jsp?";
pageContext.setForwardURL(temp,
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
It worked.
But when i tried with one of the custom page that i downloaded from server it is giving error.
But now i need to call that page.
Its Code is given on below link:
Re: how to call a jsp page from oaf
Please help me to do this.
Thanks in advance.
Regards,
RajRaj,
1. Hope you have placed the custom jsp page (which you have downloaded from server) under "jdevhome\jdev\myhtml\OA_HTML" directory ?
2. Try to run the custom jsp page from Jdeveloper directly and check whether its working properly or not ?
(i.e. add jsp page to any project in Jdeveloper then right click on jsp page and select Run xxx.jsp)
3. If page errors out then custom jsp page seems require few parameters to run it successfully. Pass all requied parameters and test.
4. There is no problem in the way you are calling jsp page from OAF page.
regards,
Anand -
How to call a JSP page from Applications menu?
Hi partners,
I am still looking for "how to call a JSP page from Applications menu?", I mean instead of calling a form, I want to call a JSP page which is staying in a OC4J repository which is located in another server.
Any idea will be really appreciated.
Thanks in advance.
Frank Mtz.Hi Frank,
if u know the solution please share it with me. i'm looking for the same scenario.
thanks in advance,
anish -
How to redirect a JSP page after the session is killed
Hello!
I am quite new to JSP. I have a question about how to redirect a jsp page after the session is killed. Could anyone help?
thanks a lot in advance!You can't, directly. There's no connection betweenthe server and browser.
even after invalidating the session. we can do it
directly using the statement
response.sendRedirect("....");
or we can use the meta refresh tag.if session is invalidated and if we try to do response.sendRedirect(".. ") it throws IllegalStateException -
How to get the jsp page name in jsp?
how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
thanks in advance.Try request.getServletPath()
-
How to test the JSP pages and sevlets using JUnit. ?
How to test the JSP pages using JUnit. How to configure what are all the steps to execute the JUnit test cases.
Hi xiepei,
since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Problem deploying my jsp pages to the BPEL Server
Hi,
I want to invoke a bpel process using a java file that is executed by a jsp page, so I deployed the jsp page and the java file to the bpel server where my bpel processes are, but i get the next error when i execute the jsp page. I use struts to define my pages.
Please help
here is the error in the browser:
500 Internal Server Error
java.lang.NoClassDefFoundError: com/collaxa/common/util/NonSyncStringWriter at com.oracle.bpel.client.ClientResources.sanitizeArgs(ClientResources.java:123) at com.oracle.bpel.client.ClientResources.getString(ClientResources.java:93) at com.oracle.bpel.client.util.BeanRegistry.lookupDomainManagerBean(BeanRegistry.java:232) at com.oracle.bpel.client.auth.DomainAuthFactory.authenticate(DomainAuthFactory.java:83) at com.oracle.bpel.client.Locator.<init>(Locator.java:126) at com.oracle.bpel.client.Locator.<init>(Locator.java:97) at mypackage2.BpelManager.invokeProcess(BpelManager.java:58) at mypackage2.ConstanciaTrabajoAction.execute(ConstanciaTrabajoAction.java:45) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
here the strut.config:
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<action-mappings>
<action path="/constanciaTrabajoAction" type="mypackage2.ConstanciaTrabajoAction" input="/constanciaTrabajo.jsp" scope="request" validate="true">
<forward name="OK" path="/exito.jsp"/>
<forward name="FALLO" path="/fracaso.jsp"/>
</action>
</action-mappings>
<message-resources parameter="mypackage2.ApplicationResources"/>
</struts-config>
the jsp file:
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page import="java.util.*"%>
<%@ page contentType="text/html;charset=windows-1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>untitled</title>
</head>
<body>
<html:link action="/constanciaTrabajoAction">Constancia de Trabajo</html:link></body>
</html>
here the java files:
* ConstanciaTrabajoAction.java
package mypackage2;
import java.util.Map;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import java.io.IOException;
import javax.servlet.ServletException;
public class ConstanciaTrabajoAction extends Action
* This is the main action called from the Struts framework.
* @param mapping The ActionMapping used to select this instance.
* @param form The optional ActionForm bean for this request.
* @param request The HTTP Request we are processing.
* @param response The HTTP Response we are processing.
* @throws javax.servlet.ServletException
* @throws java.io.IOException
* @return
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
String xml = "<ConcatRequest xmlns='http://xmlns.oracle.com/Concat'>"
+"<input><Solicitud><SolicitudData><tipoSolicitud>Constancia Trabajo</tipoSolicitud>"
+"</SolicitudData><Solicitante><ID>vcuello</ID><Nombre>Veronica</Nombre><Apellido>Cuello"
+"</Apellido><Email>[email protected]</Email></Solicitante><Supervisor><ID>rperez</ID>"
+"<Nombre>Roberto</Nombre><Apellido>Perez</Apellido><Email>[email protected]</Email>"
+"</Supervisor><Gerente><ID>asanchez</ID><Nombre>Alfredo</Nombre> <Apellido>Sanchez</Apellido>"
+"<Email>[email protected]</Email></Gerente><Datos><Dato><Nombre>dato</Nombre>"
+"<Valor>valor</Valor></Dato></Datos><exito><notificacionCons>false</notificacionCons>"
+"<docManager><imprimir>false</imprimir><firmar>false</firmar></docManager></exito></Solicitud>"
+"</input>"
+ "</ConcatRequest>";
String oxml = "<ConcatResponse xmlns='http://xmlns.oracle.com/Concat'>"
+ "<result></result>"
+ "</ConcatResponse>";
BpelManager.invokeProcess("ConstanciaTrabajo","initiate",xml);
Map res = BpelManager.requestProcess("ConstanciaTrabajo","onResult",oxml);
return mapping.findForward("OK");
* [i]BpelManager.java
package mypackage2;
import com.oracle.bpel.client.Locator;
import com.oracle.bpel.client.NormalizedMessage;
import com.oracle.bpel.client.ServerException;
import com.oracle.bpel.client.delivery.IDeliveryService;
import com.oracle.bpel.client.util.WhereCondition;
import com.oracle.services.bpel.task.ITask;
import com.oracle.services.bpel.task.IWorklistService;
import java.util.Map;
import java.util.Properties;
public class BpelManager
static Locator locator = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://develc15:23791";
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
public static String bpelProcessName = "ConstanciaTrabajo";
public static void invokeProcess(String processName, String operationName, String sXml)
try
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain,bpelDomainPassword,props);
/*IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml);
deliveryService.post(processName, operationName, nm);*/
} catch (Exception r)
r.printStackTrace();
public static Map requestProcess(String processName, String operationName, String sXml)
try
IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME);
//IDeliveryService deliveryService = (IDeliveryService)locator.lookupService(IDeliveryService.SERVICE_NAME );
// construct the normalized message and send to Oracle BPEL Process Manager
NormalizedMessage nm = new NormalizedMessage( );
nm.addPart("payload", sXml );
NormalizedMessage res = deliveryService.request(processName, operationName, nm);
Map payload = res.getPayload();
return payload;
} catch (Exception r)
r.printStackTrace();
return null;
public static ITask[] queryWorklistService(String arg)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasksByAssignee(arg);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static ITask[] queryWorklistServiceByCondition(WhereCondition cond)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
ITask[] tasks = worklist.listTasks(cond);
return tasks;
} catch (ServerException s)
s.printStackTrace();
return null;
public static void updateTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.updateTask(task);
} catch (ServerException s)
s.printStackTrace();
public static void completeTask(ITask task)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
try
worklist.completeTask(task);
} catch (ServerException s)
s.printStackTrace();
public static ITask lookupTask(String taskId)
// Lookup the worklist service.
IWorklistService worklist =
(IWorklistService)locator.lookupService( IWorklistService.SERVICE_NAME );
System.out.println("Entro a Cargo tarea");
try
ITask task = worklist.lookupTask(taskId);
System.out.println("Cargo tarea");
return task;
} catch (ServerException s)
System.out.println("La boto");
s.printStackTrace();
return null;
public void setLocator(Locator locator)
this.locator = locator;
public Locator getLocator()
return locator;
public void setBpelDomain(String bpelDomain)
this.bpelDomain = bpelDomain;
public String getBpelDomain()
return bpelDomain;
public void setBpelDomainPassword(String bpelDomainPassword)
this.bpelDomainPassword = bpelDomainPassword;
public String getBpelDomainPassword()
return bpelDomainPassword;
public void setOrabpelPlatform(String orabpelPlatform)
this.orabpelPlatform = orabpelPlatform;
public String getOrabpelPlatform()
return orabpelPlatform;
public void setJavaNamingFactoryInitial(String javaNamingFactoryInitial)
this.javaNamingFactoryInitial = javaNamingFactoryInitial;
public String getJavaNamingFactoryInitial()
return javaNamingFactoryInitial;
public void setJavaNamingProviderUrl(String javaNamingProviderUrl)
this.javaNamingProviderUrl = javaNamingProviderUrl;
public String getJavaNamingProviderUrl()
return javaNamingProviderUrl;
public void setJavaNamingSecurityPrincipal(String javaNamingSecurityPrincipal)
this.javaNamingSecurityPrincipal = javaNamingSecurityPrincipal;
public String getJavaNamingSecurityPrincipal()
return javaNamingSecurityPrincipal;
public void setJavaNamingSecurityCredentials(String javaNamingSecurityCredentials)
this.javaNamingSecurityCredentials = javaNamingSecurityCredentials;
public String getJavaNamingSecurityCredentials()
return javaNamingSecurityCredentials;
public void setDedicatedRmiContext(String dedicatedRmiContext)
this.dedicatedRmiContext = dedicatedRmiContext;
public String getDedicatedRmiContext()
return dedicatedRmiContext;
public void setBpelProcessName(String bpelProcessName)
this.bpelProcessName = bpelProcessName;
public String getBpelProcessName()
return bpelProcessName;
}hi,
I fix it, thanx
static Locator locator = null;
// public static IWorklistService worklist = null;
static String bpelDomain = "default";
static String bpelDomainPassword = "bpel";
static String orabpelPlatform = "oc4j_10g";
static String javaNamingFactoryInitial = "com.evermind.server.rmi.RMIInitialContextFactory";
static String javaNamingProviderUrl = "ormi://myserver:23791/orabpel"; /*this was wrong
static String javaNamingSecurityPrincipal = "admin";
static String javaNamingSecurityCredentials = "welcome";
static String dedicatedRmiContext = "true";
static{
try{
Properties props = new java.util.Properties();
props.setProperty("orabpel.platform",orabpelPlatform);
props.setProperty("java.naming.factory.initial",javaNamingFactoryInitial);
props.setProperty("java.naming.provider.url",javaNamingProviderUrl);
props.setProperty("java.naming.security.principal",javaNamingSecurityPrincipal);
props.setProperty("java.naming.security.credentials",javaNamingSecurityCredentials);
props.setProperty("dedicated.rmicontext", dedicatedRmiContext);
locator = new Locator(bpelDomain, bpelDomainPassword, props);
} catch (ServerException se){se.printStackTrace();}
} -
hello to all of u
i m bit comfortable with SERVLET and please tell me that how to run a JSP page.i m using TOMCAT.
someplace it is written that " write the program ,save under the root of tomcat i.e in my system it is tomcat 4.1 and to store in tomcat4.1\helloworld.jsp ,,, and then after start the server write in the url --:
http://localhost:8080/hello.jsp.
but it is giving error while running.please tell me the procedure.
thank you
byeWhy oh WHY do you want to fiddle with the server.xml file?
You don't need to.
Under tomcat is a directory called "Webapps"
This is where you put your web applications.
You will see there is an existing one there called ROOT - which funnily enough is the root one used for Tomcat.
If you put your hello.jsp in the ROOT directory, http://localhost:8080/hello.jsp will work.
However it is not recommended to use the ROOT directory. Make your own one.
Create a new directory in the "Webapps" directory eg "test"
Put your jsps in here.
under test create a directory called "WEB-INF"
Copy the web.xml file from [TOMCAT_HOME]/webapps/ROOT/web-inf into the new web-inf directory.
Now go to http://localhost:8080/test/hello.jsp
Cheers,
evnafets -
How to deploy report jsp on portal
Pls tell me how to deploy a report made in 9iDS as JSP on portal.
Thanx.
Anant Kulkarni.Thanx a lot Nishanth
Yes my report is a .jsp file.
Can u pls specify the exact steps I should follow coz I have never used portal before. I have tried creating portal page but it didn't prompted me for JSP as a type while choosing source. One more thing - IS IT NECCESSARY TO HAVE 9IDS INSTALL ON THE M/C WHERE Application Server is running. ??????
Pls help. Pls take out some time for me.
Thanx. -
How to use single JSP page for multiple users.
Hi ,
I am doing messenger kind of program using JSP and tomcat server.
When i type message it is showing in the some div. If some other person request for the same page by giving my IP address and jsp page, he should able to see what i have typed on page so far.
how can i do that one . can any one guide me .
Thanks in advance.SuneelGoodatJava wrote:
Hi ,
I am doing messenger kind of program using JSP and tomcat server.
When i type message it is showing in the some div. If some other person request for the same page by giving my IP address and jsp page, he should able to see what i have typed on page so far.
how can i do that one . can any one guide me .
Thanks in advance.HTTP is a request/response protocol. You can't do what you're suggesting without "pushing" what you type to all the other users. That's not the way HTTP works. Maybe an applet and servlet.
% -
How to include a jsp page in another jsp jsp page
hi,
i m trying to include a jsp page name "header.jsp" into one jsp page name"selectattribute.jsp" i m using these commands in "selectattribute.jsp"
<%@include file "header.jsp"%> bcz both these jsp page are C:\program files\tomcat 4.0\webapps\examples\jsp\Poject\
but the problem is that , i m invoking this jsp page "selectattribute.jsp" from a servlet reportcontroller.java using REQUEST DISPATCHER.
the servlet is in
C:\Program files\tomcat 4.0\webapps\examples\WEB-INF\classes\Project\
i want to know how to include some other jsp page in a jsp page and how to invoke applet from jsp page when that particular jsp page is being invoked by servlet.
plz help
manishuse this for including in your selectattribute.jsp
<jsp:include page="header.jsp" flush="true"/>
I never tried calling an applet. I think you can write the code for calling the applet in a javabean method and call the method in the jsp
Maybe you are looking for
-
Only one device at a time can access wireless
Whenever I access the wireless network at home with a laptop or iPod, it kicks my wife off of the iMac's access. Basically, only one device can use the wireless network at a time. I'm not that comfortable with network issues, but I'm not a total noob
-
Free Goods - Always issue qty 1
Hi All, We have a requirement to use the Free Goods functionality. My problem is that the business requirement is to free issue qty 1 of a material as a sub material. We require the qty (exclusive bonus qty) to remain unchanged regardless of the orde
-
Sender file adapter is not polling the file.
Dear all, Sender file adapter is not polling the file.(But Receiver file adapter is getting the file) we have installed SP15. It was worked fine for previous SP14. I have cheked in Adapter monioring also. Can you help me out of this problem Regard
-
Intermittent wifi connectivity on laptop
Hi, I'm hoping someone can help me. I have an HP Elitebook 8530w. It's running Windows 7. When I open Firefox, I can get on the internet, but after a few minutes, it stops working properly an the connection will go in and out. I've tried connecting a
-
I just got the newest version of iCal and was so excited to sync it to my long time Yahoo calendars. However, when they synced, all of the Yahoo calendar events are 5 hours too early. I would like to figure out how to fix this. Thanks- Sonja