GlassFish CLASSPATH problem

Hello world

I had a very difficult time a Web application running on Glassfish open source Server 3.1, here are the details.

-I'm deploy unpackaged in a .war file, contained in the folder of my domain auto-déployer.

-My Servlets are making use of classes that exist (also unpacked) to other arbitrary places on my file system, all included in the CLASSPATH of my environment, so compilation of my Servlet always succeeds

-The field is started, a ClassDefNotFoundError is thrown when the JAVA virtual machine does not take into account the CLASSPATH environment variable that specifies the location of my classes.


Here are my attempts to fix the problem

1 - Add a symbolic link to the folder containing my courses, the links of the webApp's lib and records of classes, does not work: seems that the links are ignored by the server

2. add locations to my classes in the file domain.xml in any occurrence of the attribute classpath-suffix, not good.

3. Since the graphical console admin of the server, the JVM classpath setting are marked as "not supported", that's why I put the root location in the 'library path suffix"still not good.

It is IMPOSSIBLE to use classes on my filesystem without their packaging or copy in my webApp folder?


Help, please!

Published by: Alphekkai on September 18, 2011 17:52

It would work if you actually followed standards JEE for application packaging. What you try to do goes against the standards, although there is a way to hack to make it work as you want, it is not recommended nor supported, and I'm not inclined to show people how to do things the wrong way.
What I suggest you do is read on how package war files correctly to work things out. Also, I suggest you also study the class loading mechanism of JEE servers that will give you the reason why what you're trying to do is bad and should be avoided.

Tags: Fusion Middleware

Similar Questions

  • Classpath problem?

    I currently have the upgrade from JRun 3.1 to 4.0 (Updater 6). I am now running Win 2 k 3 Server, and JDK 1.3.0_02. So far, the old servlets have all worked very well. My problem is with a servlet called MailServlet. When I try to run this servlet, I get this message:

    ===============
    500
    com/oreilly/servlet/ParameterParser


    java.lang.NoClassDefFoundError: com/oreilly/servlet/ParameterParser
    at MailServlet.doPost (MailServlet.java:122)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
    at jrunx.util.DynamicClassLoaderFilter.doFilter(DynamicClassLoaderFilter.java:48)
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
    at jrun.servlet.FilterChain.service(FilterChain.java:101)
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
    to jrunx.scheduler.ThreadPool$ DownstreamMetrics.invokeRunnable (ThreadPool.java:320)
    to jrunx.scheduler.ThreadPool$ ThreadThrottle.invokeRunnable (ThreadPool.java:428)
    to jrunx.scheduler.ThreadPool$ UpstreamMetrics.invokeRunnable (ThreadPool.java:266)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    ===============

    After some research, I'm under the impressive that the servlet is trying to access a class (ParameterParser) in an archive named cos.jar (see http://servlets.com/cos/). My previous server, which was running JRun 3.1, was the cos.jar file stored in the same directory as all my other servlets. However, when I tried in 4.0, the MailServlet does not work. Certainly, most of my research has been pretty much a shot in the water, so I don't know if I'm still on track assuming the problem is to access the cos.jar.

    Could someone give me clues or direct me to a kind of documentation? Thank you.

    Problem solved. Created a WEB-INF\lib directory and placed the file cos.jar in it.

  • 9.2 MP2 MP3 classpath problem

    We have improved 9.2.2 to 9.2.3 Weblogic. and now, we cannot find the properties file that has been defined in the classpath.

    Classpath on managed server:
    /opt/BEA/JDK5/lib/tools.jar:/opt/BEA/JDK5/JRE/lib/RT.jar:/opt/BEA/weblogic92/server/lib/webservices.jar:/opt/BEA/weblogic92/server/lib/WebLogic.jar:/ESI/HSdom/HistoryBuildLabelInfo.properties:

    The end statement classpath is the HistoryBuildLabelInfo.properties properties file.

    We are using Struts. Here's how we retrieve the properyfile.

    Reference Struts - config.xml:

    < parameter message-resources = "HistoryBuildLabelInfo" key = null 'buildInfo' = "false" / >

    Reference of JSP (login.jsp & ent - about.jsp):

    < bundle bean: message = 'buildInfo' key = "build.hslabel" / > "
    < bundle bean: message = 'buildInfo' key = "build.dataserviceslabel" / > "
    < bundle bean: message = 'buildInfo' key = "build.reportslabel" / > "
    < bundle bean: message = 'buildInfo' key = "build.pubslabel" / > "

    Properties file:

    Build #History application version information
    Build.version = Ready to build
    Build.date = 20080924-1410
    Build.hslabel = Ready to build
    Build.dataserviceslabel = Ready to build
    Build.reportslabel = hs_maint_rep_3.11.0
    Build.pubslabel = hs_maint_rep_3.11.0

    This same code was working in Weblogic 9.2.2 with a reference to the property file in the classpath of weblogic.

    I have a file number for this but it is a very painful process.

    Any help is appreciated!

    Tom.

    Hi, Tom.

    In your classpath, you specify the properties file: /esi/HSdom/HistoryBuildLabelInfo.properties

    You want the path to this file instead: / esi/HSdom

    Only pots and inventories entered valid classpath.

    Does make sense?

    See you soon,.
    -Adrian

  • classpath problem? the import of packages of fl works not

    the compiler can't find the class definitions for all packages under "fl".

    in this example, I try to use fl.controls.List and fl.data.DataProvider; nothing comes.

    What gives? I'm not supposed to use the fl packages directly?

    any help would be most appreciated. I'm stuck on this.

    Thank you

    It should work fine. have you dragged a list item in your library?

  • GlassFish and ADF JDeveloper

    We have a problem in an ADF Application (Jdevelper version: Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5)).

    kindly if you have an idea why this error occurs when a workflow running with an jsff affair.

    The stack trace is as follows:

    ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in the phase RENDER_RESPONSE 6 java.lang.VerifyError: (class: bc4j_relativePath_expression_Expression_gs, method: super$ $3 evaluate signature: (Ljava/io/file ;)) Ljava/lang/object ;) Illegal use of calling non-virtual function at java.lang.Class.getDeclaredConstructors0 (Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) at java.lang.Class.getConstructor0(Class.java:2842) at java.lang.Class.newInstance(Class.java:345) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:421) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at oracle.jbo.ExprEval.parseScript(ExprEval.java:1571) at oracle.jbo.ExprEval.findScript(ExprEval.java:1152) at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1956) at oracle.jbo.ExprEval.doEvaluate(ExprEval.java:1928) at oracle.jbo.ExprEval.evaluateForRow(ExprEval.java:1647) at oracle.adf.model.bean.DCDataVO.createViewAccessorRS(DCDataVO.java:1291) at oracle.adf.model.bean.DCCriteriaBaseVOImpl.createViewAccessorRS(DCCriteriaBaseVOImpl.java:33) to oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2774) to oracle.adf.model.bean.DCDataRow.createViewAccessorRS(DCDataRow.java:427) to oracle.jbo.server.ViewRowImpl.createViewAccessorRS(ViewRowImpl.java:2785) to oracle.jbo.server.ViewRowStorage.getAttributeInternal(ViewRowStorage.java:1929) to oracle.jbo.server.ViewRowImpl.getAttributeValue(ViewRowImpl.java:2036) to oracle.jbo.server.ViewRowImpl.getAttributeInternal(ViewRowImpl.java:886) to oracle.jbo.server.ProgrammaticViewRowImpl.getAttributeInternalDelegation(ProgrammaticViewRowImpl.java:195) to oracle.adf.model.bean.DCDataRow.getAttributeInternal(DCDataRow.java:279) to oracle.adf.model.bean.DCCriteriaRowImpl.getAttributeInternal) DCCriteriaRowImpl.java:84) to oracle.jbo.server.ViewRowImpl.getAttrInvokeAccessor(ViewRowImpl.java:968) to oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:916) to oracle.jbo.server.ViewRowImpl.getAttribute(ViewRowImpl.java:1035) to oracle.adf.model.bean.DCBeanDataControl.getAccessorValue(DCBeanDataControl.java:1425) to oracle.adf.model.binding.DCDataControl.createAccessorRowSetIterator(DCDataControl.java:679) to oracle.adf.model.bc4j.DCJboDataControl.createAccessorRowSetIterator(DCJboDataControl.java:1154) to oracle.adf.model.binding.DCDataControl.createAccessorRowSetIterator(DCDataControl.java:662) to oracle.jbo.uicli.binding.MyIteratorBinding.initSourceRSI(JUAccessorIteratorDef.java:857) to oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1751) to...

    Looks like you have some problem with glassfish classpath (so he chose an incorrect version of groovy jar) or with the version of the JDK.

    To verify which version of the JDK is used for your glassfish domain and also install essentials new adf libraries (make sure they are for 12.1.3 version)

    Dario

  • Problem to start Weblogic 10.3.6 on Windows 7 64 bit

    Hello

    I installed the WebLogic in a 64-bit Windows 7 environment, but I can not start the server administrator after the creation of the field.

    When I try to start the Server Admin I have this error:

    *********************************************************

    * Setting up specific SOA environment to win...

    *********************************************************

    Path = D:\u01\oracle\wls1036\patch_wls1036\profiles\default\native; D:\u01\oracle\w

    ls1036\patch_ocp371\profiles\default\native;D:\u01\oracle\wls1036\wlserver_10.3\

    server\native\win\x64;D:\u01\oracle\wls1036\wlserver_10.3\server\bin;D:\u01\orac

    le\wls1036\modules\org. Apache.ant_1.7.1\Bin; C:\Progra~1\Java\jdk1.7.0_80\jre\bin

    ; C:\Progra~1\Java\jdk1.7.0_80\bin;D:\u01\oracle\db\product\11.2.0\dbhome_2\bin;D

    : \u01\oracle\db\product\11.2.0\dbhome_1\bin; C:\PROGRA~2\COMMON~1\PORTAL~1; C:\PRO

    ARG ~ 2\COMMON ~ 1\PORTAL ~ 1\Jre\Bin; C:\Program Files (x 86) \Common Files\Portal Softw

    are; C:\Windows\System32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\

    WindowsPowerShell\v1.0\; C:\Program Files (x 86) \IBM\GSK7_64\bin; C:\Program Files

    (x 86) \IBM\GSK7_64\lib64; C:\Program Files (x 86) \ibm\gsk7\bin; C:\Program Files (x 8

    6)\ibm\gsk7\lib;D:\u01\oracle\wls1036\wlserver_10.3\server\native\win\x64\oci920

    _8; D:\u01\oracle\wls1036\Oracle_SOA1\soa\thirdparty\edifecs\XEngine\bin

    .

    USER_MEM_ARGS =-Xms768m-Xmx1536m - XX: PermSize = 256 m - XX: MaxPermSize = 768 m

    .

    JAVA_OPTIONS =

    .

    *****************************************************

    The end of setting up the SOA environment specific to win.

    *****************************************************

    \Exceed.nt\hcljrcsv.jar was not planned at this time.

    D:\u01\oracle\domain\soa_domain >

    Can someone help me?

    TKS!

    Luiz

    Looks like a CLASSPATH problem. Check your system classpath and make sure there are quotation marks ("") around the entire string classpath.

  • oracle.jbo.JboException: Houston-34010:

    Hi all

    In my portal app, I'm not able to run it. I get this error in the log.

    oracle.jbo.JboException: Houston-34010: the "view/DataBindings.cpx" descriptor appears in the classpath of the application several times:


    How do I solve this problem

    Do you reference another project in your application. Its classpath problem. Just google you will get as many Ref

    Oracle ADF: Do you deal with applications Master-children in your application?

    For the ADF: bounded task flows as library ADF @ADF

  • Project of OSB of the error using Ant Script development

    Hi all

    I encounter the error while trying to build an eclipse workspace .jar file using the following ant script.

    The project even when built in Eclipse directly, rests and a .jar file is generated.

    Kindly help me to resolve the issue.

    Error:

    ! SESSION-2014-06-16 09:23:50.085-

    eclipse.buildId = M20110909-1335

    Java.version = 1.6.0_29

    Java.Vendor Sun Microsystems Inc. =.

    BootLoader constants: OS = win32, ARCH = x 86, WS = win32, NL = en_US

    Framework arguments:-application - configProject com.bea.alsb.core.ConfigExport POC - configJarC:/Users/bradhakr/desktop/OSB CMT/Working-OSB_CMT/CommonNotificationService1.jar configSubProjects - CommonNotificationService - true includeDependencies

    Command line arguments:-dataC:/Users/bradhakr/workspace-application - configProject com.bea.alsb.core.ConfigExport POC - configJarC:/Users/bradhakr/desktop/OSB CMT/Working-OSB_CMT/CommonNotificationService1.jar configSubProjects - CommonNotificationService - true includeDependencies

    ! ENTRY org.eclipse.osgi 4 0 09:23:52.238 2014-06-16

    ! MESSAGE an error has occurred in automatically activate com.bea.alsb.core bundle (933).

    ! BATTERY 0

    org.osgi.framework.BundleException: Exception in com.bea.alsb.core.AlsbCore.start () from bundle com.bea.alsb.core.

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

    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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

    Caused by: java.lang.NoClassDefFoundError: weblogic/xml/query/compiler/Analyzer/XQueryTokenListener

    at com.bea.alsb.core.AlsbCore.preStart (unknown Source)

    at com.bea.alsb.core.AlsbCore.start (unknown Source)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    ... 34 more

    Caused by: java.lang.ClassNotFoundException: weblogic.xml.query.compiler.parser.XQueryTokenListener

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... 39 more

    First exception:

    java.lang.NoClassDefFoundError: weblogic/xml/query/compiler/Analyzer/XQueryTokenListener

    at com.bea.alsb.core.AlsbCore.preStart (unknown Source)

    at com.bea.alsb.core.AlsbCore.start (unknown Source)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

    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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

    Caused by: java.lang.ClassNotFoundException: weblogic.xml.query.compiler.parser.XQueryTokenListener

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... 39 more

    ! ENTRY org.eclipse.osgi 4 0 09:23:53.174 2014-06-16

    ! Application error MESSAGE

    ! BATTERY 1

    org.eclipse.core.runtime.CoreException: com.bea.alsb.core plugin failed to load class com.bea.alsb.core.internal.repositories.ConfigExportApplication.

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:194)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:176)

    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)

    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)

    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:191)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

    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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

    Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$ TerminatingClassNotFoundException: an error occurred when turned on automatically com.bea.alsb.core bundle (933).

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)

    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)

    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)

    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)

    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)

    ... 16 more

    Caused by: org.osgi.framework.BundleException: Exception in com.bea.alsb.core.AlsbCore.start () from bundle com.bea.alsb.core.

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)

    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)

    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)

    at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)

    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)

    ... 28 more

    Caused by: java.lang.NoClassDefFoundError: weblogic/xml/query/compiler/Analyzer/XQueryTokenListener

    at com.bea.alsb.core.AlsbCore.preStart (unknown Source)

    at com.bea.alsb.core.AlsbCore.start (unknown Source)

    to org.eclipse.osgi.framework.internal.core.BundleContextImpl$ 1.run(BundleContextImpl.java:711)

    at java.security.AccessController.doPrivileged (Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

    ... 34 more

    Caused by: java.lang.ClassNotFoundException: weblogic.xml.query.compiler.parser.XQueryTokenListener

    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)

    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)

    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)

    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

    ... 39 more

    Ant script to export Eclipse workspace:

    < target name = "exportFromWorkspace" >

    <!-remove failonerror = "false" includeemptydirs = "true" dir = "${metadata.dir}" /-->

    "< java dir="C:/Oracle/MiddlewareOSB_11118/oepe_11.1.1.8.0.

    jar="C:/Oracle/MiddlewareOSB_11118/oepe_11.1.1.8.0/plugins/org. Eclipse.Equinox.launcher_1.2.0.v20110502.jar ".

    fork = "true" failonerror = "true" maxmemory = "768 m" >

    < jvmarg line = "-XX:MaxPermSize = 256 m" / >

    < arg line = "-data C:/users/bradhakr/workspace" / >

    < arg line = "-application com.bea.alsb.core.ConfigExport"/ > "

    < arg line = "-configProject POC" / >

    < arg line = "-configJar CMT/Working-OSB_CMT/CommonNotificationService1.jar"/ C:/users/bradhakr/Desktop/OSB > "

    < arg line = "-configSubProjects CommonNotificationService" / >

    < arg line = "-includeDependencies true" / >

    < sysproperty key = "weblogic.home" value ="${weblogic.home}" / > "

    < sysproperty key = "osb.home" value ="${osb.home}" / > "

    < sysproperty key = "osgi.bundlefile.limit" value = "500" / > "

    < sysproperty key = "harvester.home" value="${osb.home}/harvester"/ > "

    < sysproperty key = "osgi.nl" value = "en_US" / > "

    < sysproperty key = "sun.lang.ClassLoader.allowArraySyntax" value = "true" / > "

    < / java >

    < / target >

    Certainly a classpath problem, but troubleshooting builds ant in OSB is a MAJOR EFFING PAIN!

    I can only show you an example of the ant target that works for me, maybe you will spot the difference: http://genericparallel.com/2014/01/out-of-memory-errors-during-the-osb-build/

    Vlad

    http://genericparallel.com

  • Error installing Exchange Connector

    Hello

    Get the following error during the installation of the Exchange Connector. AD connector is already installed.

    < 11 November 2013 12:48:18 CEST > < error > < XELLERATE. WEBAPP > < BEA-000000 > < class/method: ConnectorInstallProcessAction/performance meets certain problems: javax.servlet.ServletException: javax.ejb.NoSuchEJBException: Bean has been removed.

    javax.servlet.ServletException: javax.servlet.ServletException: javax.ejb.NoSuchEJBException: Bean has been removed.

    at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:221)

    at com.thortech.xl.webclient.actions.ConnectorInstallProcessAction.execute(ConnectorInstallProcessAction.java:108)

    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)

    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)

    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)

    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)

    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)

    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)

    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:76)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:107)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3730)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3696)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Caused by: javax.servlet.ServletException: javax.ejb.NoSuchEJBException: Bean has been removed.

    at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:913)

    at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)

    at com.thortech.xl.webclient.actions.ConnectorInstallProcessAction.execute(ConnectorInstallProcessAction.java:108)

    at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)

    at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)

    at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)

    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)

    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)

    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)

    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)

    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:76)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:107)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3730)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3696)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    The problem is now resolved. It was due to a CLASSPATH problem.

    Versions:

    ActiveDirectory - 11.1.1.6.0

    Exchange - 11.1.1.6.0

  • Persistence, shared between the EJB and WAR projects

    Hello

    I created an Enterprise Application in netbeans which an EJB project and archive web. This can be expanded further at a later date by the presence of a client application as well. I'm still pretty new to this so you don't have to forgive me if it is a simple problem. I have a persistence unit (persistence.xml) that I need to share between the two WAR and EJB, but so far, does not feel very lucky. I have read the various responses and they say I should have the EAR that is constructed in the following way:

    Project.ear
    =======
    META-INF/MANIFEST. MF
    lib/Persistence.jar
    -> META-INF
    -> META-INF/persistence.xml
    project - ejb.jar
    project - war.war

    When I try to compile, if I get the following messages among two EE modules:

    Note: The XML persistence [META-INF/persistence.xml] has not been found. NO GENERATION will occur! Please ensure that a persistence XML is available either from the directory CLASS_OUTPUT [META-INF/persistence.xml] or by using the eclipselink.persistencexml property to specify its location.

    I tried to copy the persistence.xml in the META-INF directory in the EAR file and defining the eclipselink.persistencexml=META-INF/persistence.xml, but it still shows the same thing. Is this a classpath problem or is something else wrong?

    Thank you very much

    The EAR is a good idea, but you put the META-INF/persistence.xml in your ejb module. The EJB is where you do all your (managed container) transactional stuff, so do call in your EJB since the WAR instead of trying to share a persistence between modules unit.

  • JpaCacheStore in CEP is read only

    Hello

    I'm getting married with consistency, CEP, OSGI, and EclipseLink.

    What I'm trying to do is to preload the cache consistency with entities JPA using EclipseLink. Then make the updates for them in the CEP engine.

    I already have required cable in the EPN for the coherence of cache system, however, any investment transaction on the NamedCache coming from these Spring beans only seem to be read-only. I read something the other son that it is a question not initialized properly, perhaps classpath problems support plan.

    I've already converted coherence - jpa.jar an OSGI bundle and packages imported in my package, but the problem persists. If there is a formal coherence OSGI bundle - jpa.jar, kindly lead me to it. Or am I missing something else?

    Please share me your thoughts.

    It's the exception btw...

    (Packed: execution of requests that have failed for the maintenance JpaDistributedCache member (Id = 1, Timestamp is 2010-12-20 14:28:38.689, address = 192.168.235.1:8088, MachineId = 33537, location = process: 5136, role = BeaWlevsServer)) java.lang.UnsupportedOperationException
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutRequest(PartitionedCache.CDB:57)
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ PutRequest.run (PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
    at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheKeyRequest.ExtendedKeyRequest.onReceived(ExtendedKeyRequest.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.UnsupportedOperationException
    in java.util.Collections$ UnmodifiableMap.put (Collections.java:1285)
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ Storage.postPut (PartitionedCache.CDB:66)
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ Storage.put (PartitionedCache.CDB:17)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutRequest(PartitionedCache.CDB:33)
    to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ PutRequest.run (PartitionedCache.CDB:1)
    at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:12)
    at com.tangosol.coherence.component.net.message.requestMessage.distributedCacheKeyRequest.ExtendedKeyRequest.onReceived(ExtendedKeyRequest.CDB:4)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:5)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:5)
    ... 2 more

    Kind regards
    Jarell

    Published by: Jarell December 19, 2010 22:38

    Its distributed as a patch through metalink. Go to support.oracle.com connection with your supportid and find the consistency.

  • How to compile java java code integrated into SOA 11 g

    Hello
    I can't compile the code java_embedded in the BPLE process. My java code is

    < bpelx:exec name = "Java_Embedding_1" version = "1.5" language = "java" >
    <! [CDATA [bpelx:exec import="org.w3c.dom.Element"/ <>
    < bpelx:exec import="org.w3c.dom.Node"/ >
    {

    System.out.println ("Hi Welcome");
    int index = 0;
    Key = ((Element) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:Key').getNodeValue();)
    Element operator = ((Element) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:QueryParameter/ns1:Operator').getNodeValue();)
    Element Value = ((Element) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:QueryParameter/ns1:Value').getNodeValue();)

    }] >
    < / bpelx:exec >

    And while compiling this java code, I get classpath problem. can any body help on this.

    [scac] D:\MiddlewareApplications\TestJava\TestjavaComposite\SCA-INF\bpel\testJavaEmbedded\src\orabpel\testjavaembedded\ExecLetBxExe2.Java:83: class, interface, or enum expected
    [scac] FATAL_ERROR: location {ns: composite / ns:component [@name = 'testJavaEmbedded']} (20.69): could not compile classes generated bpel.
    [scac] failure to compile the BPEL generated classes for process BPEL "testJavaEmbedded" composite "by default/TestjavaComposite! 1.0 ".
    [scac] The class path setting is incorrect.
    [scac] Make sure that the class path is set correctly. If this happens on the side server, verify that the custom classes or in pots according to the BPEL process are deployed correctly. Also, make sure that the run time uses the same version/version.
    [scac]

    BUILD FAILED
    C:\Oracle\Middleware\jdeveloper\bin\ant-SCA-compile.XML:264: Java returned: 1 check log file: D:\MiddlewareApplications\TestJava\TestjavaComposite\SCA-INF\classes\scac.log to find errors

    Total time: 50 seconds

    Kind regards
    Bharat



    int index = 0;

    try {}
    addAuditTrailEntry ("Hello Welcome");

    Object key = ((XMLElement) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:Key')).getNodeValue();)
    Object operator = ((XMLElement) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:QueryParameter/ns1:Operator')).getNodeValue();)
    Object Value = ((XMLElement) scheduling:getVariableData('inputVariable','payload','/ns1:Query/ns1:QueryStatement/ns1:QueryCriteria/ns1:QueryParameters/ns1:ParameterEntry/ns1:QueryParameter/ns1:Value')).getNodeValue();)
    } catch (Exception ex) {}
    addAuditTrailEntry ("Failed"),
    }

    ]]>

    Published by: harrylaou on February 8, 2010 05:23

  • Problem with ADF JDeveloper 12 c to Glassfish deployment

    Hello

    I'm new to JDeveloper/ADF, but not for the JSF, etc.. I'm trying to load a simple application of the ADF (a single entity object and object of a view in a model project and a jsf page where I dropped the view of the data control object). We use Glassfish so I'm trying to deploy it and am following blog Shay Shmeltzer (https://blogs.oracle.com/shay/entry/deploying_oracle_adf_applications_to), which deploys on a server Glassfish 3.1 JDeveloper 11. So I use the last JDeveloper, which can be a problem?

    The problem is that my deployment fails. Here are my entries server.log:


    [#: 2013 07-24 T 15: 43:14.908 - 0700 |] WARNING | glassfish3.1.2 | org.apache.catalina.connector.Request | _ThreadID = 88; _ThreadName = wire 2. PWC4011: cannot set the application context UTF-8 character encoding, because the request parameters have already been read, or ServletRequest.getReader () has already been called. #]

    [#: 2013 07-24 T 15: 43:15.014 - 0700 |] INFO | glassfish3.1.2 | org.GlassFish.admingui | _ThreadID = 88; _ThreadName = wire 2. deployment GUI: uploadToTempfile | #]

    [#| 2013-07-24T15:43:15.014-0700|INFO|glassfish3.1.2|org.glassfish.admingui|_ThreadID=88;_ThreadName=Thread-2;|uploadFileName=C:\JDeveloper\mywork\TestADF\deploy\TestADF_Glassfish.ear|#]

    [#: 2013 07-24 T 15: 43:15.278 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = com.sun.enterprise.v3.server.ApplicationLifecycle; MethodName = getContext. deployment expansion took 145 | #]

    [#: 2013 07-24 T 15: 43:16.630 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = org.glassfish.api.ActionReport; MethodName = failure; unrecognized for module C:\JavaEE\glassfish-3.1.2.2\glassfish\domains\domain1\applications\TestADF_Glassfish|# Module type]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. unrecognized for module C:\JavaEE\glassfish-3.1.2.2\glassfish\domains\domain1\applications\TestADF_Glassfish|# Module type]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] GOOD | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. ClassName = org.glassfish.api.ActionReport; MethodName = failure; Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.631 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = wire 2. Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.632 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.core.com.Sun.enterprise.v3.Server | _ThreadID = 98; _ThreadName = thread 2;: java.lang.NullPointerException
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:375)
    at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
    at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:389)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ 1.execute(CommandRunnerImpl.java:348)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:363)
    at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1085)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl.access$ 1200 (CommandRunnerImpl.java:95)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1291)
    to com.sun.enterprise.v3.admin.CommandRunnerImpl$ ExecutionContext.execute (CommandRunnerImpl.java:1259)
    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:214)
    at org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:207)
    at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    to com.sun.jersey.spi.container.JavaMethodInvokerFactory$ 1.invoke(JavaMethodInvokerFactory.java:60)
    to com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ ResponseOutInvoker._dispatch (AbstractResourceMethodDispatchProvider.java:205)
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer._service(GrizzlyContainer.java:182)
    at com.sun.jersey.server.impl.container.grizzly.GrizzlyContainer.service(GrizzlyContainer.java:147)
    at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:148)
    at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
    at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
    to com.sun.enterprise.v3.services.impl.ContainerMapper$ Hk2DispatcherCallable.call (ContainerMapper.java:354)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
    at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.doWork (AbstractThreadPool.java:532)
    to com.sun.grizzly.util.AbstractThreadPool$ Worker.run (AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:722)
    |#]

    [#: 2013 07-24 T 15: 43:16.636 - 0700 |] SEVERE | glassfish3.1.2 | javax.enterprise.System.Tools.admin.org.GlassFish.deployment.admin | _ThreadID = 98; _ThreadName = wire 2. Exception when deploying the application [TestADF_Glassfish] | #]

    [#: 2013 07-24 T 15: 43:16.662 - 0700 |] INFO | glassfish3.1.2 | org.GlassFish.admingui | _ThreadID = 88; _ThreadName = wire 2. Exception occurred: error occurred during deployment: Exception when deploying the application [TestADF_Glassfish]. Please see server.log for more details. | #]

    I don't see what about the NullPointerException.

    It is a server Glassfish 3.1.2.2. I get the same message that I have deploy JDeveloper or GlassFish (just try to download the .ear file). Blog of Shay, subsequently, I loaded jars adf-essentials in the zip file and changed the parameters of the JVM. In JDeveloper, I right click on the application and will deploy and click the deployment profile. I click on deploy to the application server and choose my local server to Glassfish.

    I appreciate all help. Thank you.

    Steve

    OK, my problem was my deployment descriptor. When I created a new Glassfish deployment descriptor, it did not automatically the ViewController project in the Application Assembly to the EAR application. So now, the Application Assembly for the EAR includes the deployment for ViewController project (the ViewController project has a dependency on the model project is also included).

    The application now deploys correctly on a Glassfish 3.1 server.

    Steve

  • Problems in using the APEX with glassfish server listener

    Hello
    I try to install APEX with listener application on my Oracle R12 application server. I installed glassfish 3.1 (zip file) and deployed my interlocutor on glassfish using the administration console
    http:// < Host >: 4848

    But I am not able to run the following links to get the status of the listener
    http:// < Host >: 8080/listenerStatus

    I get the following error when I try to connect using my user adminlistener who I defined under the Admin group, in accordance with the installation guide.
    HTTP status 403 - Access to the requested resource has been denied

    --------------------------------------------------------------------------------

    type of status report

    messageAccess to the requested resource has been denied

    descriptionAccess to the specified resource (access to the requested resource has been denied) was banned.


    --------------------------------------------------------------------------------
    Oracle GlassFish Server 3.1
    Also, when I try to start the administration console application using the link http:// < host >: 8080/apex
    I get the following error

    application = 4500 workspace = 10+.
    Error ERR - 1014 Application not found. +

    OK+


    Anyone know what could be the problem? Earlier, when I did the installtion even on my personal computer that runs on Windows OS I had faced some questions like this and was able to resolve by reinstalling glassfish with port 7878 place default 8080 HTTP and that solved the problem.

    But this time, I try to install on the Linux server and since I used the option of the glassfish server .zip file I don't have the option to configure during the installation. If you think that the problem is due to the conflict to port 8080, then can you please tell me how I can change the HTTP port without having to reinstall the glassfish Server?


    Thanks in advance!

    Hi reda,.

    http:// : 7878/apex/listenerStatus (I changed my HTTP port for 7878)

    But I have error which I run this URL below.

    HTTP status 403 - Access to the requested resource has been denied

    I'm sorry I have not answered your question 403, but I thought it should be a primary target in order to get your APEX installation up and running first.
    As you have moved this issue, it is logical to continue on other issues in your deployment.
    You say that you are trying to connect to listenerStatus as "adminlistener" with the group "Admin". You must use a user with the 'Manager' of the page group.
    However, if you have "Admin", you can access the 'status' tab in 'listenerAdmin' that contains exactly the information you see in 'listenerStatus '.

    Also, when I run the URL Listner Administrator page loads properly, but all fields are disabled. So I can only see the page, but not to make changes to the fields on tab 'connection '.

    You can change the JDBC settings in this tab? You must open the subform to display the fields.
    And you are able to change any settings on the other tabs?
    If so, everything works as expected. It is not possible to change the credentials of database using "listenerAdmin". The shape looks like the one you get in "listenerConfigure", but it is implemented differently, so what you see is the expected behavior.

    However, I can click on the 'Apply' button on this page and when I do that it takes me to the login user APEX screen. This is how it should be?

    Yes. What is this "Apply" button to reset the connection pool to use the current JDBC settings, which you should be able to edit as shown above. Therefore, when you apply the changed settings, the listenerAdmin will take you to the start APEX page to check that everything works (always) and continue to use APEX.

    -Udo

  • Problems with jfxrt.jar in the classpath

    I've manually created a pot which depends on jfx 2, but I have problems running. My jfx runtime is installed in D:\jfx.

    When I call
    java -cp d:\jfx\lib\jfxrt.jar;e.jar my.pkg.App
    everything works fine, but this isn't how the jars is usually performed. The regular
    java -cp d:\jfx\lib\jfxrt.jar -jar e.jar
    does not work
    Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
            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.access$000(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: javafx.application.Application
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 12 more
    Could not find the main class: my.pkg.App. Program will exit.
    The manifesto seems to be OK. Java is the main class but does not load because it extends the Application, which can not be found.

    This behavior is normal for Java or is it a problem (maybe a bug?) of javafx?

    Google for "java jar executable classpath site: bugs.sun.com.

    DB

Maybe you are looking for