Getting Java Beans working with Developer Forms 6i
Hello everyone,
I have been trying to get Java Beans to work with the Developer Forms 6i. I keep getting diffrent errors depending on the bean I play with. I will detail the problems and the computer setup. I am sure this problem is a configuration one, I just dont seem to have enough experiance to determine the issue or the configuration problem.
Here are the problems I am encountering:
Problems 1:
--JDeveloper 10g
I cant see the VBean class. When I add this code, the VBean decleration comes up with an error.
import oracle.forms.ui.VBean;
public class MyNewClass extends VBean
public Class1()
This code shows the IMPORT statement with a wavy blue line under it and the word VBean after the extends also has on. I understand that this means that the JDeveloper cant find the class, I just cant seem to find the correct environment variable to set to point to this.
Second Problem:
--Forms 6i
I open forms, and create a new form. I then add a datablock and a canvas. I open the canvas and drop the BeanArea component on the canvas. I enter the fully pathed/qualified Bean in the Implementation Class and get one of three errors. Either a FRM-13008, a FRM-99999 with a 13009 or a 13010 error. I suspect that the 13008 error is because the bean I created does not have the correct decleration types or IView interface calls. My problem is that when I load any of the Oracle provided beans I get the 13009 or 13010 errors. I have looked here and in Metalinks for some kind of solution that I haven't already tryed, but to no avail.
Any advice on either of these problems would be appreciated. Please keep in mind that we cant upgrade to version 9 or 10 yet (silly aif force and their regulations), so those type of solutions arn't usable to me.
Here is the configuration information that I know about. If there is more information that can be provided or I need to provide more information, please let me know and I will get what I can.
Thanks,
Bill Hunsicker
============= Config Information =======================
Forms Version 6.0.8.25.2
JBuilder Version and Information
Oracle IDE 9.0.5.13.88
Business Components Version 9.0.5.13.52
UML Modelers Version 9.0.5.12.38
Versioning Support 9.0.5.12.38
WebDAV Support Version 9.0.5.12.38
Designer Generators Framework 9.0.5.3.39
java.version 1.4.1_02
java.home C:\Oracle\JDeveloper\jdk\jre
java.vm.name OJVM Client VM
java.vm.vendor Oracle Corp.
java.vm.version 9.0.5.972 4dopv
user.language en
user.region <no value assigned>
user.name Bill.Hunsicker
user.home C:\Documents and Settings\Bill.Hunsicker
user.dir C:\Oracle\JDeveloper\jdev\bin
os.name Windows XP
os.version 5.1
os.arch x86
ide.patches
ide.user.dir
FORMS60_JAVADIR = C:\orant\FORMS60\java
CLASSPATH = C:\orant\FORMS60\java;C:\orant\TOOLS\COMMON60\JAVA\IMPORTER.JAR;C:\orant\forms60\java\P3load.jar;C:\orant\forms60\java\f60all.jar
Ok, I added the f60all.jar to the project. This allowed me to create the file using the VBean. I created the JAR file and copied it to the forms60/java directory. I also copied the new .class files to the forms60/java/mil/af/rs/leads direcory.
I then edited my formsweb.cfg file and had to add the jinit_archive tag. I set it = f60all.jar, P3load.jar. I also added my P3load.jar file to the default archive tag.
When I open up Forms, drop the bean area component on the canvas, and set the Implementation Class, I still get an error (13008), and when I run the form in web, and click the button to invoke the bean I get no response from the bean.
here is the code to invoke the bean. in_filename is a text component on the canvas and contained in the CTRL block. The bean area is named BEAN (because the demo was that way).
:in_filename := get_custom_property('BEAN',1,'getFileName');
synchronize;
Not sure where to go from here, but thanks for the help so far.
Similar Messages
-
BLIND PANIC! Can't get any bean working with 9i
Please please help!
We cannot get a simple test bean to be picked up by the .jsp page. Two of us have been here for 7 hours now. It worked fine with JRUN - just place the bean in the correct folder. What are we doing wrong?
We need to get beans working fast! The deadline for this stage of the project is upon us!!!
The error:
Request URI:/test/
Exception:
oracle.jsp.parse.JspParseException: Line # 18, Error: Unable to find class for bean: genBean defined by tag with class: GenericBean
The jsp page:
<%--
-- globals.jsa -- holds stuff global to the whole application
--%>
<%@ page import="java.sql.*, javax.sql.*, oracle.jsp.dbutil.ConnCacheBean" %>
<event:application_OnStart>
<jsp:useBean id="genBean" class="GenericBean" scope="application">
<jsp:setProperty name="genBean" property="Color" value="4"/>
</jsp:useBean>
</event:application_OnStart>
The bean:
I assume the bean itself is ok 'cos it worked with JRun - It is a tiny tester and has been archived correctly into GenericBean.jar which consists of two files, Manifest.mf and GenericBean.class.
Again please help. Thanks
nullMake sure that you have the beans (classes) placed in the correct class path. These paths should work:
1)[docroot]/WEB-INF/classes
2)[docroot]/servlets
The 1st path is what you really should be using for JSP. If this directory does not exist then create it, and put your beans in it.
Dennis
null -
Unable to get java bean working
I have been trying to get my iWS6 to run java bean but has not been able to do so. I tried a few beans and I get the same message on the log:
3 errors, 1 warning
, stack: org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
..\ClassCache\https-sgp-web.sci.sing.seagate.com\departments\eis\_jsps\_testuser_jsp.java:60: Class jsp.UserProfile not found.
jsp.UserProfile profile = null;
^
..\ClassCache\https-sgp-web.sci.sing.seagate.com\departments\eis\_jsps\_testuser_jsp.java:63: Class jsp.UserProfile not found.
profile= (jsp.UserProfile)
^
..\ClassCache\https-sgp-web.sci.sing.seagate.com\departments\eis\_jsps\_testuser_jsp.java:68: Class jsp.UserProfile not found.
profile = (jsp.UserProfile) Beans.instantiate(this.getClass().getClassLoader(), "jsp.UserProfile");
^
3 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:891)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1064)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:953)
, root cause:Sir
Still my jsp files can't find java beans.
I set classpath properly .
my document directory = c:/raju
i put my jsp file = c:/raju/jsp/<jsp files>
and servlet files = c:/raju/servlet/<servlet class files>
actually jsp files and servlets were working successfully,
if i add my java beans inside my jsp file the it shows error.
inside my jsp file
<%@ page import ="something.myclass" %>
<jsp:useBean id="db" scope="session" class="something.myclass" />
Note: "something" is package name;
#----- this line i modified inside jvm12.conf file
jvm.classpath=C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;c:/raju/WEB-INF/classes/;
Thanks
raju -
recently updated to firefox 5.0 .. after doing so, Java is missing. I've tried to download Java and when doing so, still does not work. I use a Mac, I also use Safari.. (when in Safari) I have no issues.
I am no unable to access my work intranet. I've tried to uninstall and reinstall Firefox, NO LUCK. I've uninstalled Java and reinstalled.. NO LUCK (although it will work with Safari).recently updated to firefox 5.0 .. after doing so, Java is missing. I've tried to download Java and when doing so, still does not work. I use a Mac, I also use Safari.. (when in Safari) I have no issues.
I am no unable to access my work intranet. I've tried to uninstall and reinstall Firefox, NO LUCK. I've uninstalled Java and reinstalled.. NO LUCK (although it will work with Safari). -
How do I get Jave to work with Pogo
I am having a very difficult time with Jave and Pogo any advise?
If you have an idea for a new Print App that you would like to see, please submit your suggestion at the below link:
https://h30495.www3.hp.com/idea/submit
If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
Although I work for HP, my posts and replies are my own opinion and not those of HP. -
Sun Java Plug-in with Developer forms 10.1.2.0.2
Someone ask me (here at my work) if we can switch between JInitiator to Sun Java Plug-in.
I am not sure about Sun Java Plug-in implementation or even more, I don't have any documentation about it.
Is these possible?
We can use our web application through the internet using Sun Java Plug-in instead of JInitiator?
How can I setup to do that?
thanks a lot.
Abdel MirandaHI people:
I have a wear behavior in my web application using Java Plug-in.
Let me put my environment straight:
1. iDS 10g Rel. 10.1.2.x
2. OC4J Enbedded on iDS
3. Webutil 1.0.6
Problem:
I can test one module at time, and they works just fine, without any problem or error or bad behavior.
But, if I access my complete application, which has menu, modules, reports, etc. It has some wear and strange behavior. If I try to move to any item on any module with the mouse it can be possible.
I don't really know which are the problem with this behaivor but these issues occur as soon as I connect to the application. The main module is a log in screen. It works fin, let me move with the mouse or with the keyboard. But after write the user, password and string info and press the connect button, the behavior change.
It doesn't matter which module I access, I can't move or use my mouse to execute any operation on any module.
The only moves I can do is press the button bar or the menu options associated with the main module.
Does anybody has an idea of these wear behavior.
I need help ASAP.
Thanks in advanced.
Abdel Miranda -
Cant get java to work with firefox trying to download clip from youtube but wont load java
I'm tryng to download clips from youtube using keepvid - my mac air wont load java and i'm using firefox any tips? have updated the software
Ok I have been following the instructions supplied on this website http://www.zentus.com/sqlitejdbc/usage.html.
I have downloaded the jar and the dll file and have placed them into the same folder as my jar file. Then as it says I enter into the command line:
"java -cp sqlitejdbc.jar - Djava.library.path=. - jar CBL_Program.jar" and I get this:
Exception in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at cblprogram.Main.main(Main.java:28)
Which seems to be the same exception as when I run the program from netbeans.
I am really stumped on this one, please can someone help. -
How can one get java to work with SnowLeopard and FF13
SInce the install of the most recent Java update (9) for SnowLeopard (10.6.8) Firefox 13 simply advises that there is no plugin installed. The behavior the update indicates will take place (where the web page provides the option to enable the plugin) simply has never presented itself. At this point, java is simply no longer available on a Mac running SNowLeopard and using Firefox. Is there a solution to this other than upgrading to Lion?
Yes. However, do note that FF is only on the machine for testing, I don't use it, preferring Safari. Any further issues with FF are best answered at http://support.mozilla.org/
-
I can't get java to work with Firefox on my mac with OS 10.6.8. I did everything suggested and still no luck. Java is installed, enabled, and updated. I can't even activate java per site because I don't get the "click here to activate" box for some reason. Apple support said it's a firefox problem and they can't help me. I need to be able to use java!
hello, please update firefox to the latest version & your OS to 10.6.8.
[[Update Firefox to the latest version]]
http://support.apple.com/kb/HT4561 -
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However, I could not get it to work with Apple loaded with Yosemite even with reader installed . Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
ThanksLiveCycle = XFA forms.
afaik - These cannot be used in Apple OSs.
Be well... -
WHY can't Apple get their Java to work with Homestead SiteBuilder??!! Please someone work this out
Is Java enabled in Safari / Preferences - Security?
Try the SiteBuilder help center.
Perhaps using a different browser may help.
Try Firefox or Chrome.
Mozilla Firefox Web Browser — Free Download
Google Chrome - The web is what you make of it -
Cursor hilight zone when java bean works
Hello
I have a problem with a forms that allows to get data in a text field but also contain a java bean that works periodically (every 5 sec).
When the java bean makes a work, the cursor hilights the field and seems to select the datas of the zone.
So it 's not possible continue to write data inside the field because the next action often destroy the selected data.
Is there a way to force form to leave the cursor in a textfield zone even if a java bean works ?
thank's for your help.
Mike.Hello,
Why don't you put the Keep cursor position property to yes on the Text Item ?
Francois -
How to work with PDF forms filled up by the user?
I would appreciate any help regrading work with PDF Forms.
I present a PDF form to users with several fields that they need to fill up.
My problem is to receive the values of these fields back.
In PDF forms you can add a "Submit" button that sends the fields to a given servlet.
That, however, takes me out of my session and out of JSF navigation model.
I can't find a way to go back.
The PDF form is shown in an iframe, so Java Script outside of the iframe cannot know about the "Submit" button action.
Thanks for any help or reference on this subject.Hi Sridhar
Thanks for ur reply. but iam not getting any clear idea on forms.
just i will tell u , wat i understood,if i am wrong pls correct me. in pe51 we create form layout
and specify fields in required format, later run the program RPCEDTU0.wat is the program for indian payroll?
thanks in advance. -
JavaBean not working with Oracle Forms (URGENT)
I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from the form to the bean and get a parameter back to the form from the Javabean. The bean is called on the when-button-pressed event of a form button. The problem is, the form doesnt seem to invoke the bean at all. There seems to be no communcation between the form and the bean at runtime on-click of the form button other that all the messages in the form procedure being displayed.
The event code for the button is,
Declare
setNewMsg varchar2(2000) := 'Hello World';
getData varchar2(2000);
BeanHdl Item;
Begin
BeanHdl := find_item('Block3.MYBEAN');
If NOT ID_NULL(BeanHdl) Then
Message('Before Set');
SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
Message('Before Get');
getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
SYNCHRONIZE;
Message(getData);
Message('After Get');
Message(' ');
Else
Message('The ID is null');
Message(' ');
End If;
END;
The javabean code is,
package oracle.forms.beans;
import java.awt.*;
import java.io.*;
import java.beans.*;
import oracle.forms.ui.*;
import oracle.forms.properties.*;
import oracle.forms.handler.*;
import oracle.ewt.lwAWT.*;
public class SimpleTestBean extends VBean {
public static final ID SETMESSAGE = ID.registerProperty("setMessage");
public static final ID GETMESSAGE = ID.registerProperty("getMessage");
private String msg = "";
public String newMessage() {
return msg;
public Object getProperty(ID id) {
try {
if (id == GETMESSAGE) {
return newMessage();
return super.getProperty(id);
catch (Exception e) {
e.printStackTrace();
return null;
public boolean setProperty(ID id, Object value) {
try {
if (id == SETMESSAGE) {
msg = (String) value;
return super.setProperty(id, value);
catch (Exception e) {
e.printStackTrace();
return false;
ThanksHi,
I have written a Javabean program which I invoke from Oracle Forms. The program is designed to pass a parameter from Oracle Form(Ver 6i) to the java bean and get a parameter back to the form. The Javabean is called on "When-Button-Pressed" event of a Form button. The problem is, Form doesn't seem to invoke the bean at all. There seems to be no communication between the Oracle Form and the Javabean at runtime.
On-click of the Form button though all test messages in the Form trigger are being displayed (Even message before and after the Set_Custom_Property & Get_Custome_Property). The only issue is the Form variable doesn't show the returned value from the bean. So the big question is - Whether the bean is invoked at all or not.
If YES then how to check it and if NO then how to communicate with the bean from Oracle Form. I am attaching the code of Javabean and trigger code.
Thanks & Regards
NOTE : All the ClassPath for the JavaBean has been set properly and the Form is also recognizing the Implementation Class for the Javabean.
The Trigger Code is,
--- This code is written on When-Button-Pressed trigger of Form button.
--- The form also contains the bean area "MYBEAN", which i have referred in the code.
Declare
setNewMsg varchar2(2000) := 'Hello World';
getData varchar2(2000);
BeanHdl Item;
Begin
BeanHdl := find_item('Block3.MYBEAN');
If NOT ID_NULL(BeanHdl) Then
Message('Before Set');
SET_CUSTOM_PROPERTY(BeanHdl,1,'setMessage',setNewMsg);
Message('Before Get');
getData := GET_CUSTOM_PROPERTY(BeanHdl,1,'getMessage');
SYNCHRONIZE;
Message(getData);
Message('After Get');
Message(' ');
Else
Message('The ID is null');
Message(' ');
End If;
END;
The Bean Code is,
package oracle.forms.beans;
import java.awt.*;
import java.io.*;
import java.beans.*;
import oracle.forms.ui.*;
import oracle.forms.properties.*;
import oracle.forms.handler.*;
import oracle.ewt.lwAWT.*;
public class SimpleTestBean extends VBean {
public static final ID SETMESSAGE = ID.registerProperty("setMessage");
public static final ID GETMESSAGE = ID.registerProperty("getMessage");
private String msg = "";
public String newMessage() {
return msg;
public Object getProperty(ID id) {
try {
if (id == GETMESSAGE) {
return newMessage();
return super.getProperty(id);
catch (Exception e) {
e.printStackTrace();
return null;
public boolean setProperty(ID id, Object value) {
try {
if (id == SETMESSAGE) {
msg = (String) value;
return super.setProperty(id, value);
catch (Exception e) {
e.printStackTrace();
return false;
------------------------------------------------------------------------------------------ -
Hello I need help on getting java to work on my computer.
Hello I when to a class during the summer learning java and it would be a shame to let this class go to waste.
I have been emailing my teacher trying to get java to work but it hasn't been working out.
I have tried to get a hole of him lately but I can't reach him anymore.
So I decided to join this forum to hopefully get it to work.
I was told to download Jedit.
So I compiled it and then ran it.
And it said.
java.lang.NoClassDefFoundError: SwingUI
Exception in thread "main" Process java exited with code 1
What can I do to fix this?
If there is any information that I must give about this situation that would help you understand my problem please tell me because I would really enjoy this to be fixed.I suggest DevSquare (http://www.devsquare.com). Its easy to get started as you dont require any set up on your machine and has good editor features like auto completion, templates, code navigation and prompt error messages support that redirect to the corresponding line in the code. You can also debug your applications and refactor your code using this tool. I found it quite useful as it also has a code base where code bytes are availble.
Refer to the links below to overcome the issues faced by you.
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/
http://java.sun.com/developer/onlineTraining/Programming/BasicJava1/compile.html
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/learning/new2java/index.html
Maybe you are looking for
-
Every time a box pops up in any kind of site where I have to fill in a user name or password, Firefox tries to prompt me w/ old email address and emails. I don't want that to happen and don't want those email shown...how do I delete those and keep th
-
Web template - Drop Down Box options - Issue
<b>Requirement:</b> We need drop downboxes for Fiscal Period and Version in our web template. When the query is run, users will choose one fiscal period and one budget version (there are multiple budget versions - 1. Original Budget, 2. Revised Budge
-
My ethernet port is not working
I recently had my macbook sent into the store to repair a bad logic board (fried in a thunderstorm) and over the past month I have noticed that my ethernet port wasn't working. Before the storms our router was acting up so I figured our maintenance w
-
In-Browser Editing and File Management
Dealing with files in IBE is a mess, period. There is no way to tell any details about your media (dimensions would be a start). Again, I know it is a young part of Muse and I am excited for it, but I'm hoping I'm not the only one that views it as co
-
Import camera archive not working in iMovie '11 on 1.8.2?
I typically copy the contents of my camcorder to a folder on disk and then would select "import camera archive". However, now with Moutain Lion it is not recognizing any of my folders as a AVCHD folder? As a test, I took a DMG file (which is how I us