Migrate eclipseLink of Toplink - weblogic

I want to change eclipseLink 2.3.2 to eclipseLink 2.4.2 I tryed with this tutorial but doesn´t work, with this question but I think that he use Weblogic 12.1.2 ( I use Weblogic 12.1.1), with this, and I read this and I don´t know which library change that this works in Module and I add jar in domain/lib and doesnt work. Any Idea???
My shared library:
application.xml:
<application>
<display-name>eclipselink-shared-lib</display-name>
<module>
<java>/lib/eclipselink.jar</java>
</module>
</application>
MANIFEST:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.7.0_04-b21 (Oracle Corporation)
Extension-Name: eclipselink-shared-lib
Specification-Version: 2.4.2
weblogic-application:
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" 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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.4/weblogic-application.xsd">
<prefer-application-packages>
<package-name>org.eclipse.persistence.*</package-name>
</prefer-application-packages>
</wls:weblogic-application>
And weblogic-application ear use :
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-application xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-application" 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/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.4/weblogic-application.xsd">
<library-ref>
<library-name>eclipselink-shared-lib</library-name>
</library-ref>
</wls:weblogic-application>
And now gives me this error: [WARNING] weblogic.deploy.api.tools.deployer.DeployerException: Task 9 failed: [Deployer:149026]deploy application SIUCOM_EAR on AdminServer.
Target state: deploy failed on Server AdminServer
java.io.IOException: C:\oracle\Middleware12c\user_projects\domains\base_domain\servers\AdminServer\tmp_WL_user\SIUCOM_EAR\4q1ire\lib\eclipselink.jar (El sistema no puede hallar el archivo especificado) with : C:\oracle\Middleware12c\user_projects\domains\base_domain\servers\AdminServer\tmp_WL_user\PROJECT_EAR\4q1ire\lib\eclipselink.jar
It´s true that path doesn´t exist, correct path are: C:\oracle\Middleware12c\user_projects\domains\base_domain\servers\AdminServer\tmp_WL_user\eclipselink-shared-lib\276ipa\lib\eclipselink.jar

Related

Anypoint studio throws org.xml.sax.SAXParseException error

Im new to Mule/anypoint studio platform.
When i try to run mule projcet from anypoint studio I get following error[1].
I have added that particular jar in my classpath too (as an external jar, which appears in referenced libraries section too.) So i dont think it is classpath issue.
Also, same project works for others.only for me. I believe it is some environmental issue.The xml segment is as follows(namespace is defined correctly.)
What might be the cause for this? why anypoint studio is throwing error while deploying the project to runtime?
Im using anypoint studio version 7.4.1
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:json-logger="http://www.mulesoft.org/schema/mule/json-logger"
....
<json-logger:logger doc:name="Log Get Locations .../>
[1]aused by: org.mule.runtime.core.api.config.ConfigurationException: There were '3' errors while parsing the given file 'implementation/impl-locations.xml'.
Full list:
org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 171; cvc-complex-type.2.4.a: Invalid content was found starting with element 'json-logger:logger'. One of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":description, "http://www.mulesoft.org/schema/mule/core":abstract-message-source, "http://www.mulesoft.org/schema/mule/core":abstract-message-processor, "http://www.mulesoft.org/schema/mule/core":abstract-mixed-content-message-processor}' is expected.
In addition to the namespace you have to add the schema location in the xsi:schemaLocation attribute.
Example:
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd"></mule>

JBoss EAP 7.1.0.GA + picketlink 2.7.1.Final causes org.jboss.modules.ModuleLoadError

I'm using an Red Hat JBoss Enterprise Application Platform - Version 7.1.0.GA and trying to use picketlink 2.7.1.Final causes org.jboss.modules.ModuleLoadError.
So, I added in standalone.xml
<extension module="org.wildfly.extension.picketlink"/>
Then ran the picketlink-installer-2.7.1.Final with the ant that gave me: BUILD SUCCESSFUL, and when I try to launch my app with jboss, I get an:
WARN [org.jboss.modules] (ServerService Thread Pool -- 31) Failed to define class org.picketlink.identity.federation.web.handlers.saml2.SAML2IssuerTrustHandler in Module "org.picketlink.federation" from local module loader #58134517 (finder: local module finder #4450d156 (roots: D:\Jboss\bin\..\modules,D:\Jboss\bin\..\modules\system\layers\base)): org.jboss.modules.ModuleLoadError: org.jboss.common-core
I added the picketlink.xml file with the Handlers:
<Handlers xmlns="urn:picketlink:identity-federation:handler:config:2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:picketlink:identity-federation:handler:config:2.1 ">
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2IssuerTrustHandler" />
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2LogOutHandler"/>
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.SAML2AuthenticationHandler"/>
<Handler class="org.picketlink.identity.federation.web.handlers.saml2.RolesGenerationHandler"/>
</Handlers>
I added in \Jboss\modules\system\layers\base\org\jboss\common-core\main\jboss-common-4.2.2.GA.jar and an module.xml with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.5" name="org.jboss.common-core">
<properties>
<property name="jboss.api" value="private"/>
</properties>
<dependencies>
<module name="javax.api"/>
</dependencies>
<resources>
<resource-root path="jboss-common-4.2.2.GA.jar"/>
</resources>
</module>
And that error is gone, I have other errors now...

mobilefirst 8 Adapter xml file schema validation encountered errors

I am using MFP 8.0 and trying to build an adapter. Following is the code of it:
<?xml version="1.0" encoding="UTF-8"?>
<mfp:adapter name="TestAdapter"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mfp="http://www.ibm.com/mfp/integration"
xmlns:http="http://www.ibm.com/mfp/integration/http">
<displayName>TestAdapter</displayName>
<description>TestAdapter</description>
<connectivity>
<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>http</protocol>
<domain>10.80.111.52</domain>
<port>8083</port>
<connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds>
<socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds>
<maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode>
</connectionPolicy>
</connectivity>
<procedure name="testProc" scope="restrictedResource"></procedure>
<JAXRSApplicationClass>com.example.UserLoginValidationApplication</JAXRSApplicationClass>
<securityCheckDefinition name="UserValidationSecurityCheck" class="com.example.UserLoginValidationResource"></securityCheckDefinition>
</mfp:adapter>
The procedure is defined in the js file. When I am building the adapter with mfpdev adapter build command I am getting below error:
[ERROR] Failed to execute goal com.ibm.mfp:adapter-maven-plugin:8.0.2016070421:build (default-build) on project TestAdapter: Adapter xml file schema validation encountered errors: [cvc-complex-type.2.4.a: Invalid content
'{procedure, property, securityCheckDefinition}' is expected.] -> [Help 1]
I am using mfpdev version 8.0.0-2016091519
As mentioned in the documentation, as well as stated in the error itself, you cannot have the <JAXRSApplicationClass> element in the server.xml.
Remove said element and the adapter will be built successfully.
See here: https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/authentication-and-security/creating-a-security-check/#defining-a-security-check

MobileFirst project upgrade fails on Windows 8 appx

I'm trying to upgrade a 6.3 project to 7.1 in Studio and the upgrade keeps crashing and closing the project.
If I remove the windows8 project files from my apps, the upgrade works successfully. I have attached my appx.manifest file in case this helps debug the issue.
10:49:13 AM: [2016-02-09 10:46:18] Adding WLWin8Native reference and AuthWinRT.targets to the Windows 8 project file
[2016-02-09 10:46:21] FWLST1226I: Added Authorization Manager Cordova plugin to config.xml (C:\Users\IBM_ADMIN\MobileFirst71Prototype\MaximoAnywhere\apps\WorkExecution\iphone\native\config.xml).
[2016-02-09 10:46:21] Unexpected error during upgrade: java.lang.NullPointerException at com.worklight.upgrader.upgraders.windows8.AppXManifestUpgrade.upgrade(AppXManifestUpgrade.java:69)
at com.worklight.upgrader.WLUpgradeEngine.executeUpgrader(WLUpgradeEngine.java:368) at com.worklight.upgrader.WLUpgradeEngine.performUpgrade(WLUpgradeEngine.java:301)
at com.worklight.upgrader.WLUpgradeEngine.upgradeProject(WLUpgradeEngine.java:188) at com.worklight.studio.plugin.upgrader.WLUpgraderWorkspaceJob.runInWorkspace(Unknown
Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
[2016-02-09 10:46:21] java.lang.NullPointerException
Here's my package.appxmanifest file
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
<Identity Name="a02b50fe-bb55-4be5-8bd9-6c2f93cef175" Version="7.5.2.1" Publisher="CN=application's author"/>
<Properties>
<DisplayName>Work Execution</DisplayName>
<PublisherDisplayName>IBM</PublisherDisplayName>
<Logo>images\storelogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.3.0</OSMinVersion>
<OSMaxVersionTested>6.3.0</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App" StartPage="www\default\index.html">
<m2:VisualElements DisplayName="Work Execution" Description="Work Execution" BackgroundColor="#003f69" ForegroundText="light"
Square150x150Logo="images\logo.png" Square30x30Logo="images\smalllogo.png">
<m2:SplashScreen Image="images\splashscreen.png"/>
</m2:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="privateNetworkClientServer"/>
<Capability Name="internetClient"/>
<Capability Name="picturesLibrary"/>
<DeviceCapability Name="webcam"/>
<DeviceCapability Name="location"/>
</Capabilities>
</Package>
somehow I had some invalid XML in there for my VisualElements elements. Once I fixed the manifest's VisualElements section to look like this, the upgrade went through.
<VisualElements BackgroundColor="#003f69" Description="Inspection" DisplayName="Inspection" ForegroundText="light" Logo="images\logo.png" SmallLogo="images\smalllogo.png" ToastCapable="true">
<SplashScreen Image="images\splashscreen.png"/>
</VisualElements>

How i can add some jvm options to arquillian test

Its possible to add some jvm options to embedded glassfish using arquillian ?
I need to add that jvm options:
-Djavax.net.ssl.keyStorePassword=changeit
-Djavax.net.ssl.trustStorePassword=changeit
Java properties on Glassfish are configured in domain.xml. Since you are running an embedded Glassfish, you don't really have a domain.xml file you could modify. You can try to do this in arquillian.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<arquillian xmlns="http://www.jboss.org/arquillian-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/arquillian-1.0 http://jboss.org/schema/arquillian/arquillian-1.0.xsd">
<engine>
<property name="deploymentExportPath">target/</property>
</engine>
<container qualifier="glassfish" default="true">
<configuration>
<property name="configurationXml">file:src/test/resources/domain.xml</property>
...
</configuration>
</container>
</arquillian>
The configurationXml property is used to pass the configuration file to use for the embedded insance. See also https://docs.jboss.org/author/display/ARQ/GlassFish+3.1+-+Embedded. domain.xml itself has a section for JVM arguments.