Deployment of class file in oracle 10g Application Server
Hi,
I have a class file
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType ("text/html");
PrintWriter out = res.getWriter();
out.println("<HTML>");
out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
out.println("<BODY>");
out.println("<BIG>Hello World</BIG>");
out.println("</BODY></HTML>");
now I like to deploy(in oracle 10g Application Server) and run this file.
please help me.
Hi
You have to deploy Servlet as a WAR File. I hope you already have web.xml file which u can get automatically in eclsipse during creation of servelet. I am not sure what ide u r using here. If u have created servlet in eclipse then I would suggest create a project dynamic webproject if u have not where IDE create all required files autmatiicaly and even you can deploy application from there itself.
If you wanted to deploy manually then follow below steps (if u have war file)
I am assuming you already created a Weblogic Domain and have admin username/password. Start your domain. Login into weblogic console like http://host:port/console and use admin username/password. Then from Deployments section, deploy the above WAR file. In Weblogic you can deploy JAR (EJBs, java files), WAR (web jsp, html, webservices, servlets) or EAR (JAR + WAR). In your case its just a WAR file.
Thanks
Sujit Singh
Similar Messages
-
Not Loaded status after deploying a EAR file in Oracle 10g application serv
Hi,
I am deployed a simple ear file in Oracle App Server 10g. The deployment went on well. But when i use the enterprise manager to see the status , it shows 'Not Loaded'.
Can any body kindly give me a suggestion on why this is happening.
Any help is highly appreciated.
Thanks
SKHi,
You have to register your Portlet provider.
How to register new portlet in Oracle Portal 10g ?
Here are the steps -
1- Go to your oracle portal home page e.g. http://oracleportal.com/pls/portal
2- Login into the oracle portal by clicking on 'login' link
3- Go to the Builder and then Administer
4- Click on Portlets tab
5- Click on 'Register a Provider' in 'Remote Providers' portlet.
6- Enter the provider URL and other information and click finish. Normally the provider URL for portlets developed using JPDK is in the form of http://[your portal]/[context root]/providers/
Please note that you must have deployed the portlet before trying to register the provider for the portlet.
Best Regards,
Kevin -
Deploy the .ear file in Oracle 10g Application server10.1.3
Hi Friends,
I have deploy the .ear file in Oracle10g Application Sever 10.1.3 through Enterprise Manager. in Progress Messages shows the application has been successfully deployed,like this
when i hit the URL in Web brower, i got a HTTP 403 showing.............
Plz help me ..............
Sep 27, 2008 12:11:41 PM] Application Deployer for BO13 STARTS.
[Sep 27, 2008 12:11:41 PM] Copy the archive to C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear
[Sep 27, 2008 12:11:42 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear begins...
[Sep 27, 2008 12:11:42 PM] Unpacking BO13.ear
[Sep 27, 2008 12:11:49 PM] Done unpacking BO13.ear
[Sep 27, 2008 12:11:49 PM] Unpacking backoffice.war
[Sep 27, 2008 12:11:53 PM] Done unpacking backoffice.war
[Sep 27, 2008 12:11:53 PM] Unpacking backoffice-help.war
[Sep 27, 2008 12:11:57 PM] Done unpacking backoffice-help.war
[Sep 27, 2008 12:11:57 PM] Unpacking resourceadapter-rar.rar
[Sep 27, 2008 12:11:57 PM] Done unpacking resourceadapter-rar.rar
[Sep 27, 2008 12:11:58 PM] Initialize C:\product\10.1.3\OracleAS_1\j2ee\BO13Dev\applications\BO13.ear ends...
[Sep 27, 2008 12:11:58 PM] Starting application : BO13
[Sep 27, 2008 12:11:58 PM] Initializing ClassLoader(s)
[Sep 27, 2008 12:11:58 PM] Initializing EJB container
[Sep 27, 2008 12:11:58 PM] Loading connector(s)
[Sep 27, 2008 12:11:59 PM] Starting up resource adapters
[Sep 27, 2008 12:11:59 PM] Processing EJB module: shared-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: store-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: storeops-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: parameter-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: report-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: scheduler-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: workflow-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: item-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: employee-webapp-app-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: journal-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: label-webapp-app-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: label-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-ejb.jar
[Sep 27, 2008 12:11:59 PM] Processing EJB module: timemaintenance-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: party-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: customer-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: calendar-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: currency-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: financial-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: till-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: tax-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: postprocessor-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: codelist-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: trigger-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: report-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: parameter-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: item-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: store-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: admin-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: dashboard-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: storeops-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: pricing-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: task-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: storeserver-webapp-app-ejb.jar
[Sep 27, 2008 12:12:00 PM] Processing EJB module: transaction-webapp-app-ejb.jar
[Sep 27, 2008 12:12:11 PM] Compiling EJB generated code
[Sep 27, 2008 12:12:58 PM] Initializing EJB sessions
[Sep 27, 2008 12:12:58 PM] Committing ClassLoader(s)
[Sep 27, 2008 12:12:58 PM] Initialize backoffice begins...
[Sep 27, 2008 12:12:58 PM] Initialize backoffice ends...
[Sep 27, 2008 12:12:58 PM] Initialize backoffice-help begins...
[Sep 27, 2008 12:12:58 PM] Initialize backoffice-help ends...
[Sep 27, 2008 12:12:58 PM] Started application : BO13
[Sep 27, 2008 12:12:58 PM] Binding web application(s) to site default-web-site begins...
[Sep 27, 2008 12:12:58 PM] Binding backoffice web-module for application BO13 to site default-web-site under context root backoffice13dev
[Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.springframework.web.context.ContextLoaderServlet for web application backoffice
[Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.quartz.ee.servlet.QuartzInitializerServlet for web application backoffice
[Sep 27, 2008 12:13:01 PM] Initializing Servlet: org.apache.struts.action.ActionServlet for web application backoffice
[Sep 27, 2008 12:13:05 PM] Binding backoffice-help web-module for application BO13 to site default-web-site under context root backoffice-help
[Sep 27, 2008 12:13:05 PM] Initializing Servlet: oracle.help.web.OHWController for web application backoffice-help
[Sep 27, 2008 12:13:06 PM] Initializing Servlet: oracle.cabo.servlet.UIXServlet for web application backoffice-help
[Sep 27, 2008 12:13:06 PM] Binding web application(s) to site default-web-site ends...
[Sep 27, 2008 12:13:06 PM] Application Deployer for BO13 COMPLETES. Operation time: 85020 msecs
Thanks
HariCan you tell me what's the status of components (value of "In sync" column) when you run "dcmctl getState" command?
Thanks
Shail -
Cannot redploy WAR files on Oracle 10g Application Server 9.0.4
Hello,
I may be missing something obvious, but how do I redploy .WAR files using the 10g Enterprise Manager? It has an option to Deploy WAR files, but not Redeploy them.
If this is not possible, could someone tell me how to create an EAR file manually from the command line, or point to a URL with some instructions? I do not always have access to a GUI when creating the .WAR files, so I cannot use JDeveloper nor X-WIndow based UNIX applications.
Thanks for any advice you can offer.Just use the same "Deploy" option. If there is a previous deployment, It will be automatically removed. In another word, the "Deploy" option is also the "Redeploy" option. Isn't it simple? The same can be said with an EAR file.
-
Error in undeployment the Ear File in oracle 10g Application server
Hii while undeploying EAR in Oracle Enterprise Manager 10g. I am getting following error message and an resoluation message,which i could not able to proceed further
An error occured while undeploying the application.Base Exception : Another operation in progress which prevents your operation from completing at this time.
Resolution : If you are using a file-based repository and there are no other concurrent operations,please use the dcmctl utility resetFile Transaction command to clean up any abnormaly terminated file-based repository operations.
I have tried undeploying 3 times via OEM then executed.
/LOCALDATA4/ora10gAS/dcmctl resetFileTransaction twice as indicated in the resolution
but error still persists.
Have restarted the server several times also but same error occurs.
Pls help me.
Thanks
Praveen TyagiCan you tell me what's the status of components (value of "In sync" column) when you run "dcmctl getState" command?
Thanks
Shail -
Urgent: problem running reports in Oracle 10g application server
Hi all,
our problem is that we deployed a jsp report as Ear file in Oracle 10g application server in infrastructure node.deployment says successfull.when we try to run that report it says 401 unauthorised.while sending request we are passing the database username,password &sid is this correct or any configuration setting to be done to make it run.
one morething normal jsp works fine.when we run reports jsp it gives the above mentioned 401 error.hello,
when you deploy reports JSPs they still require the reports specific componentes (e.g. TLD file, classes, ...) etc be available. i doubt that's the case in your ear file.
thanks,
ph. -
Oracle 10G Application Server : Getting Servlet error
Hi,
When I am trying to execute the JSP after deploying the same as war file in Oracle 10G Application server, I am getting the following exception.
I am not sure why this sample jsp is not compiling and giving this classnot found exception.
Exception is:
SampleJSP: Servlet error
javax.servlet.ServletException: java.lang.ClassNotFoundException: Sample_Hello
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:323)
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.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
This is working fine with Tomcat server when I tried to test from my Netbeans IDE.
thanksHi
I could figure out the problem. For Oracle AS, we need to include the folloiwng in web.xml file. Now every thing is working fine for me.
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
<init-param>
<param-name>check_page_scope</param-name>
<param-value>false</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
Thanks -
Deployment of Oracle 10g Application on oracle 10g application server
Sir,
I am new in this forum. Please guide me how to deploy oracle 10g application on oracle 10g application server.Dear Ghulam,
1)Create A new OC4j instance on Oracle 10g Application Server
2)Deploy ur war or ear file accordingly on this OC4J.
3)Create the datasource ie connection of application with the database
4)Tune your Java Parameters inside the OC4J for better performance.
The details of this is explained on the above post ie two link.
Regards
Fabian -
Deploying Oracle Retail Applications in Oracle 10g Application Server
Hi All..
Can anyone help me to know:
How to Deploy Oracle Retail Applications(like RMS,ReIM,RIB) in Oracle 10g Application Server.
Regards.Hi Ahmed,
It sounds you have not yet had the chance to lay eyes on the installation guides - they are not perfect but should point you in the right direction.
Please start at http://www.oracle.com/technetwork/documentation/oracle-retail-100266.html and check out the install guide per application module.
Best regards,
Erik -
Installation of Oracle 10g Application Server in custom port or 1522
I want to install Oracle 10g Application Server in Port 1522 or some other port as in port 1521 Oracle 10g database server is already installed.
But every time I try to install Oracle 10g Application Server it give the warning about 1521 port and then start installing on same 1521 port automatically.
What should I do if I want to install in some other port ?
Please help
ThanxAs a method, to install an OAS on a custom port,
1) make a file called staticports.ini and define your components/ports there.
2) on the Specify Port Configuration Options screen, select Manual and specify this file.
Follow this link for details for 10g.
http://download.oracle.com/docs/cd/B14099_19/win.1012/install.1012/install/reqs.htm#CHDJACIG
However, there are ways to use the same port for OAS and DB depending upon the version of your listener. Check the version of your DB Listener, and if it is 10.1.0.2 or higher then you are just good to go with automatic port assignments.
AMN -
Setting of ICONS in Oracle 10G Application Server
Hi...
I'm facing a problem of Icons which are not displayed at run time.
I'm using Oracle 10G Application Server.
plz tell what setting should i do.
its urgent.
Thanks & Regards
Sanjeev Kumar1 did u put the icon file in the forms folder in IAS?
2 Are you able to access the icon if u directly enter the icon value ?
http://www.Alexyscorp.com/myicon.gif
if its not port 80 enter the port
3 In the httpd.conf file whats the root directory ? Try putting the icon there
Best Regards
Rajesh Alex
Message was edited by: Rajesh Alex
Alex(AlexysCorp) -
Anybody installed Oracle 10g application server on windows 2008 (64 bit) se
Has anybody installed Oracle 10g application server on OS : windows 2008 (64 bit) server.
which version of OAS we should use?l. we are using dell server .
regds
santosh
Edited by: user5429538 on Feb 24, 2010 2:59 AMHi Santosh,
Has anybody installed Oracle 10g application server on OS : windows 2008 (64 bit) server.I dont think any version of Oracle Application Server is certified for windows 2008 yes.
But, u can Install Oracle Application Server 10g Release 2 (10.1.2.0.2) on windows 2003 (64 bit) server
Please refer below links for download and to check certification:
http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
http://www.oracle.com/technology/software/products/ias/files/as_certification_r2_101202.html
http://www.oracle.com/technology/software/products/ias/files/oracle_soa_certification_101310.html
Hope helps
Regards,
X A H E E R -
Oracle 10g Application Server 10.1.3.0 Installation for 64 bit
Hi,
Can anyone let me know if there is an Oracle 10g Application Server 10.1.3.0 download available for 64 bit windows 2003 Enterprise Edition installed on Intel X64 Xeon Processor (EMT64T).
Rgds
SatyaThanks jm.
But when i tried to check from otn downloads there is a 64 bit deployment version available for itanium processors which we are not able to install on xeon processors. Anyways i installed the 32 bit version of 10G 10.1.3 on 64 bit and its working fine. Can you find out if there is any memory consuption for the 32 bit server when installed on 64 bit windows server
thanks once again for your promt reply -
Oracle 10g Application Server Stand By Creation
Hi all ,
I am newbe for oracle 10g application server . I need to know that how to create stand by applicattion server and how to make the report server name same as production server so that in case of emergency i can quickly shift on stand by.What we did was build the second server and powered it down. If our main data server loses power we start it up. The two servers are never up at the same time.
To change the report name :
1. Backup the file $ORACLE_HOME/sysman/emd/targets.xml.
[oracle@tasias02 emd]$ pwd
/u01/app/oracle/product/midtier/sysman/emd
cp targets.xml targets.xmlbackup
2. Modify the file targets.xml by changing all the occurrences of the wrong reports server name by the correct one.
i.e. Replace rep_old with rep_new (4 places - changes)
Copy the conf file as follows: ( this will named different from system to system )
cp /u01/app/oracle/product/midtier/reports/conf/rep_old.conf /u01/app/oracle/product/midtier/reports/conf/rep_new.conf
run this script:
/u01/app/oracle/product/midtier/bin/addNewServerTarget.sh rep_new (change rep_new to new report server name)
3.Update the changed configuration .
/u01/app/oracle/product/midtier/dcm/bin/dcmctl updateconfig -ct opmn -v -d
/u01/app/oracle/product/midtier/dcm/bin/dcmctl resyncinstance -v -d
4. Restart the Application Server Control Console
/u01/app/oracle/product/midtier/bin/emctl stop iasconsole
/u01/app/oracle/product/midtier/bin/emctl start iasconsole
In the file:
/u01/app/oracle/product/midtier/reports/config/reportsConfig.properties
Change the Reports_Server_Name setting from "rep_old" to "rep_new" (change rep_new to new report server name)
For 11 use this note :
How to Create Two Reports Servers With the Same Name in the Same Subnet? [ID 437228.1]
Best Regards
mseberg -
Auditing in oracle 10g database and oracle 10g application server
Dear friends,
We have oracle 10g application server and oracle 10g database server in place.My criteria is to audit users connected using oracle application user credentials to the database.
Can you please tell me how can i do it.
Thanks & regards,Its the database connection you want to track. The session audit will show where it came from.
Auditing is turned using this command:
alter system set audit_trail = DB scope=spfile;
Note: The use of spfile will require a DB bounce before audit starts
To audit Sessions:
audit create session;
Query by Audit Type:
SELECT A.USERNAME,
OS_USERNAME,
A.TIMESTAMP,
A.RETURNCODE,
TERMINAL,
USERHOST
FROM DBA_AUDIT_SESSION A
WHERE USERHOST = <replace with iAS servername> ;
By User
SELECT USERNAME,OBJ_NAME,ACTION_NAME , TIMESTAMP
FROM DBA_AUDIT_TRAIL WHERE USERNAME = 'SCOTT';
Check for users sharing database accounts
select count(distinct(terminal)),username
from dba_audit_session
having count(distinct(terminal))>1
group by username;
Attempts to access the database at unusual hours
SELECT username, terminal, action_name, returncode,
TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS'),
TO_CHAR (logoff_time, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') <
TO_DATE ('08:00:00', 'HH24:MI:SS')
OR TO_DATE (TO_CHAR (TIMESTAMP, 'HH24:MI:SS'), 'HH24:MI:SS') >
TO_DATE ('19:30:00', 'HH24:MI:SS');
Attempts to access the database with non-existent users
SELECT username, terminal, TO_CHAR (TIMESTAMP, 'DD-MON-YYYY HH24:MI:SS')
FROM dba_audit_session
WHERE returncode <> 0
AND NOT EXISTS (SELECT 'x'
FROM dba_users
WHERE dba_users.username = dba_audit_session.username);
Other audits you might consider:
audit grant any object privilege;
audit alter user;
audit create user;
audit drop user;
audit drop tablespace;
audit grant any role;
audit grant any privilege;
audit alter system;
audit alter session;
audit delete on AUD$ by access;
audit insert on AUD$ by access;
audit update on AUD$ by access;
audit delete table;
audit create tablespace;
audit alter database;
audit create role;
audit create table;
audit alter any procedure;
audit create view;
audit drop any procedure;
audit drop profile;
audit alter profile;
audit alter any table;
audit create public database link;
Best Regards
mseberg
Maybe you are looking for
-
HT202213 How do I use Home Sharing when my wife an I have had separate Apple ID's?
The instructions for Home Sharing say to set up the same Apple ID on each device. What if we have been using different Apple ID's and want to share our music versus constantly duplicating songs over and over.
-
Creating/replacing a file in a directory, without a prompt or error
I am attempting to do something fairly simple in LabView but it seems that there must be an easier or more elegant way than the way I am doing it. I have the main .vi running in c:\programs and it calls another .vi in the same directory. In this su
-
What is the Common Practise of Direct/Indirect Exchge Rate for USD LC in SG
Dear Experts, I am from Singapore and I have customer wants to have local currency in USD Currency, because they have 80% of business transactions are in USD. If customer chooses to have local currency which is different with the stay country currenc
-
Why is my phone not recognized as my device?
When I plug in my phone in the computer to charge or update apps, my phone is being recognized as another phone name or device in our household. In ITunes under devices is shows my name to my phone. Just not sure why the computer is not recognizing m
-
Could you help out a comp-sci student from Germany?
Dear database experts, my name is Anna and I'm a comp-sci student from Germany, currently in the process of writing my Bachelor's Thesis on the use of mobile devices for monitoring and administrating RDBMS. I'm conducting a survey among database expe