OSB: class not found in custom xpath function

Hi,
This week I was struggling with custom xpath functions in OSB. First I created a jar file that contained the class and the complete functionality including logging. It contains a class that does a DVM Lookup from the database. As a standalone function, called from JUnit test cases it functions perfectly. I use Apache commons logging with the libraries from the Weblogic installation.
But when I put this OSB Util Services jar in the osb-home/config/xpath-function, it turns out that somehow the Weblogic Console gets a conflict with the commons-logging libraries. So I deployed it just as an application library in weblogic console, to solve this breakage.
Then I created a simple separate class that only calls the method in the deployed library. I packaged that as a custom-osb-functions.jar for the osb-home/config/xpath-function. I managed to get if visible in OEPE. But when I test the xquery transformation resource on the server, I get:
Error executing the XQuery transformation: {http://www.bea.com/wli/common/xquery}XQueryException: Error invoking custom xquery java function: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.wli.sb.stages.functions.XQueryExternalFunction.execute(XQueryExternalFunction.java:111)
at com.bea.wli.sb.stages.functions.XQueryExternalFunction.init(XQueryExternalFunction.java:61)
at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:169)
at weblogic.xml.query.runtime.typing.SeqTypeMatching.open(SeqTypeMatching.java:129)
at weblogic.xml.query.iterators.FirstOrderIterator.open(FirstOrderIterator.java:167)
at weblogic.xml.query.runtime.core.ExecutionWrapper.open(ExecutionWrapper.java:58)
at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:459)
at com.bea.wli.common.xquery.iterators.XQueryVariableMapper.getObjects(XQueryVariableMapper.java:447)
at com.bea.wli.sb.test.transform.XQueryProcessor.invoke(XQueryProcessor.java:165)
at com.bea.wli.sb.test.TestServiceImpl.invoke(TestServiceImpl.java:172)
at com.bea.wli.sb.test.client.ejb.TestServiceEJBBean.invoke(TestServiceEJBBean.java:167)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl.invoke(Unknown Source)
at com.bea.wli.sb.test.client.ejb.TestService_sqr59p_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:252)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: java.lang.NoClassDefFoundError: nl/darwin-it/osb/dvm/DomainValueMap
at nl.darwin-it.osb.xpath.DomainValueMapLookup.lookupDVM(DomainValueMapLookup.java:35)
... 28 more
Caused by: java.lang.ClassNotFoundException: nl.darwin-it.osb.dvm.DomainValueMap
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
... 29 more
Can any one explain to me how I can get the OSB Util Services jar library in the same classpath as the custom-xpath-functions jar, without having it put along the custom-xpath-functions jar in the osb-home/config/xpath-functions folder (since that somehow breaks the weblogic console)?
How does the OSB classpath/classloading mechanisms work in this?
Thanks in advance,
Regards,
Martien

I am running the plugin registration utility but it generates the error mentioned below. I have verified the structure of my zip file and the structure of zip file is:
-> SelfRegisterUserCustomValidator.zip
->Plugin.xml
->/lib/SelfRegisterUserCustomValidator.jar
->/resources/
Following our contents of plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<oimplugins>
<plugins pluginpoint="oracle.iam.request.plugins.RequestDataValidator">
<plugin pluginclass= "com.infotech.tra.CustomValidator.SelfRegisterUserCustomValidator" version="1.0.0" name="SelfRegisterUserCustomValidator">
</plugin>
</plugins>
</oimplugins>
Following is the error being generated:
Enter name (complete file name with path) of the plugin file:
/u01/oracle/Middleware/Oracle_IDM1/server/plugin_utility/SelfRegisterUserCustomValidator.zip
[java] Java Result: 1
[echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/iam/platformservice/utils/PluginUtility
[echo] Caused by: java.lang.ClassNotFoundException: oracle.iam.platformservice.utils.PluginUtility
[echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[echo] at java.security.AccessController.doPrivileged(Native Method)
[echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[echo] Could not find the main class: oracle.iam.platformservice.utils.PluginUtility. Program will exit.

Similar Messages

  • Log4j classes not found in custom RoleMapper (sometimes)

    WLS8.1 sp2, using wlserver ant task to start the server. Not sure if this is
    the best group, but...
    I have a custom RolerMapper provider that I can successfully add to a
    running server through the admin console, but when I try to start the server
    via ant (essentially a coldstart with a saved config.xml file,
    boot.properties and ldift files), the server throws a NoClassDefFoundError:
    [wlserver] <Mar 19, 2004 2:57:08 PM EST> <Info> <Security> <BEA-090075>
    <The RoleMapper provider has had its LDIF information loaded from:
    C:\bea\user_projects\domains\combinenet\.\DefaultRoleMapperInit.ldift>
    [wlserver]
    [wlserver] The WebLogic Server did not start up properly.
    [wlserver] java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    [wlserver] at com.combinenet.util.Logger.<init>(Logger.java:113)
    [wlserver] at com.combinenet.util.Logger.getLogger(Logger.java:125)
    [wlserver] at com.combinenet.util.Logger.getLogger(Logger.java:136)
    [wlserver] at
    com.combinenet.security.CNRoleMapperProvider.<clinit>(CNRoleMapperProvider.j
    ava:65)
    I tried adding "Class-Path: log4j.jar" to the manifest of the provider jar
    file, and I even stuffed the log4j.jar in there too, but neither worked.
    log4j.jar is in the server's common/lib directory, and other parts of our
    app use log4j without a problem.
    I worked around this by unjarring log4j.jar and updating my provider jar
    with all of the classes, but obviously isn't a solution.
    Any idea why log4j.jar isn't being loaded by the server's bootstrap
    classloader at startup (from common/lib)?
    How can I add log4j.jar to the classpath in the wlserver task? (it doesn't
    support the classpath attribute).
    I've had more problems getting log4j to work properly with WLS...
    Thanks for any help,
    Miles

    I ran in the same problem... I tried to autogenerate the Manifest file from the
    weblogicMbeanMaker with no success. So instead of hacking the Manifest file (I
    could not do it from ANT)., I conceded the game to weblogic and put the log4j.jar
    in the Classpath in startWebLogic.cmd/startWebLogic.sh.
    It worked.
    How do you change the manifest? After generating the .jar or did u find a work
    around for the webLogicMbeanMaker class?
    "Miles Krivoshia" <mkrivoshia{{remove}}@combinenet.{{rem}}com> wrote:
    FYI, if anyone is interested, putting the log4j.jar in the mbeantypes
    directory and using the Class-Path: log4j.jar entry in the provider's
    manifest file got around this problem. It seems that jars in the system
    classpath is not available to security provider jars for some reason.
    I
    don't recall seeing that documented anywhere.
    "Miles Krivoshia" <mkrivoshia{{remove}}@combinenet.{{rem}}com> wrote
    in
    message news:[email protected]...
    Thanks for the reply. I have tried placing the jar in the system classpath
    (that's how our ejbs access log4j, just fine), but that didn't workeither.
    Seems to be something special about provider jars. I'll follow up onthe
    mgmt newsgroup.
    -Miles
    "Craig" <[email protected]> wrote in message
    news:[email protected]...
    I believe you will need to place the jar in the system classpath.
    You
    can
    ask about
    provider jars and using the class path from the manifest file in
    the
    weblogic.developer.interest.management
    newsgroup.
    "Miles Krivoshia" <mkrivoshia{{remove}}@combinenet.{{rem}}com> wrote:
    WLS8.1 sp2, using wlserver ant task to start the server. Not sure
    if
    this is
    the best group, but...
    I have a custom RolerMapper provider that I can successfully addto a
    running server through the admin console, but when I try to startthe
    server
    via ant (essentially a coldstart with a saved config.xml file,
    boot.properties and ldift files), the server throws aNoClassDefFoundError:
    [wlserver] <Mar 19, 2004 2:57:08 PM EST> <Info> <Security>
    <BEA-090075>
    <The RoleMapper provider has had its LDIF information loaded from:
    C:\bea\user_projects\domains\combinenet\.\DefaultRoleMapperInit.ldift>
    [wlserver]***************************************************************************
    [wlserver] The WebLogic Server did not start up properly.
    [wlserver] java.lang.NoClassDefFoundError: org/apache/log4j/Logger
    [wlserver] at com.combinenet.util.Logger.<init>(Logger.java:113)
    [wlserver] at
    com.combinenet.util.Logger.getLogger(Logger.java:125)
    [wlserver] atcom.combinenet.util.Logger.getLogger(Logger.java:136)
    [wlserver] atcom.combinenet.security.CNRoleMapperProvider.<clinit>(CNRoleMapperProvider.
    j
    ava:65)
    I tried adding "Class-Path: log4j.jar" to the manifest of the provider
    jar
    file, and I even stuffed the log4j.jar in there too, but neither
    worked.
    log4j.jar is in the server's common/lib directory, and other partsof
    our
    app use log4j without a problem.
    I worked around this by unjarring log4j.jar and updating my provider
    jar
    with all of the classes, but obviously isn't a solution.
    Any idea why log4j.jar isn't being loaded by the server's bootstrap
    classloader at startup (from common/lib)?
    How can I add log4j.jar to the classpath in the wlserver task? (itdoesn't
    support the classpath attribute).
    I've had more problems getting log4j to work properly with WLS...
    Thanks for any help,
    Miles

  • Service Bus 12c Class not found 'oracle.tip.pc.services.functions.ExtFunc'

    Hi,
    Did anyone came across this issue with Class not being found for XSLT Function used in transformer on 12c OSB.
    I'm using oraext:sequence-next-val and have configured as below:
    namespace-uri:http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc
    namespace-prefix: oraext
    Not sure why at runtime I'm getting below error, as the same was working fine in 11g OSB Domain.
    XML-22045: (Error) Extension function error: Class not found 'oracle.tip.pc.services.functions.ExtFunc'

    Have you restarted servers after putting jar in $Domain_Home/lib directory? Also try after explicitly adding this jar in classpath by editing server startup script (startManagedWeblogic.cmd or .sh) or in domain env setting script (setDonainEnv.cmd or .sh) and restarting the servers.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Mar 21, 2011 1:10 PM

  • Custom XPath Function not working - ORABPEL-09503 error

    I wrote a simple date conversion custom xpath function.
    1. Implemented IXPathFunction as mentioned in Clemens and Antony Reynolds blog.
    2. Also changed the xpath-functions.xml kept at C:\product\10.1.3.1\OracleAS_1\bpel\system\config\xpath-functions.xml and also at C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\config\xpath-functions.xml (Not sure why this xml is in two places)
    3. Placed my class file at C:\product\10.1.3.1\OracleAS_1\bpel\system\classes and also made a jar and placed in C:\product\10.1.3.1\OracleAS_1\j2ee\home\applib.
    But when I run the process which uses this custom function, it is throwing the following error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09503 Invalid xpath expression. Error while parsing xpath expression "o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');", the reason is Error in expression: 'o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');'.. Please verify the xpath query "o2c:formatDateString('10/30/2007', 'MM/DD/yyyy', 'YYYY-MM-DD');" which is defined in BPEL process. </faultstring>
    </Fault>
    Can somebody help me to resolve this.

    My bad. I had a semi-colon after the expression. Now I am getting a different error
    <Faulthttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>env:Server</faultcode>
    <faultstring>ORABPEL-09500 XPath expression failed to execute. Error while processing xpath expression, the expression is "o2c:formatDateString('10/30/2007', 'MM/DD/YYYY', 'YYYY-MM-DD')", the reason is FOTY0001: type error. Please verify the xpath query. </faultstring>
    </Fault>

  • Bpel Server Does Not Catch Exceptions Thrown By Custom Xpath Functions

    Hi.
    I am using some custom xpath functions in a bpel process and whenever they fail I get an XPathExecutionError with summary:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "<my function>", the reason is FOTY0001: type error.
    Please verify the xpath query.
    I am forcing my function to fail by giving a wrong input, which should result in an XPathFunctionException("Input does not respect format").
    There is a note on Metalink with ID 458434.1 on this subject which says that patch 5926809 should fix my problem.
    Patch 5926809 fixes Bug 5926809 - ORA:PARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE FOTY0001: TYPE ERROR.
    I am using it, but it does not work :(
    I am using version 10.1.3.3.0 of App Server with various patch sets, including fix for bug 5926809.
    Has anyone suggestions on how to overcome this problem?
    Thanks

    Hello,
    I am trying to add a custom xpath function to the BPEL server, and I see that you made it work. I am using Oracle SOA Suite 10.1.3.3 and jDeveloper 10.1.3.4. I am using this function inside an xsl mapping file, although I am able to compile and deploy the Bpel Process to the server, it stops mapping where I placed the function and I have not seen any meaningful message from the domain/log/ files.
    Can you tell me how you did it?
    I think you will tell me faster than Oracle support, I already placed an SR but they just give me superficial advice.
    I appretiate your time and advice,
    Guillermo

  • Osb-custom xpath function in 11g

    is it possible to place osb-custom.xml in some other locations other than C:\<middlewarehome>\oracle_osb1\config\xpathfunctions and refer it during server startup as we have only read access to oracleOSB1 in production environments???

    I understand your reply and we are already doing that.
    the osb installation is common across the domains .but i need these custom xpath function reflected only for my domain.
    so my query is "whether we can set/overwrite any -D property at server startup or any server/domain level settings rather than updating the installation path?"
    I am just trying to understand whether we can avoid conflicts with multiple domains sharing the same installation.

  • Error using custom xpath function with XSL transformations in BPM

    Hi,
    We have created a custom xpath function for use with SOA Suite and BPM. This has been built as per specified within the http://docs.oracle.com/cd/E29597_01/dev.1111/e10224/bp_appx_functs.htm#SOASE11100. We have also reviewed the Oracle Sample for mapper-107-ExtensionFunctions (sample demonstrates the use of user-defined extension functions). This has been registered with jDeveloper and SOA within the oracle.soa.ext_11.1.1 (run ant to include in oracle.soa.ext.jar)
    We ideally want to use this is BPM within an xsl. However when consuming this function is either BPEL or BPM using an xsl, the xsl fails with an error such as:
    XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload). The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/default/gwCustomXpathUtil_rev1.0/xsl/Transformation_1.xsl<Line 9, Column 113>: XML-22043: (Error) Extension function error: Method not found 'getWeekDayDate'. Check the detailed root cause described in the exception message text and verify that the XPath query is correct.
    In an Assign it operates fine and returns the expected result. We have included a combination of both of the Config files (ext-mapper-xpath-functions-config.xml and ext-soa-xpath-functions-config.xml) in the META-INF folder, however neither allow the use of this function in the XSL.
    I believe there may be an issue getting the custom xpath functions within XSL files. Hence I have also raised an SR. Has anyone experiences of this?
    Our SOA / BPM suite environment is using 11.1.1.6.4 and has the following patches applied:
    13801175
    14406487 (11.1.1.6.4 SOA Bundle)
    13896993
    13088538
    Regards Dave
    Edited by: DavidGaskell on Mar 14, 2013 10:08 PM

    Hi All,
    I am also facing the same issue...Experts can you please help us.
    hi DavidGaskell, did you find any resolution, if so can you share it with me.....
    Thanks,
    RR

  • Class not found - was channel definition question

    I am much closer.  Tomcat is putting some key messages in the console and I overlooked them.  It looks like I am closer than I thought.  The request looks like its getting received, but my service blows up on response due to I think two class not found issues.  But, I can't tell what classes are missing.
    [Flex]Deserializing AMF/RTMP request
    Version: 3  null
      2.0
      (Command method=null (0) trxId=2.0)
        null
        (Externalizable Object #0 'flex.data.messages.DataMessageExt')
          (Array #1)
            [0] = (Typed Object #2 'flex.data.messages.DataMessage')
              identity = (Object #3)
                partId = 81959
              operation = 11
              correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
              headers = (Object #4)
              messageId = "8AF6C660-9DE3-F155-6A91-88F3CAC5A4F0"
              timestamp = 0
              destination = "DocumentPart"
              timeToLive = 0
              body = (Typed Object #5 'com.hpdocs.ds.document.DocumentPart')
                documentId = 81960
                partId = 81959
                content = "Hello World"
              clientId = "05E549ED-455F-A9AF-EEDE-88F3CA7E4BF9"
    "DocumentPart"
    (Object #6)
            DSEndpoint = "hp_rtmp"
            DSId = "F65B351A-A60C-6F91-2932-44630DAED2B9"
    (Byte Array #7, Length 16) ""
    7
    [Flex]Received command: TCCommand [ Cmd: 0, MethodName: null, TrxID: 2.0]
    [Flex]Serializing AMF/RTMP response
    Version: 3
      (Command method=_error (0) trxId=2.0)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          headers = (Object #1)
          rootCause = (Typed Object #2 'java.lang.NoClassDefFoundError')
            message = "javax/transaction/SystemException"
            localizedMessage = "javax/transaction/SystemException"
            cause = (Typed Object #3 'java.lang.ClassNotFoundException')
              message = "javax.transaction.SystemException"
              localizedMessage = "javax.transaction.SystemException"
              cause = null
              exception = null
          body = null
          correlationId = "419F99AA-B649-9490-650D-88F3CAADBCB7"
          faultDetail = null
          faultString = "There was an unhandled failure on the server. javax/transaction/SystemException"
          clientId = "F65B3649-620E-C827-50C4-6A1C78BC3712"
          timeToLive = 0.0
          destination = "DocumentPart"
          timestamp = 1.273607998612E12
          extendedData = null
          faultCode = "Server.Processing"
          messageId = "F65B3675-5409-795E-747F-B2F459749415"

    it looks like your Tomcat is missing the JTA setting.
    Tomcat
    To use LiveCycle Data Services with Tomcat when not using the integrated Tomcat configuration, install support for the Java Transaction API (JTA). You might also have to install several other libraries depending on the features that you plan to use. Follow these steps after deploying the LiveCycle Data Services WAR files. These steps are not necessary for the integrated Tomcat installation.
    Stop Tomcat.
    To install support for JTA, a recommended implementation is the Java Open Transaction Manager (JOTM), which is a fully functional open source stand-alone transaction manager.
    Download JOTM from http://jotm.objectweb.org.
    Copy the JAR files from jotm-root/lib to [tomcat-root]/common/lib.
    Create a context file for your web application and register JOTM using the Transaction element. For example, for the samples WAR create a tomcat-root/conf/Catalina/localhost/lcds-samples.xml file and add the following lines:CONTEXT antijarlocking="false" antiresourcelocking="false"   docbase="${catalina.home}/webapps/lcds-samples" path="/lcds-samples"   privileged="true">  <TRANSACTION factory="org.objectweb.jotm.UserTransactionFactory"   jotm.timeout="60"></TRANSACTION></CONTEXT> 
    Note: If a context file exists for your web application, add the <TRANSACTION> element under the <CONTEXT> element.
    Increase the maximum memory to at least 512 MB by specifying the maximum heap size for the JVM in the JAVA_OPTS variable: -Xmx512m
    (Optional) To enable custom authentication, locate the Tomcat security resource libraries under install_root/resources/security/tomcat.
    Place the flex-tomcat-common.jar and flex-tomcat-server.jar files in the tomcat/lib folder.
    Add the following line to the context descriptor file for your web application:
    <VALVE classname="flex.messaging.security.TomcatValve"></VALVE>
    You can now perform authentication against the current Tomcat realm. Usually, the default configuration for authentication stores user information in conf/tomcat-users.xml. See the Tomcat documentation for more information on realms. See the LiveCycle Data Services documentation for more information on custom authentication.
    You might also have to update the active <LOGIN-COMMAND> in /WEB-INF/flex/services-config.xml in each deployment of a LiveCycle Data Services WAR file. For Tomcat, ensure that the TomcatLoginCommand is active in the <SECURITY>section:<SECURITY><LOGIN-COMMAND server="Tomcat"></LOGIN-COMMAND>...</SECURITY>
    (Optional) To use the JMSAdapter with the Message Service, install and configure a JMS provider (such as ActiveMQ or openJMS) for use with Tomcat.
    Restart Tomcat.
    original doc is located here
    Hopefully this will help.

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • B2B Java Callout Class not found exception

    Hello B2B Gurus,
    I am facing class not found exception, when trying to call a java code from B2B and below the configuration done from B2B side.
    Could you please help me to identify that the configuration done suffice the requirement
    1.Created a call out from
    Adminstration-- Callout-- Create Callout -- XXJavaCallout(Name of the Java Callout)
    Administration-- Callout Details -- Implementation Class -- XXClassFileName
    Administration-- Callout Details -- Library Name -- XXJarFileName.jar
    Administration-- Configuration -- Callout Directory -- xx/yy/zz (UNIX server that is accesible from B2B)
    2.Partners--XX--Delivery Channel -- Select the channel where we need the call out -- Channel Attributes -- Transport Callout -- XXJavaCallout
    3.Agreement--Callout -- XXJavaCallout
    Place the jar file in xx/yy/zz UNIX location.
    Please let me know if any steps I have missed for using the callout functionality.
    Thanks,
    Sunil
    Edited by: Dathu Sunil on Mar 29, 2012 8:17 AM

    Sunil,
    Administration-- Callout Details -- Implementation Class -- XXClassFileNameMake sure that you are giving complete name of the class (without extension .class.). For an example if your class name is Sample and it is in package a.b.c then give class name as a.b.c.Sample
    Administration-- Configuration -- Callout Directory -- xx/yy/zz (UNIX server that is accesible from B2B)This must be valid directory existing on machine where B2B is installed.
    2.Partners--XX--Delivery Channel -- Select the channel where we need the call out -- Channel Attributes -- Transport Callout -- XXJavaCallout
    3.Agreement--Callout -- XXJavaCalloutTransport Callout and Agreement Callouts are used for different purpose. Are you sure that you really need both in your case?
    You may like to refer -
    http://docs.oracle.com/cd/E17904_01/integration.1111/e10229/callouts.htm#CHDEFBDG
    Regards,
    Anuj

  • Class not found error afer loading classes to oracle

    hi i have loaded quite a few jars into oralce 11g databse
    created a java stored function
    and executed it
    some times it works... and hits the java front end environment... we are hitting a servlet.. and recording some output statements .. in the function
    but sometimes it throws class not found error
    any idea why its working sometimes and not some othr times?
    Also when i load the jars.. the classes are loaded but when i see the name of the classes using
    select * from user_objects where object_type like 'J%'
    then i see some additional characters prefixxed the class names ... is that causing the problem?
    something like this
    /1a248e6f_GetMethod
    Edited by: learning_man on Mar 11, 2010 1:27 PM

    Learning_man,
    Obviously you need to learn how to ask a question.
    There is nothing in your post other than 'It doesn't work. Why? Help"
    without any specific example. Also you still fail to include a 4 digit version!!!
    It is also the third or the fourth time you asked this very same question.
    Can you learn how to ask a question please? And stop repeating the question when you don't get a response?
    And no, the extra characters are not the problem.
    An incorrect CLASSPATH probably is.
    Sybrand Bakker
    Senior Oracle DBA

  • Getting error:Absence type 100 was not found in Customizing for

    Hi,
    I am using the Standard workfllow for leave application, and when i am  creating the request i am getting the bleow error:
    'Absence type 100 was not found in Customizing for 21.10.2010'
    What could be the reason, i have configured the statndard setting for leave type 100 in SPRO.
    Thanks,
    Krish.

    Hi Kishore,
    Please check the validity period for Absence type 100 configuration.
    Also pass this Error message to your HR Functional consultant. It is the configuration issue and your FM have to take care of this issue.
    Thanks.

  • Class not found for class generated by autotype when deploy

    I'm getting a ClassNotFoundException when I attempt to deploy a webservice that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute. Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDL files. source2wsdd specified the "javaSource" attribute and points to the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JAR file for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" I specify the class files that goes with the "javaSource" specified in step 2. I also take the JAR file created in step 2 (which contains all the code generated by step 1) and use "utilJars" to put in the the /lib directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classes that is in the utility jar file I created in step 2. I have verified that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to not find the class?
    Thanks in advance...
    Wayne

    Bruce: Got it working. (Bad news is I'm not sure what I did to fix it. :-( )
    My service now deploys, but I'm having problems doing a "source2wsdd" from inside
    Eclipse. Found another customer in this group with the same issue, and added my
    info to his message.
    For now I have to run the build outside Eclipse, but at least my service is deployable.
    Thanks for taking the time to reply to my message!
    Wayne
    Bruce Stephens <[email protected]> wrote:
    I think attachments are working again, so you might post a short example
    and we can take a look...
    Bruce Stephens wrote:
    Hi Wayne,
    Could it be something simple like not being capital "WEB-INF"
    ...probably not, but who knows. Also, in step 1, is your destDir going
    to WEB-INF/classes ?? Might review the working example Manoj generated
    [1].
    HTH,
    Bruce
    [1]
    http://www.manojc.com/?sample43
    Wayne Holmes wrote:
    I'm getting a ClassNotFoundException when I attempt to deploy a webservice
    that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute.Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDLfiles. source2wsdd specified the "javaSource" attribute and points to
    the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JARfile for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" Ispecify the class files that goes with the "javaSource" specified in
    step 2. I also take the JAR file created in step 2 (which contains all
    the code generated by step 1) and use "utilJars" to put in the the /lib
    directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classesthat is in the utility jar file I created in step 2. I have verified
    that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to notfind the class?
    Thanks in advance...
    Wayne

  • Created serializable object, but get "Class not found" on "createObjectMessage()" cal

    I'm using OC4J 9.0.2.1 and JDeveloper 9.0.2 with Oracle db. I have a set of queues created in the database.
    Before I try to send my request, I create an instance of the serializable object I want to send. I do all of my queue connection setup, then I call:
    queueSession.createObjectMessage(request);
    Where "queueSession" is a QueueSession obtained from "queueConnection.createQueueSession()".
    When I step over this function call, I get the following:
    oracle.jms.AQjmsException: JMS-109: Class not found: com.attws.it.bsa.felix.mci.common.ServiceInfoRequest
    (The indicated class name is the type of the "request" object.)
    What could I be doing wrong?

    The code below creates the following classes when I compile it (using jsk1.3):
    DistanceBarApplication2.class
    DistanceBarApplication2$1
    DistanceBarApplication2$2
    DistanceBarApplication2$3
    DistanceBarApplication2$DistanceBar2
    The error I receive is: load: class DistanceBarApplication2 not found
    Here is my HTML code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    </HEAD>
    <BODY>
    <applet code="DistanceBarApplication2.class" width=300 height=50>
    </applet>
    </BODY>
    </HTML>
    Here is the Java code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DistanceBarApplication2 extends JApplet {
    private final DistanceBar2 bar = new DistanceBar2();
    public void init() {
    bar.setMaximum(100);
    bar.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    bar.stop();
    JOptionPane.showMessageDialog(bar, bar.getValue() + " yards");
    bar.start();
    this.getContentPane().add(bar);
    bar.start();
    static class DistanceBar2 extends JProgressBar {
    private Thread mThread;
    private boolean mRunning= false;
    private int mValue = 0;
    private boolean mUp = true;
    private Runnable updater = new Runnable() {
    public void run() {
    setValue(mValue);
    public void start() {
    if (mRunning) {
    return;
    mRunning = true;
    mThread = new Thread(new Runnable() {
    public void run() {
    while (mRunning) {
    try {
    Thread.sleep(30);
    } catch (InterruptedException e) { }
    adjust();
    mThread.setDaemon(true);
    mThread.start();
    public void stop() {
    mRunning= false;
    // Best to let a thread run itself out
    // if (mThread != null)
    // mThread.interrupt();
    // Don't need this for this applet, but possibly later
    // public Dimension getPreferredSize() {
    // return new Dimension(300,70);
    private void adjust() {
    int delta = getMaximum() / 40;
    mValue += delta * (mUp ? 1 : -1);
    if (mValue >= getMaximum()) {
    mValue = getMaximum();
    mUp = false;
    } else if (mValue <= 0) {
    mValue = 0;
    mUp = true;
    SwingUtilities.invokeLater(updater);

  • Getting the Adapter Class Not Found Error in the Java Manipulator

    Hi,
    I wrote a custom java manipulator for the baseline update and created a jar file for the class. This works fine in the Windows machine. All I have to do is while specifying the CLASSPATH, I entered the ./ib/newManipulator.jar; ./lib/additional_dependency.jar. When I tried to deploy the same code in the Unix environment, it fails saying the Adapter Class not found. The only difference from windows and Unix environment is that in the windows machine, in order to run the base line update, I go to the directory my_project->control->baseline_update.bat but in case of Unix environment I have a separate location where I have a shell script called run-baseline-update.sh located at /apps/bin which invokes the baseline.sh in the directory my_project/control/baseline.sh. I even tried to put the full path of the jar files e.g. /my_project/lib/newManipulator.jar; /my_project/lib/additional_dependency.jar in the class path but still the same issue. Any suggestions?

    Unix classpath needs ":" as the path separator, not ";". Changing that will make this work.
    For reference, later versions of the deployment template make this configurable, so you'd see (in environment.properties):
    # PATH_SEP_VARNAME: for platform-independence
    PATH_SEP_VARNAME=;
    # Forge needs record store libraries as well as Spring to load record store adapter configuration files
    FORGE_CLASSPATH=./config/lib/java/spring-delegate-adapter-1.0.1.jar${PATH_SEP_VARNAME}./config/lib/java/spring.jar${PATH_SEP_VARNAME}./config/lib/java/eacToolkit.jar${PATH_SEP_VARNAME}./config/script${PATH_SEP_VARNAME}.
    You can then add the following to your <forge /> definition in AppConfig.xml:
    <arg>--javaClasspath</arg>
    <arg>${FORGE_CLASSPATH}</arg>
    Hope this helps.
    Michael

Maybe you are looking for

  • Good color/contrast cs4 Bridge; in Camera Raw files are overexposed...

    flat, and color is distorted. When files are opened into photoshop cs4, they appear as they do in Camera Raw, awful. I have re-downloaded cs4 from the adobe site, but the problem still persists. Any thoughts? Thank you for all response.

  • External Studio Monitor??

    I read the most recent thread regarding this subject but, suppose you are equipping a studio and money is not really that much of an object, then what would you guys suggest as a large screen external studio monitor. Currently we are using a professi

  • Please, tool for automatic java source conversion?

    Hi, Apart from Sun's jilkit, do you know a software a software that could take the first java source below as input and automatically produce:      1) a converted java source file similar to the second file below;      2) resource files (e.g. mess.pr

  • How to make Filemaker as data store in ODI.

    Hi I have a requirement where i need to export data from Filemaker 11 to Oracle 11g, using ODI 11g . Is their any way to use Filemaker directly or by using ODBC connection of Filemaker to use it as data store to export data into Oracle database. Also

  • Simple BPM correlation question

    Hi! My correlaiton is activated with the following correlation key and value:   <?xml version="1.0" encoding="utf-8" ?>   <CorrelationKey Version="001">   <AGENCYID>00000110</AGENCYID>   <ITEMNUMBER>01</ITEMNUMBER>   <ORDERNUMBER>00000035</ORDERNUMBE