Problems deploying a simple Infobus Applet

Hi,
I am testing the infrastructure required to build an Infobus
Applet for our Web-based application using the Business Component
Framework in JDeveloper 3.0.
I have created a simple project based on the Scott schema, which
uses the Java Business Object framework to define Entity Objects,
Views, etc. for the Dept and Emp tables.
I have then created, using the Wizard, an Infobus Data Form to
create a master-detail Applet to display Employees within a
Department based on the above mentioned View Object. This works
fine when running within JDeveloper3.
However, when I try to deploy the applet to our Oracle
Application Server as a simple HTML file and JAR file (not using
EJB, etc. as we currently only have OAS 4.0.7.1 - waiting for OAS
4.0.8 to be available for download), the applet fails to start.
I have installed the Java Plug-in 1.2.2 from Sun as documented as
I'm using Swing controls.
After much frustration with the online 'Help', I managed to
create a deployment profile which included the appropriate
archives (See Packaging Source and Deployment Files in Help -
still refers to 'Rules' and 'Sources' pages ala JDeveloper 2 NOT
3.0).
Using the Console feature of the Java Plug-in, I was able to see
the progress of the Applets classes being loaded. It gets to the
point where it's trying to load the ResTable classes in
dacf.zip as found in the path:
oracle\dacf\control\swing\find
At this point, it just stops and nothing else happens.
Do I need to explicitly localize my Infobus Applet because I'm in
the United Kingdom and my PC has that as it's Regional Setting?
That is, do I need to define a ResTable_en_GB version of this
class?
Also, in attempting to create a localized version, I had errors
with JDeveloper stating that the text for the FIND_HELP_MESSAGE
exceeds the limit of JDeveloper (meaning that it's too long and I
needed to replace it with a shorter string). Could this be the
problem in the first place?
I have not been able to get the Applet to get beyond this point,
although I'm still trying the localization to Great Britain.
I know this is already a LONG email, but here is an extract from
the Java Console after which nothing else happens:
CacheHandler file name: null
Opening
http://dell_server.wsp.co.uk:4005/oracle/dacf/control/swing/find/
ResTable_en.properties no proxy
Opening
http://dell_server.wsp.co.uk:4005/oracle/dacf/control/swing/find/
ResTable_en.properties with cookie
"SITESERVER=ID=8e93834f82ef0710b78e5a4b087d6eed".
Regards
Gene Schneider
null

Parameter passing in EJB must implement Serializable. One way to solve this is:
1. Define a new class which implements
Serializable.
2. Place whatever you want to pass inside
this class.
3. Now use the new class as your parameter.
eg.
public class Params implements java.io.Serializable {
String p1;
XmlDocmuent xdoc;,
etc, etc
Your program now have to use the class Params for parameter passing.
Hope this helps.
Tam
null

Similar Messages

  • Problems deploying a simple EJB

    I am trying to deploy a simple EJB on the 8.1.5. The bean only owns a single method that needs a unique parameter.
    No problems with compilation of source bean, home and remote interfaces, whatever the type of this parameter is.
    But when I try to deploy the jar on the server, I only succeed if the parameter of my method is a simple type (int, String ...).
    If I try the same passing a complex type (here a oracle.xml.parser.v2.XMLDocument type), I encounter this message from the deployejb tool :
    Generating EJBHome and EJBObject on the server...
    Compilation errors in oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:ORA-29535: source requires recompilationjava/lang/Object: Authorization error for referenced class Oracle/xml/parser/v2/XMLDocument.java/lang/Object: Authorization error for referenced class oracle/xml/parser/v2/XMLDocument.oracle/aurora/ejb/gen/test_myFluxInsert/EjbObject_FluxInsert:50: Class oracle.xml.parser.v2.XMLDocument not found in type declaration.
    public java.lang.String insereFlux (oracle.xml.parser.v2.XMLDocument arg0)
    ^ Info: 3 errors
    And if I use an int instead of the XMLDocument parameter, everithing's right.
    Can anybody submit a no-paranormal solution ?
    Thanks.
    GH

    Parameter passing in EJB must implement Serializable. One way to solve this is:
    1. Define a new class which implements
    Serializable.
    2. Place whatever you want to pass inside
    this class.
    3. Now use the new class as your parameter.
    eg.
    public class Params implements java.io.Serializable {
    String p1;
    XmlDocmuent xdoc;,
    etc, etc
    Your program now have to use the class Params for parameter passing.
    Hope this helps.
    Tam
    null

  • Problems deploying a simple EJB on Weblogic 8.1 using JDeveloper

    Hey guys,
    Title says it all. First I had one problem in that I could not test the connection to the Weblogic server. I moved the weblogic.jar file into the lib/ext folder and that test worked then. After that I wrote the EJB...a very simple one...and I followed the http://dev2dev.bea.com/pub/a/2006/01/wls-jdeveloper.html?page=1 tutorial so far. But when it came time to deploy the ejb to the server, I am getting this funky error:
    ERROR: ejbc found errors while processing the descriptor for C:\oracle\jdeveloper\jdev\mywork\WeblogicApp\EchoEJB\deploy\ejb1.jar:
    ERROR: Error from ejbc: Error processing 'META-INF/ejb-jar.xml': XML document does not appear to contain a properly formed DOCTYPE header
    Honestly I am confused now...any one encounter that error?
    Thanks for all replies.
    Cheers

    So I added the DOCTYPE and now I get another error. And that is as follows:
    ERROR: Error from ejbc: Error parsing file 'META-INF/ejb-jar.xml' at line: 5 column: 219. Attribute "xmlns:xsi" must be declared for element type "ejb-jar".
    It seems that when the EJB is created, then it automatically creates the appropriate ejb-jar.xml and for some reason I guess the one it is creating this time is not good enough for Weblogic because first the DOCTYPE was missing and then after inserting the DOCTYPE I am getting the above error. Any help would be appreciated. This is the first time I am using Weblogic and this is a rather disheartening amount of progress I have made since last night! ;(
    Thanks in advance for any help. If I am doing something silly please point it out so I can learn!
    Cheers,
    Surya

  • Deployment of an infobus applet : access denied

    When I deploy my program, I get the following errors after the
    data login dialog:
    Access denied (java.net.Socket Permission "hostname" resolve)
    My applet try to read/write via an infobusdataform on the server
    hostname
    Thanks
    null

    Hi!
    I solved the problem!
    I got this messages because I used thr oracle14 - driver. This driver was already signed and i tried to sign the whole program again...
    Thats it!
    I just used another driver, which isnt signed... easy but effective!

  • InfoBus applet deployment steps

    It seemed that some "users" have had success with the deployment
    of the InfoBus applet, can someone be kind enough to post the
    steps / process, ie to share their success stories
    thanks in advance
    null

    Make sure below :
    1.Only contain the application's class files,XML file,and
    connection.properties file in your .jar file.
    2.Distribute .jar file with runtime libaries for Infobus applet:
    class111.zip,connectionmanager.zip,dacf.zip,infobus.jar,
    javax_ejb.zip,jbomt.zip,jboremote.zip,jndi.jar,
    jdev-rt.zip,swingall.jar,xmlparser.jar
    3.Try your applet with IE browser.
    null

  • FYI: Deploying Infobus Applet

    This is a response to multiple posts on problems with deploying
    the Infobus Applet tutorial.
    When you create your applet.jar file, here are some explicit
    steps to follow when using the Deployment wizard, followed by
    some general notes on deploying applets:
    1. Select Project->Deploy->New Profile from the menu.
    2. Click Next to get past the Welcome page, then accept the
    default 'Deploy to Simple Archive' and click Next.
    3. On the Rules page, click << to shuttle all the rules back to
    the left. We won't use the rules, but will explictly select
    which source files to include from our project on the next page.
    Click Next.
    4. On the Sources page, select your HTML file, XML file, and
    Applet java file and click > to shuttle them over to the right.
    Click Next.
    5. Here is where things get tricky in the deployment phase. For
    this specific tutorial. You do NOT want to include dependency
    classes in your archive since you will deploy those separately.
    Therefore, you want to ADD the oracle.dacf, oracle.jbo and javax
    packages to the list of packages to EXCLUDE from the archive:
    a. Click the Exclude button to display a list of packages.
    b. Expand the oracle node and select the dacf subnode.
    c. Click OK. Notice that oracle.dacf is added to the list of
    packages to exclude from your archive.
    d. Repeate a-c for oracle.jbo and javax.
    e. The exclusions list on the Dependencies page should now
    include oracle.dacf, oracle.jbo and javax (in addition to the
    original default values)
    f. Click the Preview button to show what will be included in
    your archive. It should ONLY show your .class, .xml and .html
    files from your project, a connection.properties file and the
    manifest.
    6. Click Next.
    7. Enter a name for your archive jar file and click Finish to
    generate it. Click Yes when prompted if you want to deploy now.
    Copy the .jar file and each of the .jar/zip files listed in the
    tutorial to your webserver. If the .jars will reside in a
    different directory than the HTML file that calls the applet,
    then you need to set the CODEBASE tag accordingly (relative path
    from the HTML file to the archives).
    Most of the archives you need to deploy are in the redist
    directory. The classes111.zip file you deploy depends on which
    driver you used, but by default will be in jdbc/lib/oracle8.1.5.
    Basically, you want your applet archive file to contain ONLY the
    class and xml files for your applet, and you want to deploy all
    other 'referenced' archives separately (and list each of them in
    the ARCHIVE tag of your applet's HTML file). This provides a few
    benefits:
    * your applet archive is much smaller because it doesn't
    include all referenced class files
    * if you have multiple Infobus applets, you only have to deploy
    the commonly referenced archives once, not package them with each
    applet and deploy them over and over which takes up space on the
    server
    As a side affect of the above deployment strategy, you have to
    explictly tell the deployment wizard to EXCLUDE these referenced
    packages that it would normally try to include in your archive.
    That is accomplished on the Dependencies page of the wizard as
    described above.
    The Preview button will show you what is included. From there,
    you can determine which packages to Exlcude. Keep checking the
    Preview list to make sure you have stripped it down to the bare
    minimum.
    Hope this helps some.
    L
    null

    Hong,
    Are you using an internationalized operating system and/or
    Browser? This appears to be related to a Resource file which
    contains translated strings.
    L
    Hong (guest) wrote:
    : Hi,
    : I did the same way as you mention below. I get this following
    : error message. I guess it couldn't find this class. I don't
    even
    : know where I can find this class.
    : Thanks
    : Hong
    : These are the error message:
    : Opening
    http://web/java/oracle/dacf/dataset/ResTable_en_US.class
    : no proxy
    : java.lang.ClassFormatError: oracle/dacf/dataset/ResTable_en_US
    : (Bad magic number)
    : at java.lang.ClassLoader.defineClass0(Native Method)
    : at java.lang.ClassLoader.defineClass
    : (ClassLoader.java:403)
    : at java.security.SecureClassLoader.defineClass
    : (SecureClassLoader.java:101)
    : at sun.applet.AppletClassLoader.findClass
    : (AppletClassLoader.java:144)
    : at java.lang.ClassLoader.loadClass(Compiled Code)
    : at sun.applet.AppletClassLoader.loadClass(Compiled Code)
    : at java.lang.ClassLoader.loadClass(Compiled Code)
    : at java.util.ResourceBundle.findBundle(Compiled Code)
    : at java.util.ResourceBundle.getBundle(Compiled Code)
    : at java.util.ResourceBundle.getBundle
    : (ResourceBundle.java:334)
    : at oracle.dacf.dataset.Res.<clinit>(Res.java:16)
    : at oracle.dacf.dataset.SessionInfo.<clinit>
    : (SessionInfo.java:59)
    : at package1.Applet1.<init>(Applet1.java:207)
    : at java.lang.Class.newInstance0(Native Method)
    : at java.lang.Class.newInstance(Compiled Code)
    : at sun.applet.AppletPanel.createApplet
    : (AppletPanel.java:532)
    : at sun.plugin.AppletViewer.createApplet
    : (AppletViewer.java:759)
    : at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
    : at sun.applet.AppletPanel.run(Compiled Code)
    : at java.lang.Thread.run(Thread.java:479)
    : JDeveloper Team (guest) wrote:
    : : This is a response to multiple posts on problems with
    : deploying
    : : the Infobus Applet tutorial.
    : : When you create your applet.jar file, here are some explicit
    : : steps to follow when using the Deployment wizard, followed by
    : : some general notes on deploying applets:
    : : 1. Select Project->Deploy->New Profile from the menu.
    : : 2. Click Next to get past the Welcome page, then accept the
    : : default 'Deploy to Simple Archive' and click Next.
    : : 3. On the Rules page, click << to shuttle all the rules back
    : to
    : : the left. We won't use the rules, but will explictly select
    : : which source files to include from our project on the next
    : page.
    : : Click Next.
    : : 4. On the Sources page, select your HTML file, XML file, and
    : : Applet java file and click > to shuttle them over to the
    : right.
    : : Click Next.
    : : 5. Here is where things get tricky in the deployment phase.
    : For
    : : this specific tutorial. You do NOT want to include
    dependency
    : : classes in your archive since you will deploy those
    : separately.
    : : Therefore, you want to ADD the oracle.dacf, oracle.jbo and
    : javax
    : : packages to the list of packages to EXCLUDE from the archive:
    : : a. Click the Exclude button to display a list of packages.
    : : b. Expand the oracle node and select the dacf subnode.
    : : c. Click OK. Notice that oracle.dacf is added to the list
    : of
    : : packages to exclude from your archive.
    : : d. Repeate a-c for oracle.jbo and javax.
    : : e. The exclusions list on the Dependencies page should now
    : : include oracle.dacf, oracle.jbo and javax (in addition to the
    : : original default values)
    : : f. Click the Preview button to show what will be included
    in
    : : your archive. It should ONLY show your .class, .xml and
    .html
    : : files from your project, a connection.properties file and the
    : : manifest.
    : : 6. Click Next.
    : : 7. Enter a name for your archive jar file and click Finish to
    : : generate it. Click Yes when prompted if you want to deploy
    : now.
    : : Copy the .jar file and each of the .jar/zip files listed in
    : the
    : : tutorial to your webserver. If the .jars will reside in a
    : : different directory than the HTML file that calls the applet,
    : : then you need to set the CODEBASE tag accordingly (relative
    : path
    : : from the HTML file to the archives).
    : : Most of the archives you need to deploy are in the redist
    : : directory. The classes111.zip file you deploy depends on
    : which
    : : driver you used, but by default will be in
    : jdbc/lib/oracle8.1.5.
    : : Basically, you want your applet archive file to contain ONLY
    : the
    : : class and xml files for your applet, and you want to deploy
    : all
    : : other 'referenced' archives separately (and list each of them
    : in
    : : the ARCHIVE tag of your applet's HTML file). This provides a
    : few
    : : benefits:
    : : * your applet archive is much smaller because it doesn't
    : : include all referenced class files
    : : * if you have multiple Infobus applets, you only have to
    : deploy
    : : the commonly referenced archives once, not package them with
    : each
    : : applet and deploy them over and over which takes up space on
    : the
    : : server
    : : As a side affect of the above deployment strategy, you have
    to
    : : explictly tell the deployment wizard to EXCLUDE these
    : referenced
    : : packages that it would normally try to include in your
    : archive.
    : : That is accomplished on the Dependencies page of the wizard
    as
    : : described above.
    : : The Preview button will show you what is included. From
    : there,
    : : you can determine which packages to Exlcude. Keep checking
    : the
    : : Preview list to make sure you have stripped it down to the
    : bare
    : : minimum.
    : : Hope this helps some.
    : : L
    null

  • Deploying InfoBus Applet

    I am new to java and JDeveloper. I have created a simple InfoBus Java Applet with a connection to an Oracle database. How do I test to see if it works outside the Jdeveloper environment. I went through the steps of packaging my files into a .jar file, deploying this jar file into my deployment directory:jdev\redist, copying the .zip and .jar files referenced in my html file into my deployment directory. What do I do now? Do I need to set a classpath to my deployment directory? How do I execute the application, which is in the jar file, to view in a web browser?

    You have made a few mistakes.
    You can easily package your applet by creating a deployment profile (Project | Deploy | New Deployment profile...)
    Once you include all the appropriate libraries and such, you will have a Jar/Zip file.
    The Redist directory has nothing to do with your deployment target - redist simply contains libraries that you can safely distribute with your apps without licencing issues.
    Now, to test your applet outside of JDeveloper, you can do several things:
    1. You can deploy it to your actual server, etc which you will do eventually.
    2. You can test it using the AppletViewer.
    To do this, Create a CMD shell. Go to the [JDev]\bin directory. Run SetVars.bat to initialize your environment variables. Then run AppletViewer -classpath...;YOUR-JAR appletName
    I hope this helps,
    John
    null

  • Sealing violation deploying Infobus Applet

    Hi:
    I'm trying to deploy an Infobus Applet. The database I'm using
    is Oracle 8.0.5, and I've installed the Java plug-in 1.2
    The connection dialog appears fine, but when I click the open
    button I get this exception
    405: sealing violation...
    I've read about sealing, and it seems to be a property in the
    manifest file generated in the JAR. But when I open the JAR I
    can't see the property referred in the documentation
    Any idea about what could be the problem?
    Thanks in advance
    Jose Luis
    null

    This is the whole text of the exception I get
    Jose Luis
    java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(Compiled Code)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Compiled Code)
    at sun.applet.AppletClassLoader.findClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at sun.applet.AppletClassLoader.loadClass(Compiled Code)
    at java.lang.ClassLoader.loadClass(Compiled Code)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Compiled Code)
    at
    oracle.jbo.rt.jndi.JboInitialContextFactory.getInitialContext
    (JboInitialContextF
    actory.java:52)
    at javax.naming.spi.NamingManager.getInitialContext
    (NamingManager.java:783)
    at javax.naming.InitialContext.getDefaultInitCtx
    (InitialContext.java:165)
    at javax.naming.InitialContext.<init>
    (InitialContext.java:142)
    at oracle.dacf.dataset.SessionInfo._createAppModule
    (SessionInfo.java:1476)
    at oracle.dacf.dataset.SessionInfo.connect
    (SessionInfo.java:1186)
    at oracle.dacf.dataset.DbAccessImpl.connect(Compiled Code)
    at oracle.dacf.control.swing.LoginDlg._connectToDB
    (LoginDlg.java:1641)
    at oracle.dacf.control.swing.LoginDlg._okButtonClicked
    (LoginDlg.java:1550)
    at oracle.dacf.control.swing.LoginDlg.actionPerformed
    (LoginDlg.java:1632)
    at javax.swing.AbstractButton.fireActionPerformed(Compiled
    Code)
    at
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
    (AbstractButton.ja
    va:1101)
    at javax.swing.DefaultButtonModel.fireActionPerformed
    (Compiled Code)
    at javax.swing.DefaultButtonModel.setPressed
    (DefaultButtonModel.java:250)
    at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (BasicButtonListener.jav
    a:217)
    at java.awt.Component.processMouseEvent(Component.java:3126)
    at java.awt.Component.processEvent(Compiled Code)
    at java.awt.Container.processEvent(Compiled Code)
    at java.awt.Component.dispatchEventImpl(Compiled Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.LightweightDispatcher.retargetMouseEvent
    (Compiled Code)
    at java.awt.LightweightDispatcher.processMouseEvent(Compiled
    Code)
    at java.awt.LightweightDispatcher.dispatchEvent(Compiled
    Code)
    at java.awt.Container.dispatchEventImpl(Compiled Code)
    at java.awt.Window.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    null

  • Deploy infobus applet--"Invalidating certificate principals"

    Hi, lots of questions about deploying infobus applet had been
    posted previously, but none of them is my case.
    After finishing generating "package1.jar", I copy every *.jar,
    *.zip file into my deploy directory "c:\temp" as well as the
    package1.applet1.html. But while I open this html file in
    Netscape 4.7, no applet appear. In the java console, the
    following error message appear..
    Invalidating certificate principals in [file:/C|/temp/try/,]
    Can the applet be invoked without webserver?
    I had tried to transfer the whole directory to the website(sun
    webserver), the same error message appear( only change is the
    path now is [155.69.60.117:88])
    Can anyone tell me why?
    thx
    null

    This is hardly an Advanced Language Topic, nor is it Java-related. And who uses Netscape? I'm just playing with you. No but seriously, nobody is gonna answer that here. This is a JAVA forum.

  • Infobus applet and temporary files

    Hi,
    I have made an infobus applet and deploy it with the OAS407.
    Now I have seen, that each time I load the applet from the
    OAS407 the applet create 15 files in my temp-folder with the
    prefix jar_cache (for example: jar_cache40989.tmp).
    There is no problem with creating but there is a problem with
    deleting because there is no mechanism for automatic deleting.
    So I have to delete these files manually but I think that this
    is unuseable for end-user.
    Does anybody know how to bypass this problem ?
    Thanks.
    Nils
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nils Buering ([email protected]):
    I ran into the same problem when I built an applet that uses DAC and runs the app module in the downloaded applet. The Java plugin 1.2.2 is creating these files in TEMP and these files are equal in size to the support jar and zip files downloaded to the browser. You can easily verify this by comparing file sizes (use the Properties facility when you right click a Windows file sname to see its exact size in bytes). The plugin does not delete these files when you exit the browser and thus re-creates them every time you restart the browser and access the applet from the web server potentially filling the user's disk.
    SUN has fixed this problem with the 1.3 plugin. Ater downloading and installing the 1.3 plugin, you must edit the applet's HTML file to add two new PARAM options: "cache_option" and "cache_archive". See http://java.sun.com/j2se/1.3/docs/guide/misc/appletcaching.html for instructions (a document titled "Applet caching in Java Plug-in") on doing this. This basically tells the plugin to use its own caching, instead of the browser's and doing this, the jar files created in the user's TEMP directory are deleted when you kill the browser.
    However, since Jdeveloper is not certified with Java 2 v1.3, I ran into problems with code that works under the 1.2.2 plugin. The applet no longer runs once its been downloaded: I get a permissions error in jbo.logging.show and jbo.logging.trace; to wit: (java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.sql.SQLPermission setLog). So switching to the 1.3 plugin will fix the buildup of jar files in TEMP problem; but your applets may no longer work! Best to wait until Jdeveloper is certified with 1.3 then you can run the 1.3 plugin successfully.
    Hi,
    I have made an infobus applet and deploy it with the OAS407.
    Now I have seen, that each time I load the applet from the
    OAS407 the applet create 15 files in my temp-folder with the
    prefix jar_cache (for example: jar_cache40989.tmp).
    There is no problem with creating but there is a problem with
    deleting because there is no mechanism for automatic deleting.
    So I have to delete these files manually but I think that this
    is unuseable for end-user.
    Does anybody know how to bypass this problem ?
    Thanks.
    Nils<HR></BLOCKQUOTE>
    null

  • Error in deploying a simple EJB 3.0

    Hi ,
    I am getting the following error while deploying my simple ejb of version 3.0 in Weblogic 9.2.
    Exception preparing module: EJBModule(build) [EJB:011023]An error occurred while reading the deployment descriptor. The error was: Error processing annotations: java.lang.NullPointerException.
    During my evaluation of Weblogic 9.2 for EJB 3.0 , I have got the following questions.
    EJB Specification states that EJB's in EJB 3.0 can be developed and deployed without the need of deployment descriptors. I have created a simple EJB with two file Env.java and EnvBean.java and the source code is given below.
    a) I just complied these class files and when I was trying to deploy without ejb-jar.xml and weblogic-ejb-jar.xml, the console was not at all allowing me to deploy.Why is this so?
    b) After I created a META-INF file under root of classes directory by placing ejb-jar.xml with empty <enterprise-beans> element, console was allowing me to deploy with errors in parsing ejb-jar.xml. The error was either session/entity/mdb is a required under <enterprise-beans> element. Why is this required when there are several examples stating <enterprise-beans> element can be empty.
    c) Later I updated ejb-jar.xml with <session> element under <enterprise-beans> with the following values. I got the above error when deployed with this change.
    I had been struggling to deploy this simple bean for almost a day.Pleas point me if there is any documentation that solves my stated problem or if there is a solution.Thanks in advance.
    regards
    Karim
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
    <enterprise-beans>
    <session>
    <description>This is the stateless ejb</description>
    <display-name>Env Bean</display-name>
    <ejb-name>EnvBean</ejb-name>
    </session>
    </enterprise-beans>
    </ejb-jar>
    Env.java
    package examples ;
    public interface Env {
    public void display();
    EnvBean.java
    package examples;
    import javax.ejb.Remote;
    import javax.ejb.Stateless;
    @Stateless
    @Remote(Env.class)
    public class EnvBean implements Env {
    public void display() {
    System.out.println("Welcome to EJB 3.0");
    }

    Presumably you're using the EJB3 tech preview, and not a vanilla WebLogic 9.2 install, right?
    Can you post the full stack trace?
    -Patrick

  • 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,
    Sandesh

    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,
    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

  • Unable to deploy a simple servlet using WAR file

    Hi All,
    I am facing problem while deploying a simple servlet using WAR file on Oracle 9i App Server.
    I have installed Oracle 9i App Server. 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 modfiying 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,
    Sandesh

    Hi Juliana,
    Thanks a lot for your suggestion.
    I am sorry if I have posted this message to a wrong forum. This is first time I am posting a message to OTN. I will resend message to J2EE forum as per you suggestion.
    Meanwhile, please note information you asked for is as below:
    I 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)      
    Please do reply at the earliest.
    Once again thanks and look forward to hear from you.
    Regards,
    Sandesh

  • Problem Deploying Oracle PDK Portlet to Oracle Application Server 9.0.4.0

    I have a big issue trying to deploy a pdk portlet I have created in JDeveloper (10.1.2). The application is very simple, it consists of 2 JSP's (call them Select.jsp and Display.jsp) and 1 Java Class (Call it DoEverything.java).
    The architecture of the system is VERY simple. The Select.jsp is a simple drop down list that is embedded in an html form, with the options in the drop down populated by a method call from DoEverything.java. Once the user selects an option and hits submit, he is sent to the Display.jsp, which is a simple html table that is populated by another method call from DoEverything.java. (Basically the whole system is a simple "view" of a given table in a DB based on the option selected in Select.jsp).
    The system works perfect in JDeveloper, where I created it using the Oracle PDK Java Portlet wizard. However I'm running into a problem when I try and take it over to the Application Server. The main documentation I have been following is the: Oracle® Application Server Portal Developer's Guide and in particular the section 6.6.2.4.1 Creating a Connection to Oracle Application Server Containers for J2EE where it explains how to connect to the App. Server. The line "The steps that follow describe the procedure for deploying to a standalone instance of Oracle Application Server Containers for J2EE. For information about deploying to a full Oracle Application Server instance, please refer to the Oracle JDeveloper online Help system." is the one that is bothering me the most as I am trying to deploy to a full instance of the Oracle Application Server, but I cannot find anywhere that walks me through this in the online JDeveloper help.
    Anyway, currently we ftp the appropriate JSP's, Java Class, provider.xml and provider properties files to their respective directories on the Application Server, register the provider and reboot the Http Server. (This has worked before except for the fact that when the user selected an option from the Select.jsp and the request was then sent over to the Display.jsp based on the form action the Display.jsp wasn't recognized. We figured the provider.xml file needed to be edited in this case in order to know where Display.jsp was being kept). In any event nothing seems to be working at the moment and my main concern is that it maybe we should be deploying as EAR/WAR (both of which I'm not super familiar and my second main concern is that it seems most people use JavaBeans and Struts and all sorts of different API's whereas here I just have a fairly simple Java Class back end that connects to the database and creates an object based on the attributes contained in the database (1 object for 1 unique row in the DB) and I want to be sure that the way I have developed this should still work with the Oracle AS. I'm hoping its just a matter of getting the directory structure straightened out and editing the provider.xml file to include all the JSP's.
    Sorry for the long post, but if you could address my two main concerns and possible give me or point me towards a good thorough walk through of deploying a simple system (oracle pdk java portlet) like I have developed to the App. Server it would be greatly appreciated !
    Thanks a lot.

    Basically I started to develop this system inside Oracle AS and then when it came time to passing a request to a new page, it crapped out on me on the App. Server. So instead of trying to fix the problem there and then I continued to develop outside Portal and inside Jdeveloper. After a week or two once all my stuff worked perfectly I try and take it back into Portal but only the first JSP of all my Portlets would show up, because as soon as I would submit a form and the action directed me to a new page and Portal would be lost/confused. Obviously I shouldn't have done it that way but none the less...
    So now I'm reading through the documentation you pointed me towards and it seems I have to qualify my parameters and then "attach" them to the url which the form will pass to the actioned page. I'm importing numerous classes (...urlUtils, etc) in order to qualify the parameters and then build this url without affecting any parameters currently present that my portlet does not own.
    What I'm rambling towards here is all this separation of logic and presentation and the whole nine, implies different people can develop different parts of a 'system' mostly independant of one another...so in my situation I shouldn't in huge trouble yet, since underlying everything is a working system. My issue is with oracle and the App Server. If I take my code which works great outside of the App. Server and I fully qualify parameters and make sure my form actions are constructed using the UrlUtils in order to fully qualify them as well, and then I make sure page parameters are mapped to the proper portlet parameter values....should my system work on the App Server (assuming everything is done properly)....or am I still missing something.

  • Simple java applet help

    im following the java tutorial at their web site online. I'm having problems with these simple applets:
    http://java.sun.com/docs/books/tuto...kMeApplets.html
    I compiled them fine on my other computer, but when I compiled them on the computer I am using presently, I get a problem.
    the files seem to compile fine. but when i compare them with the files online, my files that i compiled are a little less in size. when i load the applet in the provided html file, all i get is a blank gray screen. and when i move the mouse over the gray screen, it says for a split second: "load: class ClickMe not found"
    i have all the correct files...but after compiling the .java files, it doesn't work. the .class files on the web work fine. but my compiled files seem to be smaller than those on the web.
    the ClickMe.class file i compiled is 1.45 KB (1,494 bytes)
    the Spot.class file i compiled is 293 bytes (293 bytes)
    the ClickMe.class file online is 1.50 KB (1,539 bytes)
    the Spot.class file online is 339 bytes (339 bytes)

    I believe that one (or more) of these applats are currently broken - the files are mislocated, I believe. Just skip the clickme applets (unless you want to debug them yourself).

Maybe you are looking for