Weblogic 12c on Mac OS X: Cannot build SAMLSSO sample

I'm trying to build the SAML sample which comes with WLS 12c (/Oracle/Middleware/wlserver_12.1/samples/server/examples/src/examples/security/samlsso). I'd like to create both a SAML 2.0 IdP and SP and test them before I attempt to integrate a 3rd party IdP with WLS as SP. I'm following the instructions found at /Oracle/Middleware/wlserver_12.1/samples/server/index.html which indicate I should do the following:
Create and configure the IdP domain: ant prepareIdentityProviderServer
Create and configure the SP domain: ant prepareServiceProviderServer
In both cases the domains are creates, the server starts and I see the configIDPServer (and configSPServer) being called. In the case of the IdP I see the following, correct, output:
configIDPServer:
[wlst]
[wlst] +++++ Properties passed to script +++++
[wlst]
[wlst] adminUser: weblogic
[wlst] adminPwd: welcome1
[wlst] adminURL: t3://localhost:7003
[wlst] preferredBinding: HTTP/POST
[wlst] ssoServerName: examplesServer
[wlst] entityID: http://localhost:7003/idpentityid
[wlst] publishedSiteURL: http://localhost:7003/saml2
[wlst] loginURL: http://localhost:7003/loginapp/loginapp.jsp
[wlst] ssoSigningKeyAlias: idpSSOSigningKeyAlias
[wlst] ssoSigningKeyPassPhrase: idpSSOSigningKeyPassPhrase
[wlst] sport: 7004
[wlst] customTrustKeyStoreFileName: /Users/dgrstl/Oracle/Middleware/wlserver_12.1/samples/server/examples/src/examples/security/samlsso/samlattr-cert/idpTrust.jks
[wlst] customTrustKeyStorePassPhrase: idpTrustKeyStorePassPhrase
[wlst] customIdentityKeyStoreFileName: /Users/dgrstl/Oracle/Middleware/wlserver_12.1/samples/server/examples/src/examples/security/samlsso/samlattr-cert/idpIdentity.jks
[wlst] customIdentityKeyStorePassPhrase: idpIdentityKeyStorePassPhrase
[wlst] serverPrivateKeyAlias: idpServerKeyAlias
[wlst] serverPrivateKeyPassPhrase: idpServerKeyPassPhrase
[wlst] replicatedCacheEnabled: false
[wlst] credentialMapperName: saml2cm
[wlst] KeyStoresName: CustomIdentityAndCustomTrust
[wlst]
[wlst] +++++ Properties passed to script +++++
[wlst]
[wlst] Connecting to t3://localhost:7003 with userid weblogic ...
At this point I should be able to connect to http://localhost:7003/console but cannot (I do see an active listening port open on 7003). After 4 minutes the WLST times out with the following error:
[wlst] WLST lost connection to the WebLogic Server that you were
[wlst] connected to, this may happen if the server was shutdown or
[wlst] partitioned. You will have to re-connect to the server once the
[wlst] server is available.
[wlst]
[wlst] WLST detected that the RuntimeMBeanServer is not enabled. This
[wlst] might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
[wlst] Please ensure that this MBeanServer is enabled. Online WLST cannot
[wlst] function without this MBeanServer.
[wlst] Disconnected from weblogic server: examplesServer
[wlst] Traceback (innermost last):
[wlst] File "/Users/dgrstl/Oracle/Middleware/wlserver_12.1/samples/server/examples/src/examples/security/samlsso/scripts/saml20cfg/IdP_configSite.py", line 50, in ?
[wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
[wlst] File "<iostream>", line 22, in connect
[wlst] File "/Users/dgrstl/Oracle/Middleware/wlserver_12.1/samples/server/examples/src/examples/security/samlsso/scripts/saml20cfg/IdP_configSite.py", line 50, in ?
[wlst] File "<iostream>", line 648, in raiseWLSTException
[wlst] File "<iostream>", line 22, in connect
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST." : No message was received for: '240' seconds
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst] File "<iostream>", line 648, in raiseWLSTException
[wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST." : No message was received for: '240' seconds
[wlst] Use dumpStack() to view the full stacktrace
[wlst]
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:146)
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:111)
[wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:30)
BUILD FAILED
Is this sample broken? Any ideas on what the problem could be? I should note that I can manually start the server from a new command shell, connect to the console, etc. so the domain seems fine except when started from WLST.

I was able to work around this by modifying the prepareServers.xml ant import. Specifically I did the following:
1. Setup the environment
2. ant prepareIdentityProviderServer
3. Server started, killed the script
4. Repeated 2-4 for the SP
5. Modified the prepareServerController target in prepareServers.xml by commenting out the ant-call target="stopServer" and target="createServer"
6. ant prepareIdentityProviderServer (which remarkably worked despite needing to stop and restart the server with the same startServer target)
7. ant prepareServiceProviderServer
Could this be a bug in the wlserver task? startServer looks like this (hangs when it has to create a domain, works fine when a domain already exists)
<target name="startServer">
<echo message="*****************************************" />
<echo message="Starting WLS......" />
<echo message="*****************************************" />
<property name="generateConfig" value="true" />
<property name="customNameMapperLib" value="" />
<property name="extra-server-verbose" value="" />
<property name="sleepHours" value="${spServerSleep}" />
<property name="wls-min-stack" value="512m" />
<property name="wls-max-stack" value="512m" />
<wlserver dir="${domainDir}" servername="${serverName}" host="${host}" port="${port}" generateConfig="${generateConfig}" username="${username}" password="${password}" action="start">
<jvmarg line="-ms${wls-min-stack} -mx${wls-max-stack} -XX:MaxPermSize=128m -DCommonSecurityEnabled=true ${extra-server-verbose}" />
<classpath>
<pathelement location="${wl.home}/server/lib/weblogic.jar"/>
<pathelement location="${customNameMapperLib}"/>
</classpath>
</wlserver>
<sleep hours="${sleepHours}" />
</target>

Similar Messages

  • Cannot build feeway sample in Sun Studio12

    I'm new to Sun Studio. My background is 22 years c/c++ non-unix development (embedded systems & Windows application development).
    I'm trying to write a GUI based c++ app for Solaris. I know this is a complete newbie question. Any help will be GREATLY appreciated.
    Here's my question/issue: I cannot seem to include <gtk.h>. I've installed every GTK/ GTKMM package I can find. Building/deploying any project that does not use GTK is fine. I cannot for the life of me figure out how to build a GTK app. Even the GtkFreeway example app for Sun Studio fails to compile at #include <gtk.h>.
    Thanks in advance,
    Mike
    MORE INFO:
    In Sun Studio 12, I load then select the sample C++ project Freeway_1.
    Then I select Tools->Options. Then the Code Assistance Tab. Then I click the C++ tab. Under Include Directories, I add /usr/include/gtk-2.0
    Now, in the project header named FreewayWindow.h, on line #46, it reads:
    #include <gtk/gtk.h>
    I shut down and restart Sun Studio just in case... ;-)
    I execute a clean build and immediately get the following error message:
    "FreewayWindow.h", line 46: Error: Could not open include file<gtk/gtk.h>.
    As a sanity check, I open a terminal window, switch to root, and issue a "find / -name gtk.h".
    find replies with "usr/include/gtk-2.0/gtk/gtk.h"
    Anyway, at this point I'm completely frigging frustrated. Did Microsoft have a hand in creating this dev tool? It sure seems so...
    I'd appreciate any suggestions.
    Thanks again,
    Mike

    Are you running on OpenSolaris? I ran into the same problem recently on OpenSolaris, and eventually determined that
    the problem is that there are Gnome and x11 packages that you need to make this run, and they're not
    installed in OpenSolaris by default. I was able to make the Freeway app build and run after I installed
    the following packages from the OpenSolaris package repository:
    SUNWgnome-common-devel
    SUNWxinc
    SUNWxorg-headers
    The first clue was a message about pkg-config not being found, which occurred before the error
    "FreewayWindow.h", line 46: Error: Could not open include file<gtk/gtk.h>.
    I looked for pkg-config in the repository and found it was in SUNWgnome-common-devel and installed that.
    With each package install, the build got a little further until it tripped on something else that
    was missing, and I searched for the missing filename in the repository to figure out what package
    it was in, and installed the pkg. Thankfully, only three iterations of this were required.
    Hope this helps. Perhaps with the next release of Sun Studio, the README for this sample app
    can tell you to make sure these packages are installed.

  • Java.lang.StackOverflowError Running BASIC JSF 2 example on Weblogic 12c

    *I followed the very basic tutorial found here  example and cannot seem to get past the following error:*
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at weblogic.servlet.internal.ServletResponseImpl.addHeader(ServletResponseImpl.java:567)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    at javax.servlet.http.HttpServletResponseWrapper.addHeader(HttpServletResponseWrapper.java:200)
    Pressing shift + F5 a couple times I can generate a slightly different stacktrace as follows:
    Error 500--Internal Server Error
    java.lang.StackOverflowError
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    at com.sun.faces.application.ViewHandlerResponseWrapper.setStatus(ViewHandlerResponseWrapper.java:88)
    at javax.servlet.http.HttpServletResponseWrapper.setStatus(HttpServletResponseWrapper.java:224)
    Here is my web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">
    <display-name>JavaServerFaces</display-name>
    <!-- JSF mapping -->
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Map these files with JSF -->
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    </web-app>
    Here is the pom.xml
    <project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
    http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.example</groupId>
    <artifactId>JavaServerFaces</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>JavaServerFaces Maven Webapp</name>
    <url>http://maven.apache.org</url>
    <dependencies>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.1.7</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>jstl</artifactId>
    <version>1.2</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.5</version>
    </dependency>
    <dependency>
    <groupId>javax.servlet.jsp</groupId>
    <artifactId>jsp-api</artifactId>
    <version>2.1</version>
    </dependency>
    </dependencies>
    <build>
    <finalName>JavaServerFaces</finalName>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.1</version>
    <configuration>
    <source>1.6</source>
    <target>1.6</target>
    </configuration>
    </plugin>
    </plugins>
    </build>
    </project>
    I have exhausted several hours searching the web and constructing new projects with no luck. I understand that the StackOverflowError is produced from bad recursion calls and infinite loops, however I can't see this as the case here.
    My current dev stack is eclipse juno (oepe-12.1.1.2.1-juno-distro-win32-x86_64.zip), m2e-wtp, weblogic 12c, Java EE 6 using JSF 2.1
    *If I export the war file using eclipse (Right click the project -> Export -> WAR file) then manually deploy it via the weblogic admin counsel the app works as expected. As soon as I add the project to the server inside eclipse and start the server I can no longer view the page. I noticed that in the autogenerated_ear_ folder per my domain that each project project folder is actually empty.*
    Any help would me MUCH appreciated!!
    UPDATE - Solved the problem! After adding JSF 2.1 in the pom.xml the JSF 2.1 checkbox was checked in project facets, however it did not add the faces-config.xml to the project. I simple created a new xml file named faces-config.xml under the webapp folder and added the following xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd" version="2.1">
    <application></application>
    </faces-config>
    I hope this helps others!
    Edited by: 1006228 on May 15, 2013 8:21 PM
    Edited by: 1006228 on May 16, 2013 6:39 PM

    Hi.
    Try this http://oracleradio.blogspot.com/2012/01/error-durante-el-deployment-de-un.html
    It is in spanish, but the important part is that u may correct the issue, installing 11.1.1.5 with the Feature Pack.
    It seems to be happening with processes that have loop formed with boundary event inside a gateway circuit.
    Hope this helps.
    best

  • Weblogic 12c not picking up persistence unit in WAR

    I'm trying to get an example CRUD application to run on WebLogic 12c (for the app see: http://henk53.wordpress.com/2012/04/15/jsf2-primefaces3-ejb3-jpa2-integration-project/)
    So far the applications runs on JBoss AS 7.1, GlassFish 3.1.2 and TomEE beta 2. In all those application servers persistence.xml is picked-up, and processed so I'm at a loss what's wrong with WebLogic. I'm using Eclipse 3.7.2 and the Oracle WebLogic 12C WTP server adapter for the deployment.
    I'm getting the following exception:
    java.lang.IllegalArgumentException: No persistence unit named 'entityManager' is available in scope jsf_ejb_jpa. Available persistence units: []
         at weblogic.persistence.ModulePersistenceUnitRegistry.getPersistenceUnit(ModulePersistenceUnitRegistry.java:130)
         at weblogic.persistence.BasePersistenceContextProxyImpl.<init>(BasePersistenceContextProxyImpl.java:40)
         at weblogic.persistence.TransactionalEntityManagerProxyImpl.<init>(TransactionalEntityManagerProxyImpl.java:31)
         at weblogic.persistence.EntityManagerInvocationHandlerFactory.createTransactionalEntityManagerInvocationHandler(EntityManagerInvocationHandlerFactory.java:20)
         at weblogic.persistence.PersistenceManagerObjectFactory.createPersistenceContextProxy(PersistenceManagerObjectFactory.java:66)
         at weblogic.persistence.PersistenceManagerObjectFactory.getObjectInstance(PersistenceManagerObjectFactory.java:31)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:251)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:406)
         at weblogic.j2eeclient.java.ClientReadOnlyContextWrapper.lookup(ClientReadOnlyContextWrapper.java:35)
         at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at javax.naming.InitialContext.doLookup(InitialContext.java:265)
         at com.oracle.pitchfork.inject.Jsr250Metadata.jndiLookup(Jsr250Metadata.java:307)
         at com.oracle.pitchfork.inject.Jsr250Metadata.resolveByName(Jsr250Metadata.java:303)
         at com.oracle.pitchfork.inject.Jsr250Metadata.resolve(Jsr250Metadata.java:266)
         at com.oracle.pitchfork.inject.Jsr250Metadata.applyInjections(Jsr250Metadata.java:228)
         at com.oracle.pitchfork.inject.Jsr250Metadata.inject(Jsr250Metadata.java:219)
         at com.oracle.pitchfork.spi.BaseComponentBrokerImpl.getBean(BaseComponentBrokerImpl.java:63)
         at com.oracle.pitchfork.spi.EjbComponentCreatorBrokerImpl.getBean(EjbComponentCreatorBrokerImpl.java:33)
         at weblogic.ejb.container.injection.EjbComponentCreatorImpl.getBean(EjbComponentCreatorImpl.java:76)
         at weblogic.ejb.container.manager.BaseEJBManager.createNewBeanInstance(BaseEJBManager.java:209)
         at weblogic.ejb.container.manager.BaseEJBManager.allocateBean(BaseEJBManager.java:235)
         at weblogic.ejb.container.manager.StatelessManager.createBean(StatelessManager.java:293)
         at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:185)
         at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:114)
         at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:174)
         at weblogic.ejb.container.internal.BaseLocalObject.getBeanInstance(BaseLocalObject.java:146)
         at weblogic.ejb.container.internal.BaseLocalObject.preInvoke(BaseLocalObject.java:103)
         at weblogic.ejb.container.internal.BaseLocalObject.__WL_preInvoke(BaseLocalObject.java:67)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:20)
         at com.example.dao.jpa.JpaUserDAO_wrkew_UserDAOImpl.add(Unknown Source)
         at com.example.backing.IndexBacking.addUser(IndexBacking.java:38)
    Notice that "entityManager" is the name of the instance variable in which injection is being performed:
    @PersistenceContext(name="example")
    private EntityManager entityManager;
    If I rename this variable to "em: as follows:
    @PersistenceContext(name="example")
    private EntityManager em;
    Then, lo and behold, the exception changes into:
    java.lang.IllegalArgumentException: No persistence unit named 'em' is available in scope jsf_ejb_jpa. Available persistence units: []
    As the example uses a data-source defined in web.xml, which is only marginally supported in most application servers, I tried to define a WebLogic specific application scoped data-source instead and let the persistence unit use that. I couldn't find a way to do this in a .war (is this even possible?), so I created an .ear archive instead. When deploying the EAR, the data-source is clearly being created, but I'm getting the same exception again.
    I finally created an EJB module with a persistence.xml and a simple Singleton that's injected with the entityManager, and added that to the EAR. This works for the EJB module, but in the web module injection of the other entity manager still fails.
    Any idea what might be the problem?

    After some more fiddling, I discovered it's not WebLogic itself that's at fault here, but most likely Oracle's WTP adapter. Apparently it doesn't include persistence.xml in the archive that gets deployed. When I export the project as an .ear archive and copy this to WebLogic's autodeploy directly, things do work.
    I tried to find out what the main difference was between the deployments, but I could not find where the Oracle WTP adapter creates the deployment. I tried to test where a resource inside the EAR resides on the filesystem via the following code inside a backing bean:
    URL url = Thread.currentThread().getContextClassLoader().getResource("com/example/backing");
    It looks like there isn't a real .war or .ear being created and deployed, but there's a link back to the workspace, as the URL resolves to:
    file:/Users/henk/eclipse37ee/workspace/jsf_ejb_jpa/build/classes/com/example/backing/
    If I execute the same code for the ear in the autodeploy folder, the URL resolves to some jar inside:
    /Users/henk/eclipse37ee/wls1211_dev/mydomain/servers/myserver/tmp/_WL_user/_appsdir_jsf_ejb_jpa_ear_ear/2jzks6/war/WEB-INF/lib/
    In case of the WTP 'deployment' linking back to the Eclipse workspace, META-INF/persistence.xml is actually there too, but for some reason Weblogic can't find it there?
    Edited by: Henk on Apr 29, 2012 2:57 PM

  • Infinispan 4.2.1 on Weblogic 12c

    Hello,
    My web application tries to instantiate a DefaultCacheManager using an infinispan-config.xml.
    When I deploy the application on Weblogic 12c, I am seeing the following exception:
    Caused By: java.io.IOException:
    Exception Description: Duplicate Property named [properties] found on class [org.infinispan.config.GlobalConfiguration$GlobalJmxStatisticsType]
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:264)
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:282)
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:136)
    at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:243)
    at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:229)
    Further down the stack trace, I see the following:
    Caused By: javax.xml.bind.JAXBException:
    Exception Description: Duplicate Property named [properties] found on class [org.infinispan.config.GlobalConfiguration$GlobalJmxStatisticsType]
    - with linked exception:
    [Exception [EclipseLink-50072] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.JAXBException
    Exception Description: Duplicate Property named [properties] found on class [org.infinispan.config.GlobalConfiguration$GlobalJmxStatisticsType]]
    at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:832)
    at org.eclipse.persistence.jaxb.JAXBContext.<init>(JAXBContext.java:143)
    at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:142)
    at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:129)
    at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:93)
    at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:83)
    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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:263)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:250)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:447)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599)
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:221)
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:282)
    at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:136)
    at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:243)
    at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:229)
    I am NOT using EclipseLink or any other JPA provider in my web application. Neither am I using JAXB. I am assuming that the EclipseLink JAXB provider is being provided by WebLogic. I looked at the decompiled class GlobalConfiguration$GlobalStatisticsType and saw the "properties" property occuring only once.
    This worked well on JBoss 5.
    I tried looking for any articles or blogs for Infinispan deployment on WebLogic and couldn't find any.
    Does anybody have any suggestions for me?
    Thanks.

    It was the JAXB implementation that was the problem.
    EclipseLink Moxy 2.3.2 is the JAXB provider in WebLogic 12c.
    Eclipse has fixed a bug in this area https://bugs.eclipse.org/bugs/show_bug.cgi?id=376509
    The fix in the nightly build for Moxy 2.3.3.
    Not sure what the procedure is for applying EclipseLink patches to WLS.
    In the meantime, upgrading to Infinispan 5.1.3 as suggested in its forums. This solves the problem.

  • Creating a windows Service for Weblogic 12c Domain hosting Apex 2.2 listener

    Hi Guys,
    Does anyone have experience of Weblogic 12c under windows?
    I have some difficulties to create a windows service for a domain.
    Here is the script to create the service:
    echo off
    SETLOCAL
    set DOMAIN_NAME=PMU
    set USERDOMAIN_HOME=C:\Oracle\Middleware\user_projects\domains\PMU
    set SERVER_NAME=LICORNE2012
    set WL_HOME=C:\Oracle\Middleware\wlserver_12.1
    set PRODUCTION_MODE=true
    set JAVA_OPTIONS=-Dweblogic.Name=LICORNE2012
    set WLS_USER=weblogic
    set WLS_PW=password
    set ADMIN_URL=http://LICORNE2012:7001
    set MEM_ARGS=-Xms256m –Xmx256m
    call "C:\Oracle\Middleware\wlserver_12.1\server\bin\installSvc.cmd"
    ENDLOCAL
    The service is created and when I start the service, it start then stop few second after.
    Here is the error I am getting.
    [Tue Jun 25 23:36:01 2013] [I] [initLog] initializing logger
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'ROTATION_TYPE' header found. 'TIME' based rotation will be used by default.
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_START_DATE' header found or value is invalid. Rotation will take place every 24 hours beginning today at 23:59:59
    [Tue Jun 25 23:36:01 2013] [E] [initLog] No 'TIME_INTERVAL_MINS' header found. Using the default value of 24 hours.
    [Tue Jun 25 23:36:01 2013] [I] [initLog] TIME based log rotation is ON
    [Tue Jun 25 23:36:01 2013] [I] [trigger] First rotation due in 1438 secs
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] console allocation successful. THREAD_DUMP redirection enabled
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] About to execute CreateThread()
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszCmdLine = -client -Xms32m -Xmx200m -XX:PermSize=128m -XX:MaxPermSize=256m -XX:+UseSpinning -Dweblogic.Name=LICORNE2012 -Xverify:none -Djava.endorsed.dirs=C:\Oracle\MIDDLE~1\JDK160~1/jre/lib/endorsed;C:\Oracle\MIDDLE~1\WLSERV~1.1/endorsed -classpath "C:\Oracle\MIDDLE~1\patch_wls1211\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_oepe101\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_12.1.1.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;" -Dweblogic.Name=LICORNE2012 -Dweblogic.management.username=weblogic -Dweblogic.management.server="http://LICORNE2012:7001" -Dweblogic.ProductionModeEnabled= -Djava.security.policy="C:\Oracle\MIDDLE~1\WLSERV~1.1\server\lib\weblogic.policy" weblogic.Server
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszJavaHome = C:\Oracle\MIDDLE~1\JDK160~1
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszExecDir = C:\Oracle\Middleware\user_projects\domains\PMU
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszOldPath = C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszNewPath = C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\Oracle\MIDDLE~1\WLSERV~1.1\server\native\win\32\oci920_8;C:\app\oracle\product\11.2.0.3\jko\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszDelay = 0
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszStopClass = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszLog = [c:\temp\web.log]
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Thread created successfully
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_START_PENDING with delay=0
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszHost = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] lpszPort = []
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] Reporting SCM of SERVICE_RUNNING
    [Tue Jun 25 23:36:01 2013] [I] [ServiceStart] waiting for multiple events
    [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Parsing JVM Arguments
    [Tue Jun 25 23:36:01 2013] [I] [StartJVM] Initializing JVM
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Loading class - weblogic.Server
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Locating method "public static void main([]String)" in main class
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Building arguments for main class
    [Tue Jun 25 23:36:01 2013] [I] [RunJavaApp] Invoking main class
    <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <25 juin 2013 23 h 36 CEST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <25 juin 2013 23 h 36 CEST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc..>
    <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 13340309 Thu Feb 16 18:30:21 IST 2012
    WebLogic Server Temporary Patch for 13019800 Mon Jan 16 16:53:54 IST 2012
    WebLogic Server Temporary Patch for BUG13391585 Thu Feb 02 10:18:36 IST 2012
    WebLogic Server Temporary Patch for 13516712 Mon Jan 30 15:09:33 IST 2012
    WebLogic Server Temporary Patch for BUG13641115 Tue Jan 31 11:19:13 IST 2012
    WebLogic Server Temporary Patch for BUG13603813 Wed Feb 15 19:34:13 IST 2012
    WebLogic Server Temporary Patch for 13424251 Mon Jan 30 14:32:34 IST 2012
    WebLogic Server Temporary Patch for 13361720 Mon Jan 30 15:24:05 IST 2012
    WebLogic Server Temporary Patch for BUG13421471 Wed Feb 01 11:24:18 IST 2012
    WebLogic Server Temporary Patch for BUG13657792 Thu Feb 23 12:57:33 IST 2012
    WebLogic Server 12.1.1.0  Wed Dec 7 08:40:57 PST 2011 1445491 >
    <25 juin 2013 23 h 36 CEST> <Info> <Management> <BEA-141223> <The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.>
    <25 juin 2013 23 h 36 CEST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: [Management:141223]The server name LICORNE2012 specified with -Dweblogic.Name does not exist. The configuration includes the following servers {AdminServer}.
        at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:149)
        at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:41)
        at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
        at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
        at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:883)
        at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:570)
        at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:469)
        at weblogic.Server.main(Server.java:74)
    >
    <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>
    <25 juin 2013 23 h 36 CEST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>
    <25 juin 2013 23 h 36 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
    [Tue Jun 25 23:36:11 2013] [I] [ExitHandler] Fire (-1)
    [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] done waiting for multiple events. Wait=0
    [Tue Jun 25 23:36:11 2013] [I] [ServiceStart] Informing SCM about SERVICE_STOP
    Thanks for your help
    jko

    - not sure about your script, but obviously it doesn't detect the name of your managed server LICORNE2012 since there seems to be an admin server only in that domain.
    - alternatively you might try the approach posted by the AMIS guys
    Weblogic Admin and Managed servers as a Windows service
    - btw: having your domain under user_projects is not best practice (but not the problem here).
    good luck!

  • Weblogic 12c exam

    Does any one know answers for the below questions ??
    Question 1: Which four of the following NOT included in Weblogic lighter version (WLS Zip Distribution for only development)
    A. JVM
    B. Webserver plug-in
    C. Samples
    D. Smart update
    E. Deployment plan
    Question 2: A WebLogic team is developing an enterprise application from their desktop WebLogic environment. All development systems are connected to the same eight data sources for testing. As a WebLogic Administrator supporting this team, which two actions should you perform to free the developers from creating and configuring all the data sources on their desktop WebLogic environment?
    A. Provide the team with a WebLogic domain template with the testing data sources configured.
    B. Provide the development team with a preconfigured domain archive file.
    C. Provide the development team with the [datasource] -jdbc.xml file to overwrite their local copy.
    D. Create the data sources on behalf each of the developer.
    E. Provide the development team with WLST scripts to create and configure the testing data sources.
    Question 3: What are the three steps you should take to tune a JDBC Connection pool in WebLogic from the initial settings in a production environment?
    A. Ensure the maximum size is increased to an appropriate setting.
    B. Set the minimum and maximum size of the connection pool to the same value.
    C. Increase the statement cache size.
    D. Add more heap to the JVM.
    E. Add more nodes to the cluster.
    Question 4: A customer needs to ensure that the number of threads servicing an application does not exceed the number of database connections available to the application. What step must you take to address this situation?
    A. Configure a Max Threads Constraint and add your application to the list of applications for the Constraint.
    B. Configure a Work Manager with a Maximum Threads Constraint tied to the Connection Pool and configuration your application to use the Work Manager.
    C. Configure a Work Manager with a Minimum Threads Constraint tied to the Connection Pool and configure your application to use the Work Manager.
    D. Configure a global MaxThreads constraint and target it to the server or clusters where your application is deployed.
    E. Configure the startup parameter "-Dwls-maxThreads" to be the same as the number of database connections configured.
    Question 5: In a Java EE messaging application, one MDB is consuming a lot of memory at high traffic. What configuration should you use to prevent possible out-of-memory error at high traffic and at the same time not losing messages?
    A. Configure a Work Manager for the MDB with a Maximum Thread Constraint.
    B. Configure a Work Manager for the MDB with a Minimum Thread Constraint.
    C. Configure a Work Manager for the MDB with a Maximum Thread Constraint and a Capacity Constraint.
    D. Configure a Work Manager for the MDB with a Minimum Thread Constraint and a Capacity Constraint.
    E. Configure a Work Manager for the MDB with both a Maximum Thread Constraint and Minimum Thread Constraint.
    Question 6: An airline is building a booking system for its premium and general customers. The goal is to ensure premium members are given higher access priority when user traffic is high.
    What configuration will achieve this goal?
    A. Configure a Work Manager for premium users with a Minimum Thread Constraint.
    B. Configure a Work Manager for premium users with a higher fair-share-request-class.
    C. Configure a Work Manager for premium users with a higher response-time-request-class.
    D. Configure a Work Manager general users with a Maximum Thread Constraint.
    E. Configure a Work Manager for premium users with a custom request-class.
    Question 7: Which WebLogic optimization allows one non-XA resource to participate in a distributed transaction?
    A. enabling Pinned to Thread
    B. enabling Logging Last Resource
    C. increasing the Statement cache size
    D. setting the statement cache type to LRU
    E. setting the initial and maximum capacity to the same number
    Question 8: You deploy two different applications to the WebLogic container. One application use Xerces parser version A and the other application uses Xerces parser version B. Both these versions are different from the parser version that the WebLogic server uses internally. You want to use the Filtering Classloader feature to solve this problem. What action would you take to generate proper filtering Classloader entries?
    A. Modify the applications to use the same version that WebLogic uses internally.
    B. Based on available examples of Filtering Classloader entries, try to modify get the proper entries.
    C. Deploy and use the Classloader Analyzing Tool to resolve all conflicts with conflicting libraries. This tool will generate all proper entries.
    D. Split the application into separate WebLogic containers and use different WLS versions of Xerces but identical that applications require.
    E. Look for a WebLogic release that uses the same version of Xerces that the applications use.
    Question 9: Identify the two options that can be used to patch WebLogic Server without Incurring application downtime.
    A. automated process using the Admin Server
    B. automated using JDeveloper
    C. manual process with or without Smart Update
    D. scripted with WLST
    E. automated process using Enterprise Manager 12c
    Question 10: WebLogic 12c, the Maven plug-in has been enhanced with which Maven goal?
    A. wls:unzip, wls:install-domain, wls:start-domain, wls:wlst, wls:appc
    B. wls:install, wls:install-domain, wls:start-domain, wls:wlst, wls:appc
    C. wls:unzip, wls:create-domain, wls:start-domain, wls:wlst, wls:appc
    D. wls:install, wls:create-domain, wls:start-server, wls:wlst, wls:appc:

    Hello user7776, I am also looking for answers to the above Questions. Can you please send me the correct answers if you got the answers already? I really appreciate your response. Thank you sir.
    -VCS

  • Weblogic 12c cluster and EJB 3.1 timers

    Hello!
    I'm using Weblogic 12c (12.1.1.0) Cluster.
    I configured the cluster to use database for EJB timers (ACTIVE and WEBLOGIC_TIMERS tables). I created a persistence store with logical name 'timerst'.
    The timer bean:
    @Stateless
    public class TimerTestBean {
         private Logger logger = Logger.getLogger(TimerTestBean.class);
         @Resource
         TimerService timerService;
         public void settimer() {
              logger.info("settimer");
              timerService.createTimer(30000, "New timer");
         @Timeout
         public void zszszszs(Timer arg0) {
              logger.info("Tick");
              settimer();
    weblogic-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-ejb-jar xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.3/weblogic-ejb-jar.xsd">
    <!--weblogic-version:12.1.1-->
    <wls:weblogic-enterprise-bean>
    <wls:ejb-name>TimerTestBean</wls:ejb-name>
    <wls:stateless-session-descriptor>
    <wls:timer-descriptor>
    <wls:persistent-store-logical-name>timerst</wls:persistent-store-logical-name>
    </wls:timer-descriptor>
    </wls:stateless-session-descriptor>
    </wls:weblogic-enterprise-bean>
    <wls:timer-implementation>Clustered</wls:timer-implementation>
    </wls:weblogic-ejb-jar>
    It seems the timer starts normally.
    When there timer fires, I've got the following error message:
    java.lang.ClassCastException: timertest.TimerTestBean_9kqf6o_Impl cannot be cast to javax.ejb.TimedObject
    What is wrong?
    Thanks
    Balazs
    Edited by: 892403 on 2013.02.19. 10:43
    Edited by: 892403 on 2013.02.19. 10:44

    Issues have been found with @Schedule and @Timeout annotations in WLS clustered timer implementation.
    The problem is fixed with 12.1.2 WLS version. Patch exists for 12.1.1.0 version.
    Please download and apply Patch 13417115 from Oracle Support Portal.
    Thanks,
    Vijaya

  • WebLogic 12c and OSGi bundles ClassCastException error

    When I deploy an OSGi bundle to WebLogic 12c there are no errors. However, when I try and access my application I get the following error:
    java.lang.ClassCastException: com.sun.faces.taglib.jsf_core.ViewTag cannot be cast to javax.servlet.jsp.tagext.Tag
    I suspect that WebLogic 12c is loading different versions of the JSF than what I have in my OSGi bundle but I am unable to confirm (I tried to deploy the wls-cat tool but I continue to get 503 errors even after a server restart).
    My bundle currently uses JSF 1.1. After reading various forum posts, I have done the following but have not had any success:
    1. Followed the steps in Re: jsf 1.2 on weblogic 12c (i.e. deploying the jsf-1.2.war, modified my weblogic.xml accordingly in my war and then deployed, etc)
    2. Checked all of my manifest entries (which were correct) and even tried to set the required-bundles to my own JSF in the WEB-INF/lib directories
    Are there any instructions/settings for having OSGi bundles work within WebLogic 12c? Note that my OSGi bundle works correctly in WebLogic 11.
    Side question..I read that even though WebLogic 12c ships JSF 1.2 for backwards compatibility, it is deprecated for this release (as per http://docs.oracle.com/cd/E24329_01/web.1211/e21049/configurejsfandjtsl.htm#i163099). Does that mean that even if I get my bundle deployed/working that if there are other errors/issues in the future then I would not be supported? I am just trying to confirm so that I can make a decision about upgrading my JSF.
    Thanks :)

    gday -
    WLS 12c (12.1.1) doesn't recognize OSGi bundles -- if you have a library you wish to use with your web application, then it needs to conform the packaging requirements for the Java EE deployment model you are using.
    If you are getting conflicts with a WLS supplied library (JSF in this case it appears) then you need to specify a filtering classloader definition in a weblogic deployment descriptor so that the web/app classloader is instructed to ignore a specified set of packages/resources from the parent loaders and load them locally.
    By way of an example, assume you have a web application in which you are bundling JSF 1.2 and you want to use this in place of the JSF 2.1 API/impl that is provided by WLS 12.1.1. In that case, you'd create a WEB-INF/weblogic.xml file and provide the following settings within in.
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
            <container-descriptor>
                        <prefer-application-packages>
                            <package-name>javax.faces.*</package-name>
                            <package-name>com.sun.faces.*</package-name>
                            <package-name>com.bea.faces.*</package-name>
                        </prefer-application-packages>
                        <prefer-application-resources>
                            <resource-name>javax.faces.*</resource-name>
                            <resource-name>com.sun.faces.*</resource-name>
                            <resource-name>com.bea.faces.*</resource-name>
                            <resource-name>META-INF/services/javax.servlet.ServletContainerInitializer</resource-name>
                        </prefer-application-resources>
            </container-descriptor>
    </weblogic-web-app>Deploying that with your application, in which you have supplied the JSF 1.2 API and implementation jars in the standard WEB-INF/lib directory will direct WLS to use those locally supplied libraries instead of its JSF API/implementation.
    Hope that helps.
    -steve-

  • Cannot build a flow graph with the customized options

    Dear JMF-Gurus,
    we implemented a DataSource for video capturing that is based on the lti-civil API, so that video capturing on Mac OS X should be possible.
    When we try to build the flow graph, we get an jmf-error as described in the following log:
    # JMF Version 2.1.1e
    ## Platform: Mac OS X, ppc, 10.4.9
    ## Java VM: Apple Computer, Inc., 1.5.0_06
    ## DataSource created: net.sf.fmj.media.protocol.civil.DataSource@a76306
    $$ Profile: instantiation: 30 ms
    ## Processor created: com.sun.media.processor.unknown.Handler@21ec03
    ## using DataSource: net.sf.fmj.media.protocol.civil.DataSource@a76306
    $$ Profile: parsing: 377 ms
    ## Getting the supported output formats for:
    ## RGB, 176x144, FrameRate=10.0, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528
    ## # of nodes visited: 50
    ## # of formats supported: 38
    $$ Profile: getSupportedOutputFormats: 340 ms
    ## Building flow graph for: civil:?
    ## Building Track: 0
    ## Input: RGB, 176x144, FrameRate=10.0, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528
    ## Custom options specified.
    ## An output format is specified: YUV Video Format: Size = null MaxDataLength = -1 DataType = class [B yuvType = 2 StrideY = -1 StrideUV = -1 OffsetY = -1 OffsetU = -1 OffsetV = -1
    ## An output content type is specified: RAW
    ## Here's the completed flow graph:
          com.sun.media.parser.RawBufferParser@a075e6
             connects to: com.sun.media.codec.video.colorspace.JavaRGBToYUV@9c61d3
             format: RGB, 176x144, FrameRate=10.0, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=528
          com.sun.media.codec.video.colorspace.JavaRGBToYUV@9c61d3
             connects to: com.sun.media.multiplexer.RawBufferMux@da7565
             format: YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 38016 DataType = class [B yuvType = 2 StrideY = 176 StrideUV = 88 OffsetY = 0 OffsetU = 25344 OffsetV = 31680
    $$ Profile: graph building: 113 ms
    $$ Profile: realize, post graph building: 9 ms
    $$ Profile: instantiation: 0 ms
    ## Processor created: com.sun.media.processor.unknown.Handler@654dec
    ##   using DataSource: VIC.MonitorCDS@e0c0b6
    $$ Profile: parsing: 1 ms
    ## Getting the supported output formats for:
    ##   YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 38016 DataType = class [B yuvType = 2 StrideY = 176 StrideUV = 88 OffsetY = 0 OffsetU = 25344 OffsetV = 31680
    ##   # of nodes visited: 48
    ##   # of formats supported: 37
    $$ Profile: getSupportedOutputFormats: 97 ms
    ## Building flow graph for: null
    ## Building Track: 0
    ## Input: YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 38016 DataType = class [B yuvType = 2 StrideY = 176 StrideUV = 88 OffsetY = 0 OffsetU = 25344 OffsetV = 31680
    ## Custom options specified.
    ## An output format is specified: H263P/RTP, 176x144, FrameRate=10.0
    ## An output content type is specified: RAW/RTP
    XX Failed to realize: com.sun.media.ProcessEngine@8393ef
    XX   Cannot build a flow graph with the customized options:
    XX     Unable to transcode format: YUV Video Format: Size = java.awt.Dimension[width=176,height=144] MaxDataLength = 38016 DataType = class [B yuvType = 2 StrideY = 176 StrideUV = 88 OffsetY = 0 OffsetU = 25344 OffsetV = 31680
    XX       to: H263P/RTP, 176x144, FrameRate=10.0
    XX       outputting to: RAW/RTP
    XX Error: Unable to realize com.sun.media.ProcessEngine@8393ef
    ## com.sun.media.BasicFilterModule@31477b: input format changed: RGB, 640x480, 24-bit, Masks=3:2:1, PixelStride=3, LineStride=1920
    We guess that the problem was first the wrong input format (wrong video-size or wrong framerate) but this has been changed to the correct format.
    The flow graph looks like correct, but it doesn't work anyway. 
    What does the last line in the log means, and are there any information were the problem good be located?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How were you even able to accomplish that? In my classpath I have fmj-nojmf.jar, jmf.jar and lti-civil.jar but I keep on getting this in my log.
    # JMF Version 2.1.1e
    ## Platform: Mac OS X, i386, 10.5.4
    ## Java VM: Apple Inc., 1.5.0_13
    ## DataSource created: com.sun.media.protocol.javasound.DataSource@f98d58
    I can't get it to find the civil datasource in fmj-nojmf.jar.

  • Deployment is failing in WebLogic 12c

    Hi ,
    I am using Jdeveloper 12.1.2(on windows system) and WebLogic 12.1.2 (server is on linux host as a external stand alone server). But while deploying i am getting below error can any one suggest me please.
    [12:54:23 PM] ----  Deployment started.  ----
    [12:54:23 PM] Target platform is  (Weblogic 12.x).
    [12:54:39 PM] Retrieving existing application information
    [12:54:40 PM] Running dependency analysis...
    [12:54:40 PM] Building...
    [12:54:46 PM] Deploying 2 profiles...
    [12:54:47 PM] Wrote Web Application Module to C:\JDeveloper\mywork\enabledisable-128475\enableDisable\ViewController\deploy\EnableDisable_Raghbasa.war
    [12:54:47 PM] Wrote Enterprise Application Module to C:\JDeveloper\mywork\enabledisable-128475\enableDisable\deploy\enabledisable_raghbasa_remote.ear
    [12:54:49 PM] Deploying Application...
    [12:55:17 PM] [Deployer:149193]Operation "deploy" on application "enabledisable_raghbasa_remote" has failed on "AdminServer".
    [12:55:17 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application enabledisable_raghbasa_remote on AdminServer.: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, Implementation-Version: 11.1.1.1.0, exact-match: false].
    [12:55:19 PM] weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, Implementation-Version: 11.1.1.1.0, exact-match: false]
    [12:55:20 PM] Deployment cancelled.
    [12:55:20 PM] ----  Deployment incomplete  ----.
    [12:55:20 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    Thanks
    Raghav

    Thanks for reply yes i installed runtime by following the below link . please correct me any missing steps or to follow any other configuration ?
    http://www.oracle-base.com/articles/12c/weblogic-12c-adf-application-development-runtime-installation-on-oracle-linux.php
    This is only first step, you will need to follow other steps:
    ORACLE-BASE - WebLogic Server 12cR2 : ADF Application Development Runtime - Repository Configuration Utility (RCU)
    ORACLE-BASE - WebLogic Server 12cR2 : Create, Extend and Remove Domains
    But instead of this, you can read official documentation:
    Oracle&amp;reg; Fusion Middleware Installing and Configuring the Oracle Fusion Middleware Infrastructure 12c (12.1.2) - …
    Dario

  • Local EJBs in Weblogic 12c

    Hi - We are in the process of migrating our applications from Weblogic 10.3 to 12c. Due to legacy nature of the application, it's still using EJB 2.x
    Can somebody please let us know if Weblogic 12c fully supports EJB 2.x APIs and specifications. We are having some local EJBs in the code too. Would there be any potential issues migrating any local/remote EJBs or is it supposed to work out of the box?
    Note: We have already gone through the article http://docs.oracle.com/cd/E24329_01/web.1211/e24446/compatibility.htm#INTRO112 and have modified our EJBs to use EJBGen annotations. We have also run our EJBs through 12c appc and it does not report any such errors.
    Thanks!

    I guess the local JNDI name will be visible only when you look up from the
    same .ear scoped applications. It will not be visible in the global JNDI
    tree (applications outside of the .ear cannot access the bean as it is
    local).
    I am not sure what you refer by testing via console. If you want to access
    the bean from a different application (another .jar or .war which is not
    part of a .ear), then you should use remote views instead of local views.
    --Sathish
    <Santiago Abadia> wrote in message news:[email protected]..
    Hi.
    There isn't any error message in the server log. It says that deployment
    is sucessful.
    The message that appears when I try to test the EJB in the console is:
    "There was a problem determining the JNDI Name of the given bean."
    Thanks

  • Weblogic 12c exam2

    Hi all, Does exactly know the answer to the following question.? Thanks
    Q. A customer has a development environment that uses the auto-deployment feature. The customer
    claims the application is not redeployed even if the new version is copied to an application
    subdirectory. Which two parameters of the configuration should you check?
    A. Checkif archive file in the compressed version has a new REDEPLOYfile.
    B. If serverwas started in the Development Mode. Auto-deploymentisnot supported in production
    mode.
    C. If the application includes anEJB 3module. Auto-deployment is not supported forEJBs.
    D. You changeJVM from HotSpot to JRockit. Auto-deployment is not supportedin HotSpot auto
    deployment.
    E. If the domain is a single-server domain. Auto-deployment is not supported in
    multiserverdomains.
    Q. A customer has a critical, performance-sensitive web application that connects to a multimode
    Oracle RAC database. Which feature of WebLogic can provide signification benefit?
    A. The Web Session Affinity feature of Active GridLink for RAC.
    B. WebLogic Clustering
    C. The Transaction Affinity feature of Active GridLink for RAC
    D. Coherence*Web Session Replication
    Q. What is the architectural benefit of keeping WebLogic Server transaction log in the database?
    A. Oracle does not allow replicating files between data centers, so keeping transaction log in
    database allows for replication.
    B. Many transactions in WebLogic are database centric, so keeping log in database makes Two
    Phase Commit protocol possible.
    C. It obviates the need to keep in sync two replication technologies (file and database) between
    data centers. The single replication technology is used for frequently changing data.
    D. Transaction log in a file system is extremely slow so it cannot beefficiently replicated.
    Q. Which two options best describe how the Maven Plugin for WebLogic enables WebLogic to be
    effectively used in a Continuous Integration environment?
    A. execution of unit and integration tests
    B. management of the life cycle of a WebLogic domain including creation, configuration, and
    server life-cycle management
    C. deployment and undeployment of applications
    D. Java profiling
    Q. A customer needs to analyze an application that was developed for Oracle Application Server
    10gR2 or 10gR3 (OC4J) in order to prepare to upgrade the infrastructure to WebLogic 12c.
    customer wants understand the changes required to be made to the application and how to
    configure WebLogic in to support the newly upgraded application.
    Which three actions would you recommend for upgrading the customer's application and server
    configuration?
    A. Use Oracle Upgrade Managerto create a new WebLogicdomain template from an
    OAS/OC4Jinstallation and redeploy the application.
    B. Use SmartUpgrade to analyze the OAS/OC4Jserver configuration and create
    WebLogicconfiguration files.
    C. Use SmartUpgrade to analyze the application archive (EAR/WAR/JAR) Source Directory
    orIDeveloperprojectand generate a report that describes the areas of the application that need
    tobe updated.
    D. Use the Configuration Wizard toextend an existing WebLogic domain with OAS/OC4Jsupport
    libraries and redeploy theapplication.
    E. Use SmartUpgrade to generate application artifacts and deployment descriptors that can
    bedeployed to WebLogic.

    Hi, I have checked your question and answer. And I agree with you.
    Q. A customer has a development environment that uses the auto-deployment feature. The customer
    claims the application is not redeployed even if the new version is copied to an application
    subdirectory. Which two parameters of the configuration should you check?
    -OK I Agree - Answer :
    E. If the domain is a single-server domain. Auto-deployment is not supported in
    multiserver domains.
    B. If server was started in the Development Mode. Auto-deployment is not supported in production
    mode.
    Q. A customer has a critical, performance-sensitive web application that connects to a multimode
    Oracle RAC database. Which feature of WebLogic can provide signification benefit?
    Maybe I'm not sure - Answer:
    A. The Web Session Affinity feature of Active GridLink for RAC.
    The above feature would maintain stickiness to the web session to the RAC Node.
    It is a new feature in WLS 12c and helps to enhance performance of web applications specifically.
    Q. What is the architectural benefit of keeping WebLogic Server transaction log in the database?
    -OK I Agree - Answer :
    C. It obviates the need to keep in sync two replication technologies (file and database) between
    data centers. The single replication technology is used for frequently changing data.
    Q. Which two options best describe how the Maven Plugin for WebLogic enables WebLogic to be
    effectively used in a Continuous Integration environment?
    -OK I Agree - Answer :
    B. management of the life cycle of a WebLogic domain including creation, configuration, and
    server life-cycle management
    C. deployment and undeployment of applications
    Q. A customer needs to analyze an application that was developed for Oracle Application Server
    10gR2 or 10gR3 (OC4J) in order to prepare to upgrade the infrastructure to WebLogic 12c.
    customer wants understand the changes required to be made to the application and how to
    configure WebLogic in to support the newly upgraded application.
    Which three actions would you recommend for upgrading the customer's application and server
    configuration?
    -OK I Agree - Answer :
    B. Use SmartUpgrade to analyze the OAS/OC4Jserver configuration and create
    WebLogicconfiguration files.
    C. Use SmartUpgrade to analyze the application archive (EAR/WAR/JAR) Source Directory
    orIDeveloperprojectand generate a report that describes the areas of the application that need
    tobe updated.
    E. Use SmartUpgrade to generate application artifacts and deployment descriptors that can
    bedeployed to WebLogic.

  • I am transfering my stuff from my lap top to my desk top (both Mac). I cannot get my CS4 to open. It gives me a 150:30 error, licencing thing. I have no idea what to do and after hours of searching none of what I found helps. I don't know anything about t

    Sorry didn't know that the first step was just supposed to be "subject".
    So here it is again.
    "I am transfering my stuff from my lap top to my desk top (both Mac). I cannot get my CS4 to open. It gives me a 150:30 error, licencing thing. I have no idea what to do and after hours of searching none of what I found helps. I don't know anything about this stuff so please don't answer with "maybe this willl work, or maybe that."  I need a real answer please and I cannot find a way to actually contact Adobe. I also don't have a disk drive on this Mac. Thanks"
    Also please feel free to e-mail the answer because I hate looking for these answers online. It takes me forever to find this section. Not that I have even even gotten a real answer.
    [email protected]

    Hi Sonia,
    While transferring Adobe from laptop to PC the licensing files got corrupt and the right way to use Adobe Applications is to install first as transferring from a different machine can give you problems.
    You can try steps from this article if that helps otherwise you have to reinstall and manually delete some files , everything is mentioned.
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html
    You can download CS4 from here:
    Download CS4 products

  • Error while deploying an application on weblogic 12c. An error occurred while reading the deployment descriptor. The error was: Error processing annotations

    Anyone please help me solve this error. I am trying to deploy an application on weblogic 12c  i am getting an error but the same application gets successfully deployed on weblogic 11g. The error is
    An error occurred during activation of changes, please see the log for details.
    Exception preparing module: EJBModule(gsCallbackAdapterLGTX-ejb.jar) An error occurred while reading the deployment descriptor. The error was: Error processing annotations: .
    [EJB:015001]Unable to link class com.aep.gridsmart.adapters.lgtx.buslogic.deliver.xform.AdapterTransfomerDeliverSession in Jar /appl/oracle/middleware/WLS/12.1.1.0/user_projects/domains/Gridsmart/servers/ManagedServer1/tmp/_WL_user/gsCallbackAdapterLGTX/34vz4d/gsCallbackAdapterLGTX-ejb.jar : java.lang.NoClassDefFoundError: com/aep/gridsmart/adapter/deliver/CommonAdapterDeliverBean

    Cotton please let me know what is the mistake i am
    doingThe following path does not exist.
    C:\Sun\AppServer7\domains\domain1\server1\
    applications\j2ee-modules\task_1\WEB-INF\web.xml

Maybe you are looking for