Struts1.1(multi_app_modules) and JDev

Hi.
I am using JDev(903 & 10g) to develop a web app containing "multiple application modules" (a Struts 1.1 feature). However i met a problem to retrieve content from resource file defined in the struts-submodule-config.xml files. Here's the detail:
1> I defined two struts config files in the web.xml files, like
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/mod1</param-name>
<param-value>/WEB-INF/struts-config-mod1.xml</param-value>
</init-param>
2> All default module's jsp files were resided in /pages/ folder, and jsp files for mod1 were in /mod1/ folder.
3> I tried to switch from the default module to mod1 like this:
in /index.jsp page
<html:link forward="goToMod1">goToMod1</html:link>
in struts-config.xml file
<forward name="goToMod1" contextRelative="true" path="/mod1/index.do"/>
in struts-mod1-config.xml file
<action-mappings>
<action path="/index" forward="/index.jsp"/>
</action-mappings>
4> here's the content in /mod1/index.jsp
<bean:message key="index.heading"/>
<html:link forward="gotosomewhere">gotosomewhere</html:link>
in this page i tried to include a link to /mod1/somewhere.jsp and I defined also in struts-config-mod1.xml
<forward name="gotosomewhere" path="/somewhere.jsp" />
5> content in /mod1/somewhere.jsp
<bean:message key="msg" />
6> I created two resource files for both default and mod1 modules seperatly, defined them in the correct struts-config files and made sure that all required "key=value" paires are existed.
Now I run the program. I switched to /mod1/index.jsp file by clicking the "goToMod1" link from the /index.jsp page, and everything were correct so far.("index.heading" were retrieved from mod1's resource file correctly)
I clicked the "gotosomewhere" link in the /mod1/index.jsp page,and met the error page, said that [Missing message for key "msg"]. However, after i added a msg=abcdef in the resource file of the default module, it can work correctly, which proved that the /mod1/somewhere.jsp file incorrectly looked for "msg" in the default module's resource file, although /mod1/index.jsp file did the looking up correctly.
If i made something wrong, please help me to point it(them) out. thanks a lot.

When the application gets stuck - is there any error reported in the Weblogic log window?
In your IE - do you have XMLHttpRequest enabled?

Similar Messages

  • Problem with SQLServer 2000, JHS 9.0.5.1 and  jdev 9.0.5.1

    Hi,
    I have JHS 9.0.5.1.9, Jdeveloper 9.0.5.1 and RDBMS - SQLServer 2000, MS SQLServer 2000 jdbc driver sp2 (SelectMethod=cursor).
    When I try update recorods - errors: JBO-26080: Error while selecting entity for ... .
    Cause - FOR UPDATE cannot be specified on Read Only cursor.
    Setting LockTrailer to blank or "and 1=1" didn't help.
    jbo.323.compatible and jbo.903.compatible - didn't help.
    Should JHS (bc4j) work with MS SQLServer ?

    Yes, that is possible. See the JDeveloper online help. Do a full-text search for "non-Oracle datasources" and you will find a topic about Business Components for non-Oracle or foreign datasources.
    This is regardless of using JHeadstart or not, it is ADF Business Components (BC4J) functionality. You should be able to try it out using the BC4J tester (right-click your application module and choose Test).
    If you have further questions about this topic, the best discussion forum is probably http://otn.oracle.com/discussionforums/jdev.html .
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • Org/apache/log4j/Category on OAS 10.1.3 and Jdev 10.1.3.5

    Hi,
    I am new to ADF and my company is also new to ADF. We are doing how it coudl help us in acclerating the development of custom screens on top of OTM 5.5
    I am using OAS 10.1.3. I am getting org/apache/log4j/Category error at the time of deployment causing road block. Plz help...
    Below are the steps I followed
    1. Stopped OAS
    2. Install ADF Installer 10.1.3.5 by extracting files, changing adfinstaller.properties, and running java -jar runinstaller.jar adfinstaller.properties
    3. Started OAS
    4. OAS never started up as server.xml had an new entry
         <application name="datatags" path="../../../BC4J/redist/datatags.ear" start="true" />
         <import-shared-library name="oracle.ws.jaxrpc"/>
    5. datatags directory was malformed in the sense META-INF/application.xml and other .xml file was not created at all.
    6. Since ADF requires only libraries to be available, I removed this 2 enteries and started up the OAS.
    7. Started the OAS
    8. Copied files from
    [$Jdeveloper Home]\jakarta-taglibs
    to
    [$OC4J Home]\BC4J\lib
    the files are:
    commons-digester.jar
    commons-logging.jar
    commons-collections.jar
    9. Download and copy apache-log4j-1.2.15 (log4j-1.2.15.jar) to [$OC4J Home]\BC4J\lib
    10. I created a simpel ADF Helloworld page.
    11.Created a deployment discriptor orion-application and added the following enteries
    <imported-shared-libraries>
    <remove-inherited name="apache.commons.logging"></remove-inherited>
    </imported-shared-libraries>
    12. I right clicked on my UserInterface ->New-> Deployment profile -> Created a WAR file
    13. Right click the WAR file and deployed to the OAS
    14. I got the following deployment error
    Wrote EAR file to C:\shobz\SOFTWARES\otm_jdev_10G\jdev\mywork\TestADF\UserInterface\deploy\webapp1.ear
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Uploading file webapp1.ear ...
    Application Deployer for webapp1 STARTS.
    Copy the archive to /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear
    Initialize /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear begins...
    Unpacking webapp1.ear
    Done unpacking webapp1.ear
    Unpacking webapp1.war
    Done unpacking webapp1.war
    Initialize /u01/app/otm/otmapp/oas/j2ee/home/applications/webapp1.ear ends...
    Starting application : webapp1
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize webapp1 begins...
    Initialize webapp1 ends...
    Started application : webapp1
    Binding web application(s) to site default-web-site begins...
    Binding webapp1 web-module for application webapp1 to site default-web-site under context root TestADF-UserInterface-context-root
    Operation failed with error:
    org/apache/log4j/Category
    Deployment failed
    I tried step 9 and 11 in order to get rid of this log4j error.
    Your help is highly appreciated.
    Shobz
    Edited by: user13114596 on Jan 6, 2011 8:40 PM

    ADF 11g requires JEE 5.0 server.
    Oracle Application Server 10.1.3 supports J2EE 1.4.
    JDeveloper 11g application won't run on OAS 10.1.3.

  • Securing a 1.5 web service using J2EE security and JDev 11g

    Hello,
    I'm looking for a tutorial or similar that will help me create a secure (1.5 EE with annotations) web service. I'm interested in just the development view at this point - xml file mods, etc.
    I did find a good resource on how to do this in 10.1:
    http://www.oracle.com/technology/products/jdev/101/howtos/securews/index.html
    and am wondering if it has been updated (even beta!) or in another form.
    Thanks

    Steve,
    The WSDLBaseURL property just prepends a string to the WSDL URL property so that you can abstract out the protocol, server and port values separately depending on the target system you wish to hit for the service call.
    Regards,
    Sam

  • Oracle Soap and Jdev

    I am currently maintaining and extending web services that were written with Oracle Soap. We plan to migrate these to JAX RPC. I was trying out the new Jdev and did not see a choice to select Oracle Soap when creating new web services. Can this option be enabled? Also, it appears that soap.jar has been significantly updated since the 12/1/2003 version. Is there doc on the changes that were implemented with Oracle soap.
    Thx,
    Brian

    I think you will have problems regardless of the approach you take. I have followed up on this and here are the choices you have to use the new 9.2.0.4 parser, as I understand it, in your application:
    1. Delete/backup the old xmlparserv2.jar and replace it with the new one. As there seems to be some new dependencies associated with it (for example xmlmesg.jar), you have to make sure this too is included.
    2. When you start OC4J you can pass in the -Xbootclasspath parameter the location of your jar files (e.g. the new parser and associated files). Those files will override the ones that are hardwired into OC4J - e.g.
    java -Xbootclasspath/a:D:\temp\xdk\lib\xmlparserv2.jar -jar oc4j.jar
    I did option one and then tried working with a number of different Web services that previously worked out of the box and they no longer worked - I got a number of parser errors during the build and run phases.
    What this suggests to me, and I believe this is how Oracle Support would treat this, is that the XDK 9.2.0.4 can be used stand alone and the components should work together. If you try to engineer the 9.2.0.4 XDK into the 9.0.3 OC4J/JDev environment, it may or may not work but you unfortunately won't be supported as the only supported configuration is that which is shipped as a product. As far as I know that has been the way the one off XDK's have generally been treated unless it was subsequently indicated by Oracle Support that a particular one-off XDK fixed issues - as far as I know that has not been said for XDK 9.2.0.4 and the 9.0.3 OC4J/JDev stack.
    In your case because you would like to use SOAP, the soap.jar that ships with the XDK and should work with the XDK stack is unfortunately out of date. Your natural reaction to try to use the updated one is however where you will run into trouble as no one has regression tested 9.2.0.4 against the 9.0.3 soap.jar files.
    Sorry for the long answer but hopefully it clarifies.
    Mike.

  • JALOPY and JDev 10g 9.0.5.1

    How can I incorporate jalogy in to Jdev 9.0.5.1?
    I followed the instructions on jalopy website and it worked perfectly for Jdev 10g Preview but not 9.0.5.1. All I did before was just copy the jar files into &lt;JDEV&gt;\jdev\lib\ext directory and restart JDev. Now it doesn't work. Thank you in advance.

    Thank you Rob for your fast response. However, it still doesn't work. However, I noticed that in the <JDEV9051>\jdev\lib\ext folder there is README.txt and it has some XML to define external plugins. I have not noticed it in the older release. Do I have to configure the plugins using XML config file now?
    Again thank you in advance.

  • BPEL and JDEV 10.1.2

    Hi, I made a BPEL process using JDEV 10.1.2, and everything was fine. The real problem is that I'm tryng to run the BPEL process in others BPEL engines and it seems like it doesn't work. The others engines ask me about .wsdd file, but JDEV 10.1.2 does not generate a .wsdd file. Any clue how can I generate that file using JDEV?
    Thank you.

    the wsdd is the "web service deployment descriptor". In oracle bpel (eclipse or jdev) I don't think the deployment descriptor is generated by the tool. It's probably created when you deploy the process, but would presumably contain information specific to the server that you're deploying to. You could check one of your deployed processes to see if it's there.

  • BPA suite 11g and Jdev 10g

    hello,
    BPA11G is also compatible with JDEV10 ? I can use Jdev 10g with BPA suite 11g or not ? or we must install Jdev 11g ? (send a document about this)
    BR,

    Hi,
    please install the JDeveloper 11g and apply the newest "BPA Extension for JDeveloper". Install the BPA Extension using the JDeveloper Update Center. From the JDeveloper menu choose Help > Check for Updates. Browse and pick the pcbpel_bundle.zip found in the Oracle BPA Suite 11g Addons.
    It is necessary to keep the JDeveloper and BPA Suite version consistent, especially for the major releases 10 or 11. This is because in 11g a BPEL process is part of a SOA Composite, which means the technical concept has been changed as well.
    Best regards,
    Danilo

  • Embedded WLS and JDev 12.1.2: java.lang.OutOfMemoryError: PermGen space

    This problem happens after about 10-15 application restarts during development phase. I have read somewhere that this was a known bug in 11g versions of JDev and its integrated WLS (10.3.5 or 10.3.6?). I have then increased memory parameters in configuration file. The only thing I achieved is that this crash now occurs later then sooner. Still very frustrating. When this happens I have to restart WLS and sometimes kill frozen JDeveloper.
    Any other idea/workaround?
    <Dec 30, 2013 12:37:04 PM CST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:ADFOracleReports@ADFOracleReports-FwkExtensions-context-root, Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
    <Dec 30, 2013 12:37:04 PM CST> <Warning> <HTTP> <BEA-101384> <WLServlet annotation is deprecated, please use servlet 3.0 annotation instead. App:ADFOracleReports@ADFOracleReports-ViewController-context-root, Class:oracle.adfinternal.view.faces.activedata.AdsServlet>
    <Dec 30, 2013 12:37:22 PM CST> <Warning> <HTTP> <BEA-101162> <User defined listener org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl failed: java.lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    <Dec 30, 2013 12:37:33 PM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1388428621416" for task "10". Error is: "weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space"
    weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space
      at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    <Dec 30, 2013 12:37:33 PM CST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application "ADFOracleReports".>
    <Dec 30, 2013 12:37:33 PM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "ADFOracleReports".>
    <Dec 30, 2013 12:37:33 PM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.lang.OutOfMemoryError: PermGen space
      at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:213)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:208)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:385)
      at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:344)
      Truncated. see log file for complete stacktrace
    >
    [12:37:53 PM] Cancel requested
    [Application ADFOracleReports stopped and undeployed from IntegratedWebLogicServer]
    <Dec 30, 2013 12:37:53 PM CST> <Error> <Deployer> <BEA-149062> <The task containing ID 10 cannot be canceled, since it has already completed execution.>
    <Dec 30, 2013 12:37:53 PM CST> <Warning> <RMI> <BEA-080003> <A RuntimeException was generated by the RMI server: javax.management.remote.rmi.RMIConnectionImpl.invoke(Ljavax.management.ObjectName;Ljava.lang.String;Ljava.rmi.MarshalledObject;[Ljava.lang.String;Ljavax.security.auth.Subject;)
    javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution..
    javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution.
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
      at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:375)
      Truncated. see log file for complete stacktrace
    Caused By: java.lang.UnsupportedOperationException: [Deployer:149062]The task containing ID 10 cannot be canceled, since it has already completed execution.
      at weblogic.management.deploy.DeploymentTaskRuntime.prepareToCancel(DeploymentTaskRuntime.java:881)
      at weblogic.management.deploy.DeploymentTaskRuntime.cancel(DeploymentTaskRuntime.java:854)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      Truncated. see log file for complete stacktrace
    >

    You can try to change the garbage collector algorithm. Refere to http://bexhuff.com/2012/09/jdeveloper-memory-and-performance
    Timo

  • BPA 11gR1 and JDev 11.1 - Roundtrip - what is included?

    I am aware that Oracle has improved the roundtrip capability in the recent versions. I have got a question for understanding, what exactly is included.
    To my knowledge the "roundtrip" contains the following:
    Part 1: BPA -> JDev
    1- Inside the BPA database you generate a dataset by "Sharing with IT" that JDev understands and can interpret as BPEL flow.
    2- If you change something within BPA, you can update the generated dataset and can let JDev compare the changes and finally merge new flow elements into an already extended BPEL flow.
    This process is quite clear to me.
    Part 2: JDev -> BPA
    Although I can save within JDev my manually extended composite into the BPA Server, I haven't found anything about this way back into BPA. I am aware that this is from modelling perspective perhaps not the right approach, but what will happen if I save my own JDev changes back and what can I do within BPA with it? What kind of data will be saved?
    Can you point me to some documentation to get a better understanding?
    Thanks a lot
    Volker

    Thanks a lot, such a process sounds logically and would complete my understanding of a roundtrip.
    I just checked how it will work, but it seams that I have misinterpreted something, because it is not working in my environment.
    Finally I got a "java.lang.Exception: script BPELImport, line 101: There are no IT modifications to be propagated to BPA".
    Here are the steps I did:
    1. Send a fresh Blue Print from BPA to JDev.
    2. Open BPEL process in JDev and add an additional "scope" between existing scopes, and name it appropriate.
    3. Add some additional activities inside this new scope.
    4. Save everything
    5. Close existing PBEL view.
    6. Going back to composite view
    7. Hit "Save to BPA Server ..." icon.
    A message tells me that it is uploading xx Bytes ...
    But finally the error message above appears.
    I have checked the folder called "Improvement Proposals" in the root of my BPA Server Database, but it is empty (which is logical if the message is correct).
    This test is repeatable.
    What is missing? Why is my additional scope not recognized as an improvement proposal?
    Thanks a lot!

  • How to install BPEL on WLS and JDEV 11g/WLS

    Can somebody pls point me to a paper "How to install BPEL (Designer, Server, etc.) on WLS" ?!
    I downloaded 80 MB BPEL (Orabpel_10133_WebLogic.zip), unzipped it, but it does not container a "read.me"...
    I like to install the BPEL part for the JDEV - is that the right one ?
    Or do I need to install the whole SOA Suite (incl. BPEL Server) (570 MB) - but this seem to be based on OC4J?
    The core question: which (download) components do I need to install BPEL on WLS to make it run and usable ?
    TIA
    Bernhard

    Here is the readme you may be after
    http://download.oracle.com/docs/cd/E10291_01/doc.1013/e12534/toc.htm
    This is an old release. There is now 10.1.3.4, but I don't believe the stand alone BPEL is supported. You need to install the full SOA Suite. The doc for this is
    http://download.oracle.com/docs/cd/E12524_01/core.1013/e13058/toc.htm
    You need to install the Oracle version first then port it. This is all changing in 11g, hopefully due soon.
    I recommend the latter as it provides more functionality around patching.
    Also SOA Suite or BPEL is on certified against 9.2 not 10.3 so you cannot use it against JDev 11g. Your JDev version must be in sync with your SOA Suite version.
    cheers
    James

  • Again and again : CLOB,SQLJ and JDEV 2.0 (BUG!!!)

    It's the same message than before but with more informations for
    jdev. Team
    I use this version of ORACLE (Evaluation version):
    Oracle8 Enterprise Edition Release 8.0.5.0.0 - Production
    PL/SQL Release 8.0.5.0.0 - Production
    CORE Version 4.0.5.0.0 - Production
    TNS for 32-bit Windows: Version 8.0.5.0.0 - Production
    NLSRTL Version 3.3.2.0.0 - Production
    I'm beginning to develop this project with JDeveloper 1.1
    (Evaluation version) and now, i continue this project with jdev
    2.0 Beta.
    With Jdev. 1.1 , I can compile "with Warning" and when i launch
    It, It's the Crach. (It's an Datatype message Error)
    With Jdev 2.0 Beta, I cannot compile.
    After reading the ORACLE DOCUMENTATION about using of CLOB in a
    SQLJ file, i try this:
    package Pack_ConnexionOracle;
    import sqlj.runtime.*;
    import sqlj.runtime.ref.*;
    import java.sql.*;
    // Importing the Oracle Jdbc driver package makes the code more
    readable
    import oracle.jdbc.driver.*;
    public class OraCrit
    public OraCrit(String Surl,String Susr,String Spwd)
    try
    DriverManager.registerDriver(new
    oracle.jdbc.driver.OracleDriver());
    DefaultContext.setDefaultContext(new DefaultContext
    (Surl,Susr,Spwd));
    catch(Exception ex)
    ex.printStackTrace();
    public String SQLRecupRequeteSQL(int iNumQuery) throws
    SQLException
    long lLongSQL;
    OracleClob ORARequeteSQL;
    String sRequeteSQL = new String();
    #sql { select requete_sql into :ORARequeteSQL from requete where
    num_query=:iNumQuery };
    #sql lLongSQL={values(dbms_lob.getlength(:ORARequeteSQL)) };
    #sql { call dbms_lob.read
    (:ORARequeteSQL,:lLongSQL,0,:sRequeteSQL) };
    return(sRequeteSQL);
    at the line 61:
    #sql { select requete_sql into :ORARequeteSQL from requete where
    num_query=:iNumQuery };
    I have this compilation error:
    Error:(61) Liste of links Variables INTO...Prohibited: illegal
    expression
    at the line 62:
    #sql lLongSQL={values(dbms_lob.getlength(:ORARequeteSQL)) };
    I have this compilation error:
    Error:(62) The Java type doesn't exist for the host element n 1..
    at the line 63:
    #sql { call dbms_lob.read
    (:ORARequeteSQL,:lLongSQL,0,:sRequeteSQL) };
    Same message than at line 62.
    Is it possible to use a CLOB in SQLJ with JDeveloper 2.0 Beta?
    HELP ME PLEASE,
    Thanks a lot.............
    null

    David,
    I think the problem is that the code you have written is for the
    8.0.5 JDBC driver (the default driver for JDev 1.1). By default,
    JDeveloper 2.0 uses the 8.1.4 JDBC driver and there are some
    syntax/API changes for LOB support between 8.0.5 and 8.1 (namely
    that OracleClob is replaced by oracle.sql.CLOB).
    Also, while you can still use the DBMS_LOB package, there are new
    methods provided in the oracle.sql package that allow more direct
    access to LOBs.
    You have two options:
    1. switch your driver to use JDBC 8.0.5
    2. switch your code to use the new 8.1 JDBC APIs
    1. Switch your driver version:
    a. For the project you are workin on, select Project->Project
    Properties from the menu
    b. Look in the Java Libraries list box. You want to see Oracle
    8.0.5 JDBC listed BEFORE Oracle 8.1.4 JDBC AND Oracle EJB. I
    don't have immediate access to Jdev right now, so I'm not
    positive what the libraries were called.
    If Oracle JDBC 8.0.5 is not listed at all, click the Add button,
    select the Oracle JDBC 8.0.5 library and add it to the list, then
    select it and drag it up so it is above the other two I
    mentioned.
    c. Exit from JDeveloper and edit the jdeveloper.ini file in your
    <JDEV_HOME>/bin directory. Make sure
    ..\jdbc\lib\oci8\classes111.zip appears in the IDE_CLASSPATH
    setting before ..\aurora\lib\classes111.zip (8.1.4 JDBC).
    2. Switch your code to use the new 8.1 JDBC APIs
    a. you will need to import oracle.sql.*
    b. change 'OracleClob' to 'CLOB'
    c. to read from the CLOB locator (you can still use DBMS_LOB, but
    there are new methods as well):
    char stream:
    //Read CLOB data into Reader char stream
    Reader char_stream = the_clob.getCharacterStream();
    char [] char_array = new char[10];
    int chars_read = char_stream.read (char_array, 0, 10);
    //Read CLOB data into Input ASCII character stream
    Inputstream asciiChar_stream = the_clob.getAsciiStream();
    byte[] asciiChar_array = new byte[10];
    int asciiChar_read =
    asciiChar_stream.read(asciiChar_array,0,10);
    The above examples are from the JDBC 8.1.5 User's Guide and
    Reference.
    Here is one from the 8.1.5 SQLJ doc:
    void readFromClob (CLOB clob) throws SQLException
    long clobLen, readLen;
    String chunk;
    clobLen = clob.length();
    for (long i = 0; i< clobLen; i+= readLen) {
    chunk = clob.getSubString(i,10);
    readLen = chunk.length();
    System.out.println("Read " + readLen + " chars: " + chunk);
    -L
    David DUPONT (guest) wrote:
    : It's the same message than before but with more informations
    for
    : jdev. Team
    : I use this version of ORACLE (Evaluation version):
    : Oracle8 Enterprise Edition Release 8.0.5.0.0 - Production
    : PL/SQL Release 8.0.5.0.0 - Production
    : CORE Version 4.0.5.0.0 - Production
    : TNS for 32-bit Windows: Version 8.0.5.0.0 - Production
    : NLSRTL Version 3.3.2.0.0 - Production
    : I'm beginning to develop this project with JDeveloper 1.1
    : (Evaluation version) and now, i continue this project with jdev
    : 2.0 Beta.
    : With Jdev. 1.1 , I can compile "with Warning" and when i
    launch
    : It, It's the Crach. (It's an Datatype message Error)
    : With Jdev 2.0 Beta, I cannot compile.
    : After reading the ORACLE DOCUMENTATION about using of CLOB in a
    : SQLJ file, i try this:
    : package Pack_ConnexionOracle;
    : import sqlj.runtime.*;
    : import sqlj.runtime.ref.*;
    : import java.sql.*;
    : // Importing the Oracle Jdbc driver package makes the code more
    : readable
    : import oracle.jdbc.driver.*;
    : public class OraCrit
    : public OraCrit(String Surl,String Susr,String Spwd)
    : try
    : DriverManager.registerDriver(new
    : oracle.jdbc.driver.OracleDriver());
    : DefaultContext.setDefaultContext(new DefaultContext
    : (Surl,Susr,Spwd));
    : catch(Exception ex)
    : ex.printStackTrace();
    : public String SQLRecupRequeteSQL(int iNumQuery) throws
    : SQLException
    : long lLongSQL;
    : OracleClob ORARequeteSQL;
    : String sRequeteSQL = new String();
    : #sql { select requete_sql into :ORARequeteSQL from requete
    where
    : num_query=:iNumQuery };
    : #sql lLongSQL={values(dbms_lob.getlength(:ORARequeteSQL)) };
    : #sql { call dbms_lob.read
    : (:ORARequeteSQL,:lLongSQL,0,:sRequeteSQL) };
    : return(sRequeteSQL);
    : at the line 61:
    : #sql { select requete_sql into :ORARequeteSQL from requete
    where
    : num_query=:iNumQuery };
    : I have this compilation error:
    : Error:(61) Liste of links Variables INTO...Prohibited: illegal
    : expression
    : at the line 62:
    : #sql lLongSQL={values(dbms_lob.getlength(:ORARequeteSQL)) };
    : I have this compilation error:
    : Error:(62) The Java type doesn't exist for the host element n
    1..
    : at the line 63:
    : #sql { call dbms_lob.read
    : (:ORARequeteSQL,:lLongSQL,0,:sRequeteSQL) };
    : Same message than at line 62.
    : Is it possible to use a CLOB in SQLJ with JDeveloper 2.0 Beta?
    : HELP ME PLEASE,
    : Thanks a lot.............
    null

  • Jsp 2.0 and jdev 10g production (custom tags)

    there are some examples at
    http://otn.oracle.com/sample_code/tech/java/jsps/index.html
    I have certian questions it would be great if some one would clear these for me..
    In JSP 1.2 if we wanted to write the custom tag's we had tag classes that extend TagSupport or TagBodySupport and the doStart() and doEnd() tag with the evaluate body. I could spit out the complete html text on an encounter of a tag! but in the JSP 2.0 a doTag() seems to take care of the intracies! how??
    Now with jsp 2.0 I want to do the same... say some thing like this ....
    <tg:myTag list="${somelist}"></tg:myTag> and say in my tag handler class I know what to do with this list. May be I will create complete html code and will use jspWriter to write out the html inbetween these tags!!
    I have downloaded the eStore example but this class
    javax.servlet.jsp.tagext.SimpleTagSupport; is not imported. So I am not able to look at the SimpleTagSupport class.
    If I am trying to run the example in jdev 10g production should I have to specify that I am using jsp 2.0 so that jdev knows not to use jsp 1.2? if so how can I do this.
    Does all the examples provided use the OC4J standalone? Can I use the embedded oc4J instead?
    regards.

    After reading a bit more now I know how the tags work.
    However from the example I see (eStore) an array called by name "products" is created and set on the jspContext. If I already have the list and want to pass on the list which is in a bean or a session or a request can I provide it this way.
    <tag:myTag var=${bean.list}>
    or
    <tag:myTag var=${session.list}>
    or
    <tag:myTag var=${request.list}>in the .tld file I should specify the attribute var and whether it should be runtime evaluable.
    and in the TagClass
    private Collection var;
    private String listName;
    public void setVar(Colloection aList) {
      this.var = aList;
    public Collection getVar() {
      return var;
    public void doTag( ) throws JspException{
      // do i always need to this next line ------
      getJspContext( ).setAttribute(listName, getVar());
    }so that in my .tag file I can use some thing like this
    <c:forEach var="list" items="${item}">
      <td>${item.subObject.name}</td>
      <td>${item.subObject.value}</td>
    </c:forEach>And finally... as and when a tag is encountered the .tag file contents corresponding to that tag is called to get the html text and all that text is printed out in the jsp page right (without the jspWriter "out"). How does the browser know when to stop? like doEndTag() function? are these functions implicitly called?
    regards.

  • Cmmi process and Jdev.

    İn our company
    we want to take CMMI Level 3 certification for Software development in the future.
    What about Jdeveloper and cmmi process?
    Is there any oracle supported capabilities we can use to fallow CMMI path?
    Which products you recomment to us to use with Jdev
    to supply the cmmi standarts.
    Thanks...

    Is there any ALM solution do you recommend to use with JDEv.
    We intrested in especially Open source projects.
    Thanks.

  • Missing Descriptior with Toplink 1013 and Jdev 1013

    Hi guys,
    I keep getting the following error when I try to run my project:
    Exception [TOPLINK-6007] (Oracle TopLink - 10g release 3 (10.1.3.0.0) (Build 050912)): oracle.toplink.exceptions.QueryException
    Exception Description: Missing descriptor for
    The project is a Web Application with a Model and View/Controller projects. The Model has a Toplink project in it and I created the mappings, classes, and the sessions.xml for it.
    What am I doing wrong? This seems to work in Jdev 1012.

    * Does the sample client work ok when you use sessions.xml?
    * What is the sequence of steps you are taking to create view project and in which project you are getting the errors? A detailed sequence of steps will be helpful in reproducing this issue.
    * If you are running into this issue in your view project using ADF and your use case simply involves reading objects, perhaps you can try writing a plain sample client in java yourself to simulate the use case and see whether this client works.
    Also
    * Take a look at my response to your other question at Mutliple writeable mappings in Jdev 1013 and setup your mappings correctly.
    * If you are running into this issue in the view project with the use of ADF, then try regenerating the datacontrol and recreating your view project. Make sure your logging in the sessions.xml is turned on.
    Hope this helps.

Maybe you are looking for

  • How to display a line-in notifcation message after logout ?

    Hi, Is there a way to display a notification message (in line notification) in page 1 to notify user there has been disconnected from the application ? The application is using this logout URL : wwv_flow_custom_auth_std.logout?p_this_flow=&APP_ID.&p_

  • After iTunes 10 upgrade iPod Classic not identified nor can I restore

    Totally lost and don't know how to proceed. I have been using iTunes with my iPhone with never a problem. I received an iPod classic 160GB for Christmas last year and again, no problems, everything has been working great. I am using Windows 7 Ultimat

  • Problems with gradient feather when saving as pdf

    I have an InDesign CS4 file which has a high-quality grayscale jpg with a CMYK jpg on top of it. The later has a gradient feather effect applied to it. When I export to pdf, some people (I believe with an older version of Reader or Preview) cannot vi

  • [SOLVED] Arch not showing up in grub after ArchBang install

    I have a triple booting machine with Windows7, Arch, and ArchBang.  Windows 7's system partition is where I have the bootloader installed.  I recently installed Archbang and now my other Arch is not showing up in grub.  I tried updating the grub menu

  • Budget planned values in period 13

    Hi Guys, We are  posting our planned values for balance sheet acccounts. we are spreading the values from period 1-12,2010.I heard that these values should be  posted in period 13  only .If thats true, whats the reason and significance of posting B/S