Deployment of simple JSP to Oracle Servlet Engine
Hi
Anyone there tried to deploy a simple JSP running against OSE.
Please advice where can I get more information for this.
Thanks
Yes I have tried it with simple examples like data access and calling EJB. In-session EJB calls do not work but if your JSP is deployed in another Oracle JVM like 9iAS then EJB calls work.
There are two manuals you can refer:
JSP Developers guide at http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83720/toc.htm
AND
Java Tools reference guide at http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83727/toc.htm
null
Similar Messages
-
Hi,
I'm just successful installed 9idb and 9iFS in w2k server. But I decided to change the Oracle Servlet Engine page from port 8080 to 8081. (the page Oracle Servlet Engine with the flying pig. Anyone has ides how to do this?
Thanks
KenAnyone has idea???
-
Oracle Servlet Engine - Oracle 9i
How do I change the default port - 8080 for the Oracle Servlet Engine that seems to have been installed with Oracle 9i. Also, how do I disable it from starting at all or is that something that's necessary in order for 9i to run.
cheers
AjFigured it out. For those interested, u need to use sess_sh
cheers
Aj -
Deployment of simple jsp application in Oracle 10g AS
Hi All,
This is a critical issue. We have a JSP application which uses the plain old java objects to esltabilsh database connection and same old java objects to perform the business logic.
All java file are packed in a jar file and all jsp's and other files(GIF,CSS etc) are copied to a folder.
So what should be the steps to deploy this application to the Oracle 10g Application server.Thanks for the update.
But application is already developed and is Runing in the 9i As and now we have to deploy it to the 10g server.
Some steps that i am following to deploy the application are:-
Steps for the deploying the A+ Web portal in OUGD
1)Copy the “aplus” folder(containing related jsps,css and gif files) and aplus.jar file to
“<<ORA-HOME>>/iAS/Apache/Jserv”
2) Go to the following file
"<<ORA-HOME>>/iAS/Apache/Jserv/etc/jserv.properties” and add the following lines,
#APlus
wrapper.classpath=<<ORA-HOME>>/iAS/Apache/Jserv/aplus
wrapper.classpath=<<ORA-HOME>>/iAS/Apache/Jserv/aplus.jar
#APLUS CONFIGURATION
wrapper.bin.parameters=-DWV_GATEWAY_CFG=<<ORAHOME>>/iAS/Apache/modplsql/cfg/wdbsvr.app
3) Go to the following file
“<<ORA-HOME>>/iAS/Apache/Jserv/etc/zone.properties” and add the
following lines
Append the following line to “repositories=”
<<ORA-HOME>>/iAS/Apache/Jserv/aplus,
<<ORA-HOME>>/iAS/Apache/Jserv/aplus.jar
4) Go the following file
“<<ORA-HOME>>/iAS/Apache/Apache/conf/apps.conf” and add the following lines
Alias /aplus/ "<<ORA-HOME>>/iAS/Apache/Jserv/"
<Directory "<<ORA-HOME>>/iAS/Apache/Jserv">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
but following this steps i am not getting the result.
Reagrds,
Vikram -
Help regarding a simple JSP file and servlet file
Hi all,
I am trying to develop a web based application using Tomca 5.0.16.I wanted to get to know how a simple jsp page could access a servlet.It would be really very beneficial if if any one can give me a sample code that does the interactions,I could run it and understand it,would help me for further development.
Any help would be appreciated
Thanks
ASI think it depends on how you want to access the servlet.
You can forward or redirect from the JSP page to the servlet, thus making it like you went to the servlet directly from the browser (except of course, before the forward or redirect, some stuff can be done).
You can use URLConnection objects to call the servlet, much like the browser does.
It depends on what you are trying to do. -
How to run the simple jsp on oracle 9ias application server?
hi,
how to run the simple jsp application jst disply the date on oracle 9ias application server?
can any expline the steps how to do it?
thanks
pullareddyNo, you need the Reports Server (as part of the Application Server or Weblogic, depending on your version).
I try to save the report, it's saved as .jspThat depends. You can save it as a .rdf file too (so called Paper Layout). I think this option is used more often. -
Hi All.How to deploy the CUSTOM JSP to Oracle Application???
Basically i am new to OAFramework and i have developed one JSP page--->Connect to Remote Application and it is working fine in my Local System.
How do i depeloy this CUSTOM page to Oracle Application???
Please let me know the Steps or is there any Reference documentaion available so that i can follow the steps.
Message was edited by:
user550793
Message was edited by:
user550793How you create your .xml file.
Have you created your .xml file using New->web tier->OA Components->Page.
If in this way you would not get your specified Error. Could not find the main class.Progarm will exit.
I think you are running any java file. either controller, VOImpl.java or any else.
that do not have main function.
if still this issue exist on your side. let us know all the steps in details to us.
Thanks, Avaneesh -
Oracle Servlet Engine/Apache
Hi,
I am trying to jsp published in oracle throught Apache.
In my tnsnames.ora configuration is like
inst1_http = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)
(HOST=alex)(PORT=7988))
(CONNECT_DATA= (SERVICE_NAME=myserver)
(SERVER=shared)
(PRESENTATION=http://testservice) ) )
I have specified service_name as webserver name given in httpd.conf (ServerName=myserver) of Apache.
Presentation is given as webservice created under the service folder in sess_sh environment.
When I try to connect through the browser by giving port 7777 which is listener at Apache the httpd_error_log gives
Connection to [(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=alex)(PORT=7988))(CONNECT_DATA=(SERVER=SHARED)(SERVICE_NAME=myserver)(PRESENTATION=http://testservice)))] failed
Also when I type http://alex:7777 it gives
Service Temporarily Unavailable.
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Is anything wrong in the Service_Name ? What it should be ? I have included
AuroraService inst1_http in mod__ose.conf file.
Regards,
Chetanyou can skip ose (a truely dredful product), and use orion
directly from Ironflare...$1500 per server, and cheaper than OC4J.
www.orionserver.com
regards,
the elephantwalker
www.elephantwalker.com -
Hello,
I need to remove the OSE in order to avoid the execution of JServ.
I have been looking for information about this and tried:
remove the line about dispatchers in init.ora
execute some things in package dbms_xdb.cfg_update to change ports
execute the script rmjvm.sql
but unsuccessfully.
I have heard about a specific script that removes every JVM support in the Oracle installation, which includes removal of OSE, but could not find it.
Does anybody knows how to remove or shutdown OSE?
Thanks in advance.
Regards,Done!
My copy of rmjvm.sql was incorrect, I took it from another installation and worked fine. -
I installed Oracle on my machine and have been using it for a while now.
There is an Oracle Servlet Engine that is always running on http://localhost:8080.
Does Oracle always need to run that engine ?
If not, how do I shut it down. Or if it does need to run, how can i change the port to other than 8080. Thanks !ok i see the following files in
C:\oracle\ora90\Apache\Jserv\conf
jserv.conf
jserv.conf.default
jserv.conf.tmp
jserv.properties
jserv.properties.default
jserv.properties.tmp
How exactly do i shut down the engine or change the port using the above files ? Can u please explain a bit...i'm not and advanced Oracle user ...consider me a beginner... Thanks ! -
hi guys:
I use oracle9ias to construct demo ejb application, in javavm/demo/ejb/basic/helloworld. I have deploy ejb well and Client.java run very well.
but when i want to use jsp to invoke ejb. this sentence throw exception: HelloHome hello_home = (HelloHome)ic.lookup ("sess_iiop://eddy:2481:orcl/test/myHello");
the exception is could not find out.like this:myHellojavax.naming.NamingException: Unknown reasons [Root exception is java.lang.ClassNotFoundException: hello.HelloHomeHelper]
nullOSE is the Oracle Servlet Engine that runs inside the Oracle database. You can deploy ejbs to it.
There is a lot of documentation on that.
Oracle Servlet Engine user's Guide is a good start. Also relevent documentation is found under $ORACLE_HOME/javavm directory.
good luck
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by p_yenki:
How can I deploy EJBs in Oracle ?
What is the OSE ?
Thanks for your replys<HR></BLOCKQUOTE>
null -
How to create simple JSP and deploy to J2EE engine?
Hi,
I need to create simple JSP pages and deploy it to SAP J2EE engine.. what is the procedure?...I may later add some businness logic but not needed for now.
Please help
Thanks,
JaiGabrie,
Here are Simple steps,
In the NWDS
1) create J2EE -> Web Module Project (XYZ)
2) create/add your JSP pages to the project
3) Right click on your project root and click on 'Build Web Archive' from the context
3) create J2EE -> Enterprise Application project(EAR)
4) Right click on your Web Module Project root and click on 'Add to EAR Project' from the context, select the EAR you just created in step 3.
5)Right click on your EAR project root and click on 'Build WebApplication Archive' from the context
6)Expand the EAR project node, and right click on the *.ear file, click on 'Deploy to J2EE Engine'.
7)Enter your SDM password when prompted,
You can access you JSP at this url
http://server:port/xyz/a.jsp
- Dileep -
Simple jsp deployment - does it need weblogic.xml ?
Hi,
I am a newbie and trying out a very simple jsp application which connects to Oracle
for a simple db lookup. This app used to work with Tomcat/ Apache.
I am trying to deploy it on WLS7.0 . It does not use servlets - only JSPs.
Could someone tell me what is the minimum level of configuration I need to deploy
these JSPs to WLS7.0 ?
Do I need both web.xml and weblogic.xml ?
Do I need all the parameters in both these files ?
Thanks a lot !
WLS7.0 Does use servlet you have to register the servlet inside the
web.xml file for a web application. It looks like this:
<servlet>
<servlet-name>testservlet</servlet-name>
<servlet-class>
com.mypackage.MyTestServlet
</servlet-class>
<init-param>
<param-name>EnvironmentFile</param-name>
<param-value>/WEB-INF/config/webstore.properties</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>testservlet</servlet-name>
<url-pattern>/mytestservlet</url-pattern> <!-- this is the
name on the url-->
</servlet-mapping>
Abraham wrote:
> Hi,
>
> I am a newbie and trying out a very simple jsp application which connects to Oracle
> for a simple db lookup. This app used to work with Tomcat/ Apache.
>
> I am trying to deploy it on WLS7.0 . It does not use servlets - only JSPs.
>
> Could someone tell me what is the minimum level of configuration I need to deploy
> these JSPs to WLS7.0 ?
> Do I need both web.xml and weblogic.xml ?
>
> Do I need all the parameters in both these files ?
>
> Thanks a lot !
-
Hi,
I added a jsp page in the portlet which is not a standard page like the default show mode pages. I have added some code which actually access a resource inside the porltet.
" img src="<%= UrlUtils.constructResourceURL (pReq, HttpPortletRendererUtil .absoluteLink(request, "icon.png")) %> "
For that you have to add the following two imports in the code
mport="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"
import="oracle.portal.provider.v2.url.UrlUtils"
This library is available with the JDeveloper and I dont get any error while compiling and even deploying the portlet war file on the applcation server. Strangely the same piece of code shows the image perfectly for the default show page of the portlet but it generates 500 Internal server error for the other simple jsp page I added, which suggests that the server is unable to find the function:
500 Internal Server Error
java.lang.NullPointerException
at oracle.portal.provider.v2.url.UrlUtils.constructResourceURL(Unknown Source)
at _htdocs._elogbooksubsystems._DAQ._jspService(_DAQ.java:54)
[SRC:/htdocs/elogbooksubsystems/DAQ.jsp:15]
at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
at java.lang.Thread.run(Thread.java:534)
Can anybody help? Is this possible to use oracle api in the pages which are though added to the portlet but not the standard show modes pages?
Thanking you in anticipation
Regards,
Omer Alvi
Message was edited by:
user574208
Message was edited by:
user574208Thanks Nrintala. I tried to work with multipage portlet example provided in the jpdk. In fact I created another portlet with two pages and copied the code of the two pages of the multipage portlet. (Off course I took care of the names and stuff). Later I modified the provider.xml by defining "next_page" parameter. When I viewed my portlet, first page appeared fine but when I click on the link which should show the second page, I got an error which says.
Error: Error occurred while rendering portlet - see provider log file for details.
Do you think I have missed something? I am depoying my war file on the stand alone OC4J and some how I have not been able to find the application.log file in my application inside the application_deployments of the J2EE_HOME. I have pasted the provider.xml file and I would be grateful if you can help.
<?xml version = '1.0' encoding = 'UTF-8'?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>false</session>
<passAllUrlParams>true</passAllUrlParams>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>mulitpage</name>
<title>testing multi page</title>
<description>My Portlet Description</description>
<timeout>40</timeout>
<showEditToPublic>false</showEditToPublic>
<hasAbout>false</hasAbout>
<showEdit>false</showEdit>
<hasHelp>false</hasHelp>
<showEditDefault>false</showEditDefault>
<showDetails>false</showDetails>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<contentType>text/html</contentType>
<showPage>/htdocs/mulitpage/first.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
</portlet>
</provider>
Best regards,
Omer
Message was edited by:
user574208
Message was edited by:
user574208 -
Unable to deploy a simple servlet using WAR file on Oracle9iAS v9.0.3
Hi All,
I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
I have installed Oracle9iAS J2EE and Web Cache v9.0.3 on Windows 2000 server.
It includes:
- Oracle HTTP Server
- Oracle9iAS Containers for J2EE
- Oracle9iAS Web Cache
- Oracle Enterprise Manager
The release of installed Oracle9iAS is Release 2 (9.0.3)
I referred following link to Deploy Applications Using WAR file:
http://otn.oracle.com/products/ias/daily/sept12.html
As mentioned in this documentation I have followed following steps to deploy WAR file:
1] I have created a war file by name SimpleServlet.war. In SimpleServlet.war, there is a servlet by name Simple which prints time at which servlet was accessed.
2] I have modified <ora9ias_home>\j2ee\home\config\application.xml and added following web module entry:
<web-module id="SimpleServlet" path="../../home/applications/SimpleServlet.war" />
3] To make this module accessible from over the web, I have modified file
<ora9ias_home>\j2ee\home\config\default-web-site.xml and added following entry:
<web-app application="SimpleServlet" name="SimpleServlet" root="/SimpleServlet"/>
4] I saved both the files and started Oracle HTTP Server and accessed page as below:
http://<server>:7777/SimpleServlet/Simple
where Simple is servlet in SimpleServlet.war file.
In the browser, The page cannot be found is shown to user. I have verified that SimpleServlet.war is extracted to SimpleServlet folder under <ora9ias_home>\j2ee\home\applications folder. I found that Simple.class is stored under WEB-INF/classes folder and web.xml contains correct entry for url pattern for servlet Simple.
What else could be the problem? Am I placing the war file in wrong place or modifying application.xml or default-web-site.xml in a wrong directory?
This is very urgent. Please help me with your valuable comments on this.
Thanks in advance.
Regards,
SandeshHi All,
I am facing problem while deploying a simple servlet
using WAR file on Oracle 9i App Server.
I have installed Oracle9iAS J2EE and Web Cache v9.0.3
on Windows 2000 server.
It includes:
- Oracle HTTP Server
- Oracle9iAS Containers for J2EE
- Oracle9iAS Web Cache
- Oracle Enterprise Manager
The release of installed Oracle9iAS is Release 2
(9.0.3)
I referred following link to Deploy Applications
Using WAR file:
http://otn.oracle.com/products/ias/daily/sept12.html
As mentioned in this documentation I have followed
following steps to deploy WAR file:
1] I have created a war file by name
SimpleServlet.war. In SimpleServlet.war, there is a
servlet by name Simple which prints time at which
servlet was accessed.
2] I have modified
<ora9ias_home>\j2ee\home\config\application.xml and
added following web module entry:
<web-module id="SimpleServlet"
path="../../home/applications/SimpleServlet.war" />
3] To make this module accessible from over the web,
I have modified file
<ora9ias_home>\j2ee\home\config\default-web-site.xml
and added following entry:
<web-app application="SimpleServlet"
name="SimpleServlet" root="/SimpleServlet"/>
4] I saved both the files and started Oracle HTTP
Server and accessed page as below:
http://<server>:7777/SimpleServlet/Simple
where Simple is servlet in SimpleServlet.war file.
In the browser, The page cannot be found is shown to
user. I have verified that SimpleServlet.war is
extracted to SimpleServlet folder under
<ora9ias_home>\j2ee\home\applications folder. I found
that Simple.class is stored under WEB-INF/classes
folder and web.xml contains correct entry for url
pattern for servlet Simple.
What else could be the problem? Am I placing the war
file in wrong place or modifying application.xml or
default-web-site.xml in a wrong directory?
This is very urgent. Please help me with your
valuable comments on this.
Thanks in advance.
Regards,
SandeshHave you restarted you http server and then tried to load it again? Are you using the right port; maybe you have to use port 7778? Check you server settings in the http server instance. Also check your url binding of you application at Farm > Application Server: infrastructurehost > OC4J_instance > Application: appname > Web Module: modulename
Good luck!
rgds Thomas
Maybe you are looking for
-
Siri no longer functions with ios 6.1
I have an iphone4s that I just upgraded the IOS from 6.01 to 6.1 and Siri no longer functions. It just freezes at "what can I help you with" and never does anything or it indicates by voice that there is a problem. Cell WIFI and local WIFI are fu
-
Portal Drive Authentication Issue
Hi Folks, I have installed the Portal Drive on my Desktop. It works quite good except the authentication of my user-id. This means, whenever I connect to a KM folder that can be accessed by "Everyone", everything works well. All functionalities are p
-
Wi-Fi just stopped working.
I have a 2nd generation touch that has worked flawlessly for the last year. I tried to go online today and it will not log on. I get a message that says page will not loadt because it is not connected. All setting are correct, nothing has been change
-
Integrity check fails on column key
Dear DBA's, I am getting error while creating encrypted tablespace "ORA-S8342: Integrity check fails on column key" actually i am trying to work on Wallet, I created wallet key without auto login option initially and i created the tablespaces, user a
-
Hi, I upgraded and then rebooted when I was half asleep and then GRUB gave me error 18: Selected cylinder exceeds maximum supported by BIOS. The system was working fine before this and I am NOT dual booting. I tried grub-install /dev/sda1 from ins