Jce framework problem

          Hi all!
          I've got the following problem:
          I accomplished to form an ear file that contains an ejb jar and a war file. The
          ejb jar manifest includes several jars that are part of the ear file. Additionally
          the web app needs the following jars: local_policy.jar, jce1_2_1.jar, US_export_policy.jar
          When I put these files into the WEB-INF/lib of the webapp or into Manifest's Class-Path
          of the ejb.jar I always get the same behaviour:
          I can deploy it (yipieeh) but when I run the web app I get the following exception
          (uieehh):
          java.lang.SecurityException: Cannot authenticate JCE framework java.lang.SecurityException:
          The JCE framework has unsigned class files. at com.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
          at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) at com.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
          at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237)
          at javax.crypto.Support.getImplementation(Support.java:77) at javax.crypto.Support.getImplementation(Support.java:32)
          at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
          Surprisingly it works when I put the jar files into wls6.1SP2's lib directory
          respectively to wls's classpath! But what I need is one ear file that contains
          everything ...
          Please if you know this problem, a workaround or you have only a guess reply to
          this message.
          Thanks for every serious response, Chris.
          

These files need to be stored in the runtime environment. So the path should be
JAVA_HOME/jre/lib/security
And the you'll have to restart all processes that where reading these files. i.e. application servers etc.
Stephan
PS: Is ja n saugeiler Name...

Similar Messages

  • Jce framework problems

    Hi all!
    I've got the following problem:
    I accomplished to form an ear file that contains an ejb jar and a war file. The
    ejb jar manifest includes several jars that are part of the ear file. Additionally
    the web app needs the following jars: local_policy.jar, jce1_2_1.jar, US_export_policy.jar
    When I put these files into the WEB-INF/lib of the webapp or into Manifest's Class-Path
    of the ejb.jar I always get the same behaviour:
    I can deploy it (yipieeh) but when I run the web app I get the following exception
    (uieehh):
    java.lang.SecurityException: Cannot authenticate JCE framework java.lang.SecurityException:
    The JCE framework has unsigned class files. at com.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
    at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) at com.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
    at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237)
    at javax.crypto.Support.getImplementation(Support.java:77) at javax.crypto.Support.getImplementation(Support.java:32)
    at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
    Surprisingly it works when I put the jar files into wls6.1SP2's lib directory
    respectively to wls's classpath! But what I need is one ear file that contains
    everything ...
    Please if you know this problem, a workaround or you have only a guess reply to
    this message.
    Thanks for every serious response,
    Chris.

    Hi!
    To my knowledge I think you can install the 1.4  version you want!
    To uninstall a .Net framework  go on Start>Control Panel > Add or Remove programs. You should have "Microsoft .NET Framework"  somewhere. Uninstall it and install the version you prefer.
    Test it with the client diagnostic in SAP!
    To find more info on the ,NET framework :
    http://support.microsoft.com/kb/318785
    Just to let you know: Me on my client, I have version 1.1.4322.2407 and version 2.0.50727.1433 with SAP 5.0.502.
    Hope this helps
    Nic

  • Adapter Framework Problem

    Hi all,
    I currently have a problem with the adapter framework (AF) of the exchange
    infrastructure. After having configured a scenario including an inbound and an
    outbound SOAP adapter I'm not able to send SOAP messages to XI via the AF. The
    AF seems to be not running as i always get an internal server error when
    sending a SOAP message.
    When I view the AF in the component monitoring area of the runtime workbench
    I see that the self-test of the AF fails. I the detailed list of the self-test
    the test for the existence of a user fails. However the user "XIAFUSER" that is
    set in the configuration of the AF exists on the Web AS.
    Does anyone of you have an idea why the AF self-test fails and why the AF seems
    to be not running?
    Thanks for you help
    Christian

    Hi Bill,
    I tried to logon to ABAP with XIAFUSER. Everything works fine. I haven't tried any other scenario yet.
    What I just noticed is, that when I view the list of services running on the J2EE engine is see the following list:
    SAP XI Adapter: BC
    SAP XI Adapter: File
    SAP XI Adapter: JDBC
    SAP XI Adapter: JMS
    SAP XI Adapter: Mail
    SAP XI Adapter: Marketplace
    SAP XI Adapter: RFC
    SAP XI Adapter: XI
    There is no SOAP adapter listed. Maybe this is the reason for the problems I experience...
    Christian

  • ADF dialog framework problem

    I am using the "old" dialog framework in ADF 11G.
    I create two pages. One page "pops" the other with dialog:page2 and usewindow.
    This works fine when i create a simple web project.
    But when i create the same code in a ADF ViewController project the second window opens in the same window as the first one.
    Is this a bug?
    Johnny

    Hi Frank,
    This will show you my problem:
    1. create new application
    2. choice fusion web application
    3. press finish
    4. created JSF page main:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:commandButton useWindow="true" action="dialog:popup" text="commandButton 1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    5. created JSF page popup:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="outputText1"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    6. create Faces navigation rule:
    <?xml version="1.0" encoding="windows-1252"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee">
    <application>
    <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
    </application>
    <navigation-rule>
    <navigation-case>
    <from-outcome>dialog:popup</from-outcome>
    <to-view-id>/popup.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    7. run the main page
    8. using ie 7 the main page shows
    9. push the button: no pupup, instead the "popup-page opens in same window as my main page
    Can I mail you the project, somehow?

  • OA Framework problem to create Entity Objects

    Hello my friends!!!
    I´m starting to work with OA Framework and I have a problem somewhat complicated.
    When adding a new entity Object Database the option Database Objects is disabled can not select the table.
    View the link:
    https://plus.google.com/photos/105051623226021373169/albums/5727536008728326817?authkey=CPf33qfkz-jUqgE

    Before you come to the above screen, it might have asked you for database credentials. There you need to provide the username and password. Then in the following screen(the screenshot you gave), just above the Tables, views etc checkboxes you can see a poplist called Database Schema with available schemas in the selected db.
    If the EO wizard didn't ask for any db then you first needs to create a connetion in JDev with connections manager.
    Regards,
    Peddi

  • Build a Menu Framework problems

    i am trying to setup the menu framework application found on oracle articles http://www.oracle.com/technology/oramag/oracle/06-may/o36apex.html
    but i have found an error on the step 5
    "Step 5: Add Applications to the Menu
    Before you can add applications to the menu, you must open the application in Oracle Application Express and subscribe to the menu framework application's authentication and authorization schemes.
    Subscribe to the menu framework's authentication scheme. In the Application Builder, click the application you want to add to the menu system:
    1. Click Shared Components.
    2. Click Authentication Schemes.
    3. Click Create.
    4. Click the As a copy of an existing authentication scheme button, and click Next.
    5. Select NNN Menu Framework from the Copy from Application list, and click Next. "
    And that with all existing authentication scheme i wanted to try
    « ORA-00907: missing right parenthesis »
    i thing that the errrot isn't on Menu Framework but maybe on HTMLDB
    can you help me with trying this and tell me how i can do
    hanks for all

    what version are you using?

  • JCE installation problem

    Hi
    When installing ejbca I get this:
    user$ install.sh
    java version "1.4.2_07"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
    The JCE 'Unlimited Strength Jurisdiction Policy Files' must be installed in order to install EJBCA. See the downloads section at http://java.sun.com/.I've put US_export_policy.jar and local_policy.jar in <java-home>\lib\ext or <java-home>\lib\security, but I still get the same message. I had to create these directories.
    What do I need to do? Running Gentoo.
    Thanks!

    These files need to be stored in the runtime environment. So the path should be
    JAVA_HOME/jre/lib/security
    And the you'll have to restart all processes that where reading these files. i.e. application servers etc.
    Stephan
    PS: Is ja n saugeiler Name...

  • Framework problems

    Hi,
    I receive the following Errors while entering to any Worflow Screens :
    Additional Informations :
    - Application Tier and DB Tier on same Node : HP-UX PARISC
    - EBS Version : 11.5.10 CU2
    - Database Version : 10.2.0.3
    JSP Error:
    Request URI:/OA_HTML/OA.jsp
    Exception:
    java.lang.NoClassDefFoundError: java/awt/Dimension
         at oracle.cabo.ui.laf.base.xhtml.table.ColumnData.(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderingContext.(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.DesktopTableRenderingContext.(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.createRenderingContext(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.getTableRenderingContext(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:639)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3285)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2936)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2743)
         at oa_html._OA._jspService(_OA.java:98)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._RF._jspService(_RF.java:100)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    Thank's in advance for your Help.
    Edited by: 791550 on 08:30 05/10/2010

    How foolish of me: when is a dialog NOT a dialog - when you call it with the dialog: pattern.
    All of the blogs seem to be a bit misleading - especially on this point.
    If you call a jspx using the dialog: syntax - it is rendered as a normal jspx with all that this implies.
    No need to use the returnFromDialog or anything else - just navigate as normal.
    Hope this helps others.

  • Framework problem

    I have to instal eve3.framework on mac os x. I put it in library/framework and I start my application but it give me the following error: "Unable to locate "Eve3.framework" - The necessary bundle could not be found. Could anyone know how can I instal correctly this framework?
    Thank's

    Hello exfiniti,
    You can get .NET Framework downloads directly from Microsoft, below you will find the link.
    .NET downloads
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • Compressor Frameworks problem

    FCP quits on Launch, and this is the report:
    Dyld Error Message:
    Symbol not found: __ZN6aecore4CSTREPKc
    Referenced from: /Library/Frameworks/Compressor.framework/Versions/A/Frameworks/ImageProcessing. framework/Versions/A/ImageProcessing
    Expected in: /Library/Frameworks/AECore.framework/Versions/A/AECore
    suggestions?

    Try using an application called FCS Remover to remove Compressor and QMaster, and reinstall.
    http://www.digitalrebellion.com/blog/posts/howto_reinstall_compressor_andqmaster.html

  • Java activation framework problem

    Hi there,
    I'm almost running mad. Here's the story, I have implemented a Textviewer.class to test if i can write a bean to be used as a plugin.
    I want an application to be able to lookup the class using the mailcap Commandmap implementation. My TextViewer class implements the Commandobject interface, and when I lookup the CommandClass associated with the current Datahandler it shows:
    TextViewer
    my mailcap looks like this:
    text/plain;; x-java-view=TextViewer
    But when I want to instantiate the bean using:
    dh[index].getBean(ci);
    it doesnot instantiate the bean but it returns null.
    Am I leaving something out, should the bean be in a Jar file, in a Package? The bean is in the current package and in the current directory, and the directory is included in the CLASSPATH.
    If I try to retrieve the bean using the getCommandObject method in CommandInfo class like this:
    try {
    Object my_secbean = cmds[verb_choice.getSelectedIndex()].getCommandObject(dh[index],cmds[verb_choice.getSelectedIndex()].getClass().getClassLoader());
    } catch (IOException e) {             
    System.err.println("Message: " + e.getMessage());
    System.exit(-1);
    } catch (ClassNotFoundException e) {
    System.err.println("Class not found");
    System.err.println("Message: " + e.getMessage());
    System.exit(-1);
    it prints the following statement:
    Class not found
    Message: TextViewer
    So it seems the classloader is unable to find the class, the class resides in the directory where the application is started and the current directory "." is in the CLASSPATH variable.
    But where does the classloader look for the class?
    cheeerrrrs jan

    Hi there,
    I'm almost running mad. Here's the story, I have implemented a Textviewer.class to test if i can write a bean to be used as a plugin.
    I want an application to be able to lookup the class using the mailcap Commandmap implementation. My TextViewer class implements the Commandobject interface, and when I lookup the CommandClass associated with the current Datahandler it shows:
    TextViewer
    my mailcap looks like this:
    text/plain;; x-java-view=TextViewer
    But when I want to instantiate the bean using:
    dh[index].getBean(ci);
    it doesnot instantiate the bean but it returns null.
    Am I leaving something out, should the bean be in a Jar file, in a Package? The bean is in the current package and in the current directory, and the directory is included in the CLASSPATH.
    If I try to retrieve the bean using the getCommandObject method in CommandInfo class like this:
    try {
    Object my_secbean = cmds[verb_choice.getSelectedIndex()].getCommandObject(dh[index],cmds[verb_choice.getSelectedIndex()].getClass().getClassLoader());
    } catch (IOException e) {             
    System.err.println("Message: " + e.getMessage());
    System.exit(-1);
    } catch (ClassNotFoundException e) {
    System.err.println("Class not found");
    System.err.println("Message: " + e.getMessage());
    System.exit(-1);
    it prints the following statement:
    Class not found
    Message: TextViewer
    So it seems the classloader is unable to find the class, the class resides in the directory where the application is started and the current directory "." is in the CLASSPATH variable.
    But where does the classloader look for the class?
    cheeerrrrs jan

  • Connector framework - problem with Date

    Hi all
    Does anybody know how to set date to MappedRecord(I've got function where I have to set parameter of type DATE)
    Thanks for help
    Jakub Krecicki

    Resolved on my own

  • Getting Error in NW : jce.jar is not signed by a trusted signer.

    We have deployed our application on SAP NetWeaver 6.40 SP11. We have used j2sdk1.4.2._12 and in our application we are using cryptography. But when we start our application it is giving following exception
    java.lang.SecurityException: Cannot authenticate JCE framework java.util.jar.JarException: jar:file:/C:/j2sdk1.4.2_12/jre/lib/jce.jar!/ is not signed by a trusted signer.
    Same cryptography is working on other application servers.

    importing public key?
    have you ever seen JCE source code?
    well if you write provider you have to send it to SUN they will sign it,
    with Java Code Signing CA certificate.
    These certficate's other part of asymetric cipher code is hardcoded in jce.jar
    JCESecurity.java.
    I finally solved that configuration problem with making own modified jce.jar.,
    with provider signature checking turned off.
    Btw i think problem was caused with multiple libraries in system using same classes.
    There was some archaic jce.jar in SUNwam or somewhere.

  • Jce in web-inf/lib - does not work

    Hi all!
    I've got the following problem:
    I accomplished to form an ear file that contains an ejb jar and a war file. The
    ejb jar manifest includes several jars that are part of the ear file. Additionally
    the web app needs the following jars: local_policy.jar, jce1_2_1.jar, US_export_policy.jar
    When I put these files into the WEB-INF/lib of the webapp or into Manifest's Class-Path
    of the ejb.jar I always get the same behaviour:
    I can deploy it (yipieeh) but when I run the web app I get the following exception
    (uieehh):
    java.lang.SecurityException: Cannot authenticate JCE framework java.lang.SecurityException:
    The JCE framework has unsigned class files. at com.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
    at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) at com.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
    at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237)
    at javax.crypto.Support.getImplementation(Support.java:77) at javax.crypto.Support.getImplementation(Support.java:32)
    at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
    Surprisingly it works when I put the jar files into wls6.1SP2's lib directory
    respectively to wls's classpath! But what I need is one ear file that contains
    everything ...
    Please if you know this problem, a workaround or you have only a guess reply to
    this message.
    Thanks for every serious response,
    Chris.

    Well if you got the jar file to work in the /lib/ dir of the EAR file with
    the manifest.mf Class-Path: entry then more power to you. This didn't work
    for me for some reason, just let each ejb/war/etc compile to its own dir and
    deploy it with all its dependencies included...
    Your MalformedURL exception looks different than the security exception you
    had earlier. Im guessing that putting the files in a common location in the
    ear solved the class loading/security exception problem.
    Your malformedURL problem is probably just that, a malformed URL.
    Make sure all your associated metadata is pointing to the right place (use
    paths of /someApp/somejsp.jsp, etc. dont use ../../somejsp.jsp)
    make sure your using the right protocol (dont put one by default). This
    would be my guess. Maybe its expecting an SSL call of the form
    https://something or t3s://something but I'm not sure
    hope this helps,
    Michael Lee
    Architect
    AfterBOT
    [email protected]
    remove nospam_ to email
    "Chris" <[email protected]> wrote in message
    news:[email protected]...
    >
    First of all: Thanks for your response
    "Michael Lee" <[email protected]> wrote:
    Your getting that error because different wars run in different class
    loaders. It does not trust the other class loaders files unless they're
    signed in some way. I think one way you can do this is set up a
    security.policy? file for each war that tells what files are allowedI was thinking about that but: How can I do that?
    from
    where. Here's the way the WLS class loaders work...
    WLS system class loader
    |
    EAR class loader
    |
    EJB class loader
    |
    WAR class loader
    everything down on the chain there can see up, but not vice versa. You
    will
    get a class not found
    That way, the war files can call ejb's without problems, but EJBs can
    not
    access war file classes.
    One other possible way around your problem is to add a /lib/... directory
    to
    your EAR and include a Class-Path: section in your manifest to point
    to the
    JCE files. I think this allows war files to see each others classes.You have to manipulate the EJB-Manifest and put the jar files into the earfile!
    At least this is how it worked in my case! But I 've tried that alreadybut then
    I get a very similiar Exception: something with can not authenticate: ..MalormedURLException:
    no protocol ...
    This
    didn't work for me when I tried to create a shared library between
    EJBs/WARs
    but I didnt try to share files between 2 wars so who knows.
    Hope this helps some,
    Mike Lee
    Architect
    AfterBOT
    [email protected]
    Just remove nospam_ to email me
    "Chris" <[email protected]> wrote in message
    news:[email protected]...
    Hi all!
    I've got the following problem:
    I accomplished to form an ear file that contains an ejb jar and a warfile. The
    ejb jar manifest includes several jars that are part of the ear file.Additionally
    the web app needs the following jars: local_policy.jar, jce1_2_1.jar,US_export_policy.jar
    When I put these files into the WEB-INF/lib of the webapp or intoManifest's Class-Path
    of the ejb.jar I always get the same behaviour:
    I can deploy it (yipieeh) but when I run the web app I get the
    following
    exception
    (uieehh):
    java.lang.SecurityException: Cannot authenticate JCE frameworkjava.lang.SecurityException:
    The JCE framework has unsigned class files. atcom.sun.crypto.provider.SunJCE.a([DashoPro-V1.2-120198])
    at com.sun.crypto.provider.SunJCE.c([DashoPro-V1.2-120198]) atcom.sun.crypto.provider.PBEKeyFactory.<init>([DashoPro-V1.2-120198])
    at java.lang.Class.newInstance0(Native Method) atjava.lang.Class.newInstance(Class.java:237)
    at javax.crypto.Support.getImplementation(Support.java:77) atjavax.crypto.Support.getImplementation(Support.java:32)
    at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:42)
    Surprisingly it works when I put the jar files into wls6.1SP2's libdirectory
    respectively to wls's classpath! But what I need is one ear file thatcontains
    everything ...
    Please if you know this problem, a workaround or you have only a guessreply to
    this message.
    Thanks for every serious response,
    Chris.

  • Zend Framework gives strange Oracle query

    I'm trying to migrate an application from MySQL to Oracle. I'm a newbie to Oracle.
    I want the PHP scripts to work on both MySQL and Oracle.
    The query I want to do used to be (for MySQL via AdoDB):
    SELECT DISTINCT (id)
    FROM table1
    INNER JOIN table2 ON table1.id = table2.record_id
    AND table2.user_id = "XXX"
    AND table1.status = table2.status_id
    The following code works great for MySQL but generates some strange output for Oracle:
    $db = Zend_Db::factory('Oracle', //Mysqli for the MySQL db connection
    array(
    'host' => 'hostName',
    'dbname' => 'dbName',
    'username'=> 'userName',
    'password'=> 'userPasswd')
    $select = $db->select();
    $select->distinct();
    $select->from(array('i' => 'table1'),array('id'));
    $select->joinInner(array('u' => 'table2'),'i.id = u.record_id',array());
    $select->where('u.user_id = ?', 'XXX');
    $select->where('i.status=u.status_id');
    This results in
    for MySQL:
    SELECT DISTINCT `i`.`id` FROM `table1` AS `i` INNER JOIN `table2` AS `u` ON i.id = u.record_id WHERE (u.user_id = 'XXX') AND (i.status=u.status_id)
    this works fine.
    for Oracle:
    SELECT DISTINCT "i"."id" FROM "table1" "i" INNER JOIN *"table2" "u" ON i.id = u.record_id WHERE (u.user_id = 'XXX') AND (i.status=u.status_id)
    this does not work:
    ORA-00942: table or view does not exist
    when I copy/paste this in SQL developer this gives an error too, complaining about ' *"table2" ' which does not exist.
    The only query my SQL developer accepts is :
    SELECT DISTINCT i."id" FROM table1 i INNER JOIN table2 u ON i."id" = u."record_id" WHERE (u."user_id" = 'XXX') AND (i."status"=u."status_id")
    I have no idea how I can make this query with Zend Framework.
    The query should have:
    - no quotes around the table names
    - quotes around the column names
    - no * before the second table name (table2)
    Is this a Zend Framework problem or is my Oracle db not very well made?

    I believe there are some issues with ZF regarding quoting, e.g. see http://framework.zend.com/issues/browse/ZF-7267 (also note the comment about autoQuoteIdentifier).
    I'd review open ZF bugs, upgrade to the latest ZF and report the issue if it still occurs.
    At worst case, you may need a branch in your code that manually constructs the query when running against Oracle.

Maybe you are looking for

  • Can not open asset files in tutorial

    First off all of the videos are done to fast for a beginner.  Slow down speaking, give a beginner a chance to see where your cursor is.  Also found this with the Start here Tutorial for Ai. I followed along just fine in the first video in setting up

  • How can I find where a track/album is listed in my playlists?

    Going through my CDs to see which ones I've imported into iTunes. Did a search for one album name, and found it in the Library, which of course dumps all tracks into one big container. I believe I have a playlist for this album somewhere, but I don't

  • I updated to Mountain Lion. I noticed 2 problems I would like to resolve. I can no longer get iCloud or Security

    Since updating to Mountain Lion I cannot LOAD iCloud or Security & Privacy. It just says ..."Loadind iCloud or Security & Privacy". Then I have to kill the process in Activity Monitor since it taks 99%+ of cpu. How can I get iCloud and Security & Pri

  • Java program file to an exe file

    hi all i am a final year student doing project in java environment. in my project i want to convert a java program to an exe file.. i have seen some of the replies from the forum but i am not clear with that.. i need the steps in detail and the way h

  • Music Files download from Nokia Music Store Does n...

    Hi,   I have purchased a new Nokia 5800. Along with the box I recieved two vouchers to download music from Nokia Music Centre. After downloading and while trying to play in Nokia Mucis Player, it displays the message a message informing some digital