How to run BC4J JSP programs generated by JDeveloper 9i?
I used JDeveloper 9i to:
Create a new Project Workspace
Create New Business Components
Click on Run, Run Project
The Java application works perfectly alright.
Click on New, BC4J JSP, Business Components JSP Application
Then a full set of JSP source code is generated based on the Business Components Java Application.
Right-click on main.html, Run main.html
I can see that deployment of the JSP programs is OK but the Internet Explorer does not start the main.html.
I enter address: http://localhost:8988/ in Internet Explorer and can see that OC4J is running.
I would like to enter the path of the deployed JSP program.
How can I know what is the path of the URL?
I have change the settings in tools->preferences to point to the right location, i.e.
C:\Program Files\Internet Explorer\IEXPLORE.EXE
Internet Explorer does not start after it shows:
C:\oracle\ora9ids\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\ora9ids\j2ee\home\oc4j.jar -Dhttp.proxyHost=hqproxy.vtc.edu.hk -Dhttp.proxyPort=8080 com.evermind.server.OC4JServer -config C:\oracle\ora9ids\jdev\system\oc4j-config\server.xml
[Starting OC4J using the following ports: HTTP=8990, RMI=23893, JMS=9229.]
[waiting for the server to complete its initialization...]
Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
ApplicationServer: appName = bc4j
ApplicationServer: appName = current-workspace-app
Similar Messages
-
hi how to develop the html and jsp 's using eclipse IDE what are the steps to follow inorder to develop and run the jsp's using Eclipse IDE
Eclipse cannot do that. You need an application server for that. Best what you can do is to integrate that application server in Eclipse using a plugin and run the application server from within Eclipse. There are lot of tutorials available about that. You can find them at www.eclipse.org and wiki.eclipse.org.
-
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 run a Concurrent Program from the back end?
Hi,
How to run a Concurrent Program from the back end?
Is it Possible to see that Concuurent Request id which we run from the back end, in the front end?
If yes, then Please Give reply how to write the code
Thanks in Advance,
Bharathi.SThis is documented in Chapter 20 of the Application Developers Guide http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121devg.pdf. These MOS Docs also have some information available
221542.1 - Sample Code for FND_SUBMIT and FND_REQUEST API's
235359.1 - How to Launch Planning Data Pull MSCPDP using FND_REQUEST.SUBMIT_REQUEST
HTH
Srini -
How to run automatic payment program business area wise
dear all
please let me know how to run automtic payment program business area wise.
for example business area 2020 we want to make payment business area wise.
what are the back gorund settings for congigration Tc- fbzp
wht are the configrations forTC- f110
regards
babuHi,
You can make payments business area wise if you had ticked payment goup business area wise in the payment method in company code screen. However you will have to give company codes in the payment parametets, but payments will be grouped by business area.
Thanks,
Ramesh. -
How do I make this program generate a new problem once the button is hit
Here is the code... appreciate any help given
How do I make this program generate a new set of problem when the "NEXT" button is clicked and continue until the END button is hit
package javaapplication3;
import java.awt.GridLayout;
import java.awt.Window;
import javax.swing.*;
import java.awt.event.*;
* @author Sylvester Saulabiu
class Grid extends JFrame{
final int score = 0;
final int total = 0;
Grid(){
//Set Layout of Flashcard
setLayout(new GridLayout(4, 4, 2 , 2));
//Create Panels
JPanel p2 = new JPanel();
JPanel p3 = new JPanel();
final JPanel p1 = new JPanel();
//Create Radio buttons & group them
ButtonGroup group = new ButtonGroup();
final JRadioButton ADD = new JRadioButton("Addition");
final JRadioButton SUB = new JRadioButton("Subtraction");
final JRadioButton MUL = new JRadioButton("Multiplication");
final JRadioButton DIV = new JRadioButton("Division");
p2.add(ADD);
p2.add(SUB);
group.add(ADD);
group.add(SUB);
group.add(MUL);
group.add(DIV);
p2.add(ADD);
p2.add(SUB);
p2.add(DIV);
p2.add(MUL);
//Create buttons
JButton NEXT = new JButton("NEXT");
JButton END = new JButton("End");
//Create Labels
JLabel l1 = new JLabel("First num");
JLabel l2 = new JLabel("Second num");
JLabel l3 = new JLabel("Answer:");
JLabel l4 = new JLabel("Score:");
final JLabel l5 = new JLabel("");
JLabel l6 = new JLabel("/");
final JLabel l7 = new JLabel("");
//Create Textfields
final JTextField number = new JTextField(Generator1());
final JTextField number2 = new JTextField(Generator1());
final JTextField answer = new JTextField(5);
//Add to panels
p1.add(l1);
p1.add(number);
p1.add(l2);
p1.add(number2);
p1.add(l3);
p1.add(answer);
p1.add(l4);
p1.add(l5);
p1.add(l6);
p1.add(l7);
p3.add(NEXT);
p3.add(END);
//Add panels
add(p2);
add(p1);
add(p3);
//Create Listners
NEXT.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int answer1 = 0;
//Grab the numbers entered
int numm1 = Integer.parseInt(number.getText());
int numm2 = Integer.parseInt(number2.getText());
int nummsanswer = Integer.parseInt(answer.getText());
//Set the score and total into new variabls
int nummscore = score;
int nummtotal = total;
//Check if the add radio button is selected if so add
if (ADD.isSelected() == true){
answer1 = numm1 + numm2;
//otherwise check if the subtract button is selected if so subtract
else if (SUB.isSelected() == true){
answer1 = numm1 - numm2;
//check if the multiplication button is selected if so multiply
else if (MUL.isSelected() == true){
answer1 = numm1 * numm2;
//check if the division button is selected if so divide
else if (DIV.isSelected() == true){
answer1 = numm1 / numm2;
//If the answer user entered is the same with th true answer
if (nummsanswer == answer1){
//add to the total and score
nummtotal += 1;
nummscore += 1;
//Convert the input back to String
String newscore = String.valueOf(nummscore);
String newtotal = String.valueOf(nummtotal);
//Set the text
l5.setText(newscore);
l7.setText(newtotal);
//Otherwise just increase the total counter
else {
nummtotal += 1;
String newtotal = String.valueOf(nummtotal);
l7.setText(newtotal);
//Create End listener
END.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// get the root window and call dispose on it
Window win = SwingUtilities.getWindowAncestor(p1);
win.dispose();
String Generator1(){
int randomnum;
randomnum = (1 + (int)(Math.random() * 20));
String randomnumm = String.valueOf(randomnum);
return randomnumm;
public class Main {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
JFrame frame = new Grid();
frame.setTitle("Flashcard Testing");
frame.setSize(500, 200);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}Edited by: SirSaula on Dec 5, 2009 4:39 PMExtract code into methods, so that when an action is performed a method is called. That way you can reuse the method for purposes such as resetting textfields to their default values, scores to default values, etc.
You can go one step further and seperate the GUI layer from the processing layer, by deriving classes that for example maintain and calculate a score.
Mel -
How to run a ABAP Program in Batch JOB
How to run a ABAP Program in Batch JOB ?
Hello Manish,
Using transaction SM36 you can define the batch job along with the start conditions for that job.
1. Transaction SM36.
2. Give the Z name of the job in the 'Job Name' input field.
3. Click on 'Steps' button from the application toolbar.
4. On the 'Create Step 1' dialog box, give the name of the ABAP program in the 'ABAP Program' section' along with the variant.
5. Click on 'Check Input' button from the dialog box.
6. Click on 'Save' button from the dialog box once the check is successful.
7. One list will be shown. Click on Back button from the standard toolbar.
8. Click on 'Start Conditions' button from the application toolbar. Specify the start condition e.g. immediate. Click on save.
9. The job staus is now scheduled.
10.Click on Save button from the standard toolbar of SM36. The job status will be released.
Using SM37 you can monitor the status of the job.
This will sort out your problem.
PS If the answer solves your query, plz reward points.
Regards -
How to run a java program in another folder
Hello!
I want to run for example the java class file in the path ./sourcecode/javafile.class. It works fine if I do the following:
cd sourcecode
java javafile
but it cannot work if I do:
java sourcecode/java
The error it outputs is NoClassDefFoundError.
Can someone tell me how to run a java program in another folder
thanks a lot.You need to specify the classpath using the -cp flag when running. so instead of
"java sourcecode/javafile"
Try
"java -cp sourcecode javafile" -
How to run servlet,jsp in eclipse software
can any one tell me how to run servlet ,jsp in eclipse
and how to start tomcat server in eclipse
reply me
regards
saravanaCan anybody help me as I wanted to know how to run servlet,jsp in eclipse software...
If somebody can forward me the screenshots than it would be of great help....
Thanks -
How to run the Servlet program?
hi, all, I am new to servlet, and I want to know how to run the servlet program. I got the TomCat and Java JDK install in my computer, something else I need for create and run the servlet program?
no that is all u need to run servlets. u can try few of the servlets that come with tomcat
-
How to run the package programs in eclipse ?
hi all,
how to run the package programs in eclipse ?
plz clarify...
regards
balakrishna.mpackage source code is
package package1;
public class ClassaA
public void displayA()
System.out.println("class A");
}java source code is import package1.ClassA;
class Packagetest1
public static void main(String args[])
ClassA objectA = new ClassA();
objectA.displayA();
}if i write the notepad means its executing successfully..
but in eclips is not working..
plz help me.. -
how to run windows application programs in mac book pro, how to run windows application programs in mac book pro
Install Windows..either by Boot Camp or via virtual machine from VMWare, Parallels or Virtual Box
-
How to run the dynamic jnlp generate by jsp, but cache one is not dynamic?
Hi Web Start expert,
I need some urgent help on this issue. I want to pass some session info from my protal web app to my java app through web start. I have tried to use a servlet or jsp to generate a dynamic JNLP which will include all the necessary properties. It works fine if I don't include a href attribute in my jnlp tag. but I won't be able to launch the application off line. So I include the href to point to a static jnlp file resides in the same directory where jars are installed. This time when web start launches, my Java application does not seem to recognize all the login properties I passed through web application, and launch the Login Dialog. What I want to do is, if I come from the portal, since I had signed on to the portal, I don't need to login again to the java app. but when next time I click on the offline shortcut on my desktop for my Java app, I need to sign on to launch my Java app that was cached on the client machine. What is the best way to do this? Please help!
Thanks in advance.
JennyThe problem here is, when you acess the servlet from the browser, the servlet generates the jnlp file with the properties based on the full reference to the servelt (ie: http://myhost.com/servlet?arguments=xxx;yyy).
If you put the href in the jnlp file:
<jnlp codebase="http://myhost.com" href="servlet">, When Java Web Start is invoked, it will re-download the jnlp file using just "http://myhost.com/servlet", This will cause the servlet to generate jnlp file w/o the propertys that were based on the arguments and parameters to the url.
On the other hand, if you try to add the arguments and parameters to the href wirh <jnlp codebase="http://myhost.com" href="servlet?arguments=xxx;yyy"> two problems occur.
1.) java web start (all versions thru 1.4.2) will generate the cache directory based on the whole string "servlet?arguments=xxx;yyy" this means that every invocation is a seperately cached app, and you will get lots of entries in the download applications page in the Application Manager.
2.) on some platforms, generating cache directory with "?" or ";" can cause IOExceptions.
These problems will be addressed in 1.5:
1 - the cache directory will be based only on the string up to the first "?" or ";".
2 - jnlp files w/o href, will still be shown in the downloaded applications, and can be launched offline (if offline-allowed)
In the mean time the only work around I have heard, is someone tried modifying the servlet, to first download the jnlp file with the correct parameters and args but with href="servlet", but caching the jnlp file generated, and then when java web start requested the servlet with no args, a few seconds later, sending it back the cached version.
/Dietz -
i am writing a simple jsp file
i dont know how to run in the tomcat server
for servlets first i created the dot class files by using the command prompt and then in the tomcat server we go the webapps folder and i copy the class files and due to xml file i run the program
I have added the jsp-api.jar and el-api.jar files in the environment variables so what i do to run the jsp
can anyone can tell me how to do that
here is the program
<%@page contentType="text/html" import="java.util.*" %>
<!--
Date.jsp
-->
<html>
<body>
<p> </p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing
="0" width="460" bgcolor="#EEFFCA">
<tr>
<td width="100%"><font size="6" color
="#008000"> Date Example</font></td>
</tr>
<tr>
<td width="100%"><b> Current Date
and time is: <font color="#FF0000">
<%= new java.util.Date() %>
</font></b></td>
</tr>
</table>
</center>
</div>
</body>
</html>i am getting an http 500 error for running the jsp file
here is the code
<%@ page import="java.util.Date" %>
<% Date now = new Date(); %>
<html>
<body>
<p>Hello, world! It is now <%= now.toString() %>.</p>
</body>
</html> -
How to get the custom program generated in Background
Dear Freinds,
I have written a below code in my submit program ( zreport) .
REPORT ZHRRPCPRRU0_SUBMIT NO STANDARD PAGE HEADING MESSAGE-ID zhr_msg.
SUBMIT RPTQTA00 VIA SELECTION-SCREEN
WITH pnpbegda = sy-datum
WITH pnpendda = lv_date
with pnppernr = '99007057'.
As per your logic i have used the submit program and i am able to default the dates in the Standard program RPTQTA00 , that is perfectly correct . Now if run the standard report it is giivng me the ouput ..so the foreground concept is working correctly.
Now if iam scheduling the Z report of the custom report (z program) where iam calling the submit program
it is just scheduling and further when i look at the sm37 i can see the job getting finished . However , i dont find any spool because the standard report has not been executed , with my custom report (using the logic with submit program above in zprogram ) i am calling the standard program (RPTQTA00).
so could you please let me know how the standard program will execute and get the spool genereated? in the case of background
because when i have executed only the standard report in background i can see that it is being exceuted spool as well, however when iam calling from custom program no spool is created because my custom program only submiting the standard report and it is not executing the standard report in the case of backround ...because when iam running the custom program in the Foreground it is calling the standard program and getting the values defaulted based on the parameters which i passed , so it gets defaulted later iam running the standard program manually .
So please could you let me know how will the standard program also gets genereated in the backgroung along with my custom report.
Thanks in advance
regards
madhuri,Hi Can you try the following?
Hope this helps... (Taken from help)
Example
Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
Maybe you are looking for
-
Hello, I was wondering why I can't subscribe to iTunes match in Israel? It says my country/region isn't supported yet Israel shows up on apple's iTunes match supported country list. Thank you for your help, Daniel
-
How to group by below query?
Hi All, I have below query, SELECT username,firstname,lastname,country FROM emp e1 WHERE EXISTS ( SELECT 1 FROM emp WHERE e1.lastname = firstname AND e1.firstname) = lastname ) OR EXISTS ( SELECT 1 FROM emp WHERE lastname = e1.lastname AND firstname)
-
hi ! gurus this is my problem i have a field in this format : 20021201 (date) but a need in this format 01/dec/2002 and... another field in this format 2314224 ( hour) but ai need in this format 23:42:24 (sometimes the format is 45621) but in fact it
-
Show message using uix:pageLayout
In UIX forums,"Oracle Technology Network > Forums " is shown on the pageLayout. Can I show some message on the same position using <uix:pageLayout>?
-
Problem with o=NetscapeRoot replication
Hello, I'm using iDS 5.1sp1 on Solaris8/Sparc, to support iMS5.2. To have replication, I installed a new iDS5.2sp1 (Machine B) pointing is configuration to the old iDS5.2sp1 (Machine A). After this I configured the replication (in multi-master mode)