Javacard maven
Hi!
I am wondering in which maven repository or artifact can I find the javacard.framework.* ?
Thx,
topicfun
You most likely wont find it anywhere since you have agree to the Software License. You could always download the JCDK and install the jar files into your local or internal repository. I am not sure if the license will allow you to publich the files to a public repository though.
Cheers,
Shane
Similar Messages
-
Issue in deploying Service Bus projects using maven
Hi,
I am following the following documentation for deploying service bus projects to my OSB server.
http://docs.oracle.com/middleware/1213/core/MAVEN/osb_maven_project.htm#MAVEN8973
I was able to issue mvn package as described in documentation and also able to see sbar files in .data/Maven directory of each project.
But i am seeing following error when i issue mvn pre-integration-test. Am i missing any steps.
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ System ---
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-System-1424718369010.
java.io.IOException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'w
eblogic.management.mbeanservers'
at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.ja
va:237)
at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.j
ava:120)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:369)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.getJMXConnector(MBeanHel
per.java:228)
at oracle.sb.maven.plugin.deploy.MBeanHelper$MBeanInvocationHandler.invoke(MBeanHelper.java:
131)
at com.sun.proxy.$Proxy16.createSession(Unknown Source)
at oracle.sb.maven.plugin.DeployMojo.createSession(DeployMojo.java:141)
at oracle.sb.maven.plugin.DeployMojo.execute(DeployMojo.java:89)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j
ava:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter
.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: javax.naming.NameNotFoundException: Unable to resolve 'weblogic.management.mbeanservers.d
omainruntime'. Resolved 'weblogic.management.mbeanservers' [Root exception is javax.naming.NameNotFo
undException: Unable to resolve 'weblogic.management.mbeanservers.domainruntime'. Resolved 'weblogic
.management.mbeanservers']; remaining name 'domainruntime'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1180
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:270)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:187)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:210)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:224)
at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:701)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:231)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:527)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:523)Hi Siva,
I am facing same issue I am bale to create package but while deployment goal I am facing problem.I am following same document as you do.
I can see my mvn-pre-integration ..show me sucees in result
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:3.0.3
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracl
-servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:package' with basic configurator -->
[DEBUG] (f) oracleHome = C:\Oracle\Middleware\Oracle_Home
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] (f) system = false
[DEBUG] -- end configuration --
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (default-deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888616161.
[INFO]
[INFO] --- oracle-servicebus-plugin:12.1.3-0-0:deploy (deploy) @ TestOSBLinux ---
[DEBUG] Configuring mojo com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy from plugin realm ClassRealm[plugin>com.oracle.servicebus.plugin:oracle
servicebus-plugin:12.1.3-0-0, parent: sun.misc.Launcher$AppClassLoader@65450f1f]
[DEBUG] Configuring mojo 'com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0:deploy' with basic configurator -->
[DEBUG] (f) oraclePassword = Oracle123
[DEBUG] (f) oracleServerUrl = http://192.168.137.150:7001
[DEBUG] (f) oracleUsername = weblogic
[DEBUG] (f) project = MavenProject: LinuxMachine:TestOSBLinux:1.0-SNAPSHOT @ C:\JDeveloper\mywork\OSB-DEPLOY\LinuxMachine\TestOSBLinux\pom.xml
[DEBUG] -- end configuration --
[INFO] Service Bus Archive deployed using session Service_Bus_Maven-TestOSBLinux-1429888623126.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building LinuxMachine 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-so
rces, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, i
tegration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: LinuxMachine:LinuxMachine:1.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] Repositories (plugins) : [central (https://repo.maven.apache.org/maven2, default, releases)]
[DEBUG] =======================================================================
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] TestOSBLinux ....................................... SUCCESS [ 20.752 s]
[INFO] LinuxMachine ....................................... SUCCESS [ 0.009 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
But not get deployed .....
When i run mvn com.oracle.servicebus.plugin:oracle-servicebus-plugin:deploy** to invoke deployment goal it fails which below logs
org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'deploy*.*' in plugin com.oracle.servicebus.plugin:oracle-servicebus-plugin:12.1.3-0-0 amon
goals deploy, package
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:275)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:239)
at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:233)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:85)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
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:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR]
Thanks&Regards
Prabhat -
Maven Plugin not accepting values from a property file.
Hi,
I want to create javadocs using maven.
It works fine when i provide all the absolute paths in the pom.
But when i try to provide paths by reading a property file then the maven-javadoc-plugin does not get the paths from this property file.
The property file is defined as mentioned in below format:
src_mvn_consult_framework_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/framework
src_mvn_consult_module_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/module
src_mvn_consult_appx_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/appx
src_mvn_consult_client_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/projects/client
src_mvn_consult_app_webservice_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.webservices
src_mvn_consult_app_middleware_dir=/var/lib/hudson/jobs/CZ_NAB_CORE_MVN_CHECKOUT/workspace/middleware/application/com.ofss.fc.cz.nab.middleware
Calling this property file in the pom like:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>/var/build/consult/maven/cz_javadoc-config.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
Finally we are using keys defined in property file in pom like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<configuration>
<sourcepath>${src_mvn_consult_framework_dir};
${src_mvn_consult_module_dir};
${src_mvn_consult_appx_dir};
${src_mvn_consult_client_dir};
${src_mvn_consult_app_webservice_dir};
${src_mvn_consult_app_middleware_dir};
</sourcepath>
</configuration>
</plugin>
Please suggest how we can get the value of keys defined in the property file in POM
Thanks for your invaluable supportI've had to do something similar in one of my apps. In order to populate values in the THIS scope, you'll need to put a copy of the XML loading/processing logic in the pseudo-constructor (or encapsulate it in a separate CFM/CFC file and include it in both places). It's ugly, but that's the only way I'm aware of to access the THIS scope.
-Carl V. -
I made a simple applet to test the speed of adding arrays, depending whether they are saved in EEPROM or RAM. Since working with variables stored in RAM should be faster, I was really surprised when I noticed no difference between them. I would really like to know where I went wrong, but simply can-t figure it out, so any help would be really appreciated. I used Eclipse 3.2 with JCOP Tools 3.1.1b and JCOP31 v2.2 JavaCard. The code I produced is:
package test;
import javacard.framework.APDU;
import javacard.framework.ISO7816;
import javacard.framework.Applet;
import javacard.framework.ISOException;
import javacard.framework.JCSystem;
public class SimpleMemoryTest extends Applet {
private static final short ARRAY_SIZE = 32;
byte[] eeprom_a, eeprom_b, eeprom_c;
byte[] ram_a, ram_b, ram_c;
short[] mem;
private SimpleMemoryTest() {
this.mem = new short[2];
public static void install(byte[] bArray, short bOffset, byte bLength) {
new SimpleMemoryTest().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
public void process(APDU apdu) {
if (selectingApplet()) return;
byte[] buf = apdu.getBuffer();
switch (buf[ISO7816.OFFSET_INS]) {
case (byte) 0x00: { // Print memory info to verify where arrays are stored
mem[0] = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_PERSISTENT);
mem[1] = JCSystem.getAvailableMemory(JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT);
buf[0] = (byte)(mem[0] / 256);
buf[1] = (byte)(mem[0] % 256);
buf[2] = (byte)(mem[1] / 256);
buf[3] = (byte)(mem[1] % 256);
apdu.setOutgoingAndSend((short)0, (short)4);
break;
case (byte) 0x01: { // Put arrays in EEPROM.
this.eeprom_a = new byte[ARRAY_SIZE];
this.eeprom_b = new byte[ARRAY_SIZE];
this.eeprom_c = new byte[ARRAY_SIZE];
break;
case (byte) 0x02: { // Put arrays in RAM.
this.ram_a = JCSystem.makeTransientByteArray(ARRAY_SIZE, JCSystem.CLEAR_ON_DESELECT);
this.ram_b = JCSystem.makeTransientByteArray(ARRAY_SIZE, JCSystem.CLEAR_ON_DESELECT);
this.ram_c = JCSystem.makeTransientByteArray(ARRAY_SIZE, JCSystem.CLEAR_ON_DESELECT);
break;
case (byte) 0x03: { // Add arrays in EEPROM 100 times
short i, j;
for (i = (short) 0; i < (short) 100; i++) {
for (j = (short) 0; j < (short) ARRAY_SIZE; j++) {
eeprom_c[j] = (byte)(eeprom_a[j] + eeprom_b[j]);
break;
case (byte) 0x04: { // Add arrays in RAM 100 times
short i, j;
for (i = (short) 0; i < (short) 100; i++) {
for (j = (short) 0; j < (short) ARRAY_SIZE; j++) {
ram_c[j] = (byte)(ram_a[j] + ram_b[j]);
break;
default:
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
}When you create a byte array, all values are initialized to 0. Looking at your loops, it seems you're adding 0's only. Smart card operating systems normally do a read before write, to make sure not the same value is written. It saves time, and in case of EEPROM also to prolong the lifetime. I think this is the reason why you see no difference .. because there is no writing. Do something like
eeprom_c[j] = (byte)(i + j);
Matjaz wrote: case (byte) 0x03: { // Add arrays in EEPROM 100 times
short i, j;
for (i = (short) 0; i < (short) 100; i++) {
for (j = (short) 0; j < (short) ARRAY_SIZE; j++) {
eeprom_c[j] = (byte)(eeprom_a[j] + eeprom_b[j]);
break;
case (byte) 0x04: { // Add arrays in RAM 100 times
short i, j;
for (i = (short) 0; i < (short) 100; i++) {
for (j = (short) 0; j < (short) ARRAY_SIZE; j++) {
ram_c[j] = (byte)(ram_a[j] + ram_b[j]);
break; -
Javacard and session variables
Hello,
I'm trying to find a reasonable Javacard technique to handle "session variables" that must be kept between successive APDUs, but must be re-initialized on each card reset (and/or each time the application is selected); e.g. currently selected file, currently selected record, current session key, has the user PIN been verified...
Such variables are best held in RAM, since changing permanent (EEPROM or Flash) variables is so slow (and in the long run limiting the operational life of the card).
Examples in the Java Card Kit 2.2.2 (e.g. JavaPurseCrypto.java) manipulate session variables in the following way:
1) The programmers group session variables of basic type (Short, Byte, Boolean) according to type, and map each such variable at an explicit index of a vector (one per basic type used as session variable).
2) At install() time, each such vector, and each vector session variable, is explicitly allocated as a transient object, and this object is stored in a field of the application (in permanent memory), where it remains across resets.
3) Each use of a session variable of basic type is explicitly translated by the programmer into using the appropriately numbered element of the appropriate vector.
4) Vector session variables require no further syntactic juggling, but eat up an object descriptor worth of permanent data memory (EEPROM or Flash), and a function call + object affectation worth of applet-storage memory (EEPROM, Flash or ROM).
The preparatory phase goes:
public class MyApp extends Applet {
// transientShorts array indices
final static byte TN_IX = 0;
final static byte NEW_BALANCE_IX=(byte)TN_IX+1;
final static byte CURRENT_BALANCE_IX=(byte)NEW_BALANCE_IX+1;
final static byte AMOUNT_IX=(byte)CURRENT_BALANCE_IX+1;
final static byte TRANSACTION_TYPE_IX=(byte)AMOUNT_IX+1;
final static byte SELECTED_FILE_IX=(byte)TRANSACTION_TYPE_IX+1;
final static byte NUM_TRANSIENT_SHORTS=(byte)SELECTED_FILE_IX+1;
// transientBools array indices
final static byte TRANSACTION_INITIALIZED=0;
final static byte UPDATE_INITIALIZED=(byte)TRANSACTION_INITIALIZED+1;
final static byte NUM_TRANSIENT_BOOLS=(byte)UPDATE_INITIALIZED+1;
// remanent variables holding reference for transient variables
private short[] transientShorts;
private boolean[] transientBools;
private byte[] CAD_ID_array;
private byte[] byteArray8; // Signature work array
// install method
public static void install( byte[] bArray, short bOffset, byte bLength ) {
//Create transient objects.
transientShorts = JCSystem.makeTransientShortArray( NUM_TRANSIENT_SHORTS,
JCSystem.CLEAR_ON_DESELECT);
transientBools = JCSystem.makeTransientBooleanArray( NUM_TRANSIENT_BOOLS,
JCSystem.CLEAR_ON_DESELECT);
CAD_ID_array = JCSystem.makeTransientByteArray( (short)4,
JCSystem.CLEAR_ON_DESELECT);
byteArray8 = JCSystem.makeTransientByteArray( (short)8,
JCSystem.CLEAR_ON_DESELECT);
(..)and when it's time for usage, things go:
if (transientShorts[SELECTED_FILE_IX] == (short)0)
transientShorts[SELECTED_FILE_IX] == fid;
transientBools[UPDATE_INITIALIZED] =
sig.verify(MAC_buffer, (short)0, (short)10,
byteArray8, START, SIGNATURE_LENGTH);I find this
a) Verbose and complex.
b) Error-prone: there is nothing to prevent the accidental use of transientShorts[UPDATE_INITIALIZED].
c) Wastefull of memory: each use of a basic-type state variable wastes some code; each vector state variable wastes an object-descriptor worth of permanent data memory, and code for its allocation.
d) Slow at runtime: each use of a "session variable", especially of a basic type, goes thru method invocation(s) which end up painfully slow (at least on some cards), to the point that for repeated uses, one often attain a nice speedup by caching a session variable, and/or transientShorts and the like, into local variables.
As an aside, I don't get if the true allocation of RAM occurs at install time (implying non-selected applications eat up RAM), or at application selection (implying hidden extra overhead).
I dream of an equivalent for the C idiom "struct of state variables". Are these issues discussed, in a Sun manual, or elsewhere? Is there a better way?
Other desperate questions: does a C compiler that output Javacard bytecode make sense/exists? Or a usable Javacard bytecode assembler?
Francois GrieuInteresting post.
I don't have a solution to your problem, but caching the session variables arrays in local variable arrays is a good start. This should be only done when the applet is in context, e.g. selected or accessed through the shareable interface. This values should be written back to EEPROM at e.g. deselect or some other important point of time. Do you run into problems if a tear happens? I don't think so since the session variables should be transactional, and a defined point will commit a transaction.
Analyzing the bytecode is a good idea. I know of a view in JCOP Tools (Eclipse plugin) where you can analyze the bytecode and optimize it to your needs. -
Font problem with Montserrat and Maven Pro from google
Seems like some fonts don't render as they should in Firefox 29.0.1. I tried to use google web fonts like Montserrat and Maven Pro, no problem with downloading but this fonts don't look good.
I tried to install Montserrat to my Windows 7 (64) and deactivated css so that FF runs the font but same problem occurs.
A really strange problem is that from my computer at work this fonts don't work from FF or Chrome, all versions of IE is fine.
At home i have a laptop with same OS and version of FF and from home it works! But not Chrome..
I have search on the net and at your support site but haven't find any answers yet.
You can look at http://arenago.axiell.com for your self. Below is troubleshooting information from my version of FF where this problems occurs (Sorry about the Swedish)
Programfakta
Namn: Firefox
Version: 29.0.1
Användaragent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
Kraschrapporter för de senaste 3 dagarna
Alla kraschrapporter
Tillägg
Namn: Classic Theme Restorer
Version: 1.1.8
Aktiverad: true
ID: ClassicThemeRestorer@ArisT2Noia4dev
Namn: Firebug
Version: 1.12.8
Aktiverad: true
ID: [email protected]
Namn: HostAdmin
Version: 1.4.9.2
Aktiverad: true
ID: {bd54afa8-b14a-4d7a-aecf-37e34e882796}
Namn: Web Developer
Version: 1.2.5
Aktiverad: true
ID: {c45c406e-ab73-11d8-be73-000a95be3b12}
Viktiga ändrade inställningar
accessibility.typeaheadfind.flashBar: 0
browser.cache.disk.capacity: 358400
browser.cache.disk.smart_size_cached_value: 358400
browser.cache.disk.smart_size.first_run: false
browser.cache.disk.smart_size.use_old_max: false
browser.places.smartBookmarksVersion: 6
browser.sessionstore.upgradeBackup.latestBuildID: 20140506152807
browser.startup.homepage: about:blank
browser.startup.homepage_override.buildID: 20140506152807
browser.startup.homepage_override.mstone: 29.0.1
browser.tabs.drawInTitlebar: false
browser.tabs.onTop: false
dom.mozApps.used: true
extensions.lastAppVersion: 29.0.1
font.default.x-western: sans-serif
font.internaluseonly.changed: true
font.name.sans-serif.x-western: Montserrat
font.name.serif.x-western: Montserrat
network.cookie.prefsMigrated: true
network.dnsCacheEntries: 0
network.dnsCacheExpiration: 0
places.database.lastMaintenance: 1400218745
places.history.expiration.transient_current_max_pages: 104858
plugin.disable_full_page_plugin_for_types: application/pdf
plugin.importedState: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgcolor: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_bgimages: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_colorspace:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_command:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_downloadfonts: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_duplex: -983728976
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_bottom: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_left: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_right: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_edge_top: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_evenpages: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footercenter:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerleft: &PT
print.printer_\\tina\Kajan_HP_LJ_P2055.print_footerright: &D
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headercenter:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerleft: &T
print.printer_\\tina\Kajan_HP_LJ_P2055.print_headerright: &U
print.printer_\\tina\Kajan_HP_LJ_P2055.print_in_color: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_bottom: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_left: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_right: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_margin_top: 0.5
print.printer_\\tina\Kajan_HP_LJ_P2055.print_oddpages: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_orientation: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_page_delay: 50
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_data: 9
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_height: 11,00
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_type: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_size_unit: 1
print.printer_\\tina\Kajan_HP_LJ_P2055.print_paper_width: 8,50
print.printer_\\tina\Kajan_HP_LJ_P2055.print_plex_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution: 1
print.printer_\\tina\Kajan_HP_LJ_P2055.print_resolution_name:
print.printer_\\tina\Kajan_HP_LJ_P2055.print_reversed: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_scaling: 1,00
print.printer_\\tina\Kajan_HP_LJ_P2055.print_shrink_to_fit: true
print.printer_\\tina\Kajan_HP_LJ_P2055.print_to_file: false
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_bottom: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_left: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_right: 0
print.printer_\\tina\Kajan_HP_LJ_P2055.print_unwriteable_margin_top: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_bgcolor: false
print.printer_\\tina\NRG_MP_C3501_PS.print_bgimages: false
print.printer_\\tina\NRG_MP_C3501_PS.print_colorspace:
print.printer_\\tina\NRG_MP_C3501_PS.print_command:
print.printer_\\tina\NRG_MP_C3501_PS.print_downloadfonts: false
print.printer_\\tina\NRG_MP_C3501_PS.print_duplex: -983728976
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_bottom: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_left: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_right: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_edge_top: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_evenpages: true
print.printer_\\tina\NRG_MP_C3501_PS.print_footercenter:
print.printer_\\tina\NRG_MP_C3501_PS.print_footerleft: &PT
print.printer_\\tina\NRG_MP_C3501_PS.print_footerright: &D
print.printer_\\tina\NRG_MP_C3501_PS.print_headercenter:
print.printer_\\tina\NRG_MP_C3501_PS.print_headerleft: &T
print.printer_\\tina\NRG_MP_C3501_PS.print_headerright: &U
print.printer_\\tina\NRG_MP_C3501_PS.print_in_color: true
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_bottom: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_left: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_right: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_margin_top: 0.5
print.printer_\\tina\NRG_MP_C3501_PS.print_oddpages: true
print.printer_\\tina\NRG_MP_C3501_PS.print_orientation: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_page_delay: 50
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_data: 9
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_height: 11,00
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_type: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_size_unit: 1
print.printer_\\tina\NRG_MP_C3501_PS.print_paper_width: 8,50
print.printer_\\tina\NRG_MP_C3501_PS.print_plex_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_resolution: 1
print.printer_\\tina\NRG_MP_C3501_PS.print_resolution_name:
print.printer_\\tina\NRG_MP_C3501_PS.print_reversed: false
print.printer_\\tina\NRG_MP_C3501_PS.print_scaling: 1,00
print.printer_\\tina\NRG_MP_C3501_PS.print_shrink_to_fit: true
print.printer_\\tina\NRG_MP_C3501_PS.print_to_file: false
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_bottom: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_left: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_right: 0
print.printer_\\tina\NRG_MP_C3501_PS.print_unwriteable_margin_top: 0
privacy.cpd.siteSettings: true
privacy.sanitize.migrateFx3Prefs: true
privacy.sanitize.timeSpan: 0
storage.vacuum.last.index: 1
storage.vacuum.last.places.sqlite: 1399495195
user.js-inställningar
Din profilmapp innehåller en user.js-fil som inkluderar inställningar som inte har skapats av Firefox.
Grafik
Adapter-RAM: 512
Adapterbeskrivning: NVIDIA GeForce 7950 GT
Adapterdrivrutin: nvd3dumx,nvd3dum
ClearType-parametrar: D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ] D [ Gamma: 2200 Pixel Structure: R ClearType Level: 100 Enhanced Contrast: 50 ]
DirectWrite aktiverat: false (6.2.9200.16492)
Drivrutinsdatum: 1-31-2013
Drivrutinsversion: 9.18.13.783
Enhets-ID: 0x0295
GPU #2 aktiv: false
Grafikaccelererade fönster: 1/1 Direct3D 9
Leverantörs-ID: 0x10de
WebGL-renderare: Google Inc. -- ANGLE (NVIDIA GeForce 7950 GT Direct3D9Ex vs_3_0 ps_3_0)
windowLayerManagerRemote: false
AzureCanvasBackend: skia
AzureContentBackend: cairo
AzureFallbackCanvasBackend: cairo
AzureSkiaAccelerated: 0
JavaScript
Incremental GC: true
Tillgänglighet
Aktiverad: false
Förhindra tillgänglighet: 0
Biblioteksversioner
NSPR
Förväntad minimiversion: 4.10.3
Version som används: 4.10.3
NSS
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSSMIME
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSSSL
Förväntad minimiversion: 3.16 Basic ECC
Version som används: 3.16 Basic ECC
NSSUTIL
Förväntad minimiversion: 3.16
Version som används: 3.16Many site issues can be caused by corrupt cookies or cache.<BR><BR>
Clear the Cache<BR>
'''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
<BR><BR>and<BR><BR>
Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
There is a button on the right side called '''Show Cookies'''.<BR><BR>
If there is still a problem,
'''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
<BR>While you are in safe mode;<BR>
'''''Firefox Options > Advanced > General'''''.<BR>
Look for and turn off '''Use Hardware Acceleration'''.<BR>
Poke around safe web sites and see if there is still a problem. Then restart.
<BR><BR><BR>
This may or may not help you;<BR><BR>
'''''[https://addons.mozilla.org/en-US/firefox/addon/nosquint/?src=external-Add-ons_Manager_Context_Menu-extension NoSquint]'''''<BR><BR>
NoSquint allows you to adjust the text-only and full-page (both text and images) zoom levels as well as color settings both globally (for all sites) and per site. -
Unable to run the maven project using TFS 2013
Hi All,
This is Raghu, I am new to TFS.
I am running Maven project (selenium+java) using TFS. I configured TFS in my local box and installed TFS plugins for Eclipse. I have committed all of my code to TFS and created a new build in TFS using Eclipse TEAM Explore.
When I executed the build, it displaying the below message not executing my test scripts.
when I am executing maven from command prompt, it's working fine.
I am using Eclipse Luna, TFS2013, java 1.7, Maven 3.1.1
Debug | Any CPU
0 error(s), 0 warning(s)
$/Testselenium/ArrowSOP/pom.xml compiled
$/Testselenium/ArrowSOP/pom.xml ('install' target(s)) - 0 error(s), 0 warning(s),
View log file
No test results
No code coverage results
It could be grate, if anybody provide a solution for this issue.
Thanks
RaghuHello again,
It’s just in one of my TFS project I have this problem and it didn’t help to use older versions of the build process templates.
/Magnus
Magnus Timner -
Incorporating Crystal Reports for Eclipse into a Maven build
Is there a way to support or work around Maven dependencies for Crystal Reports?
I'm working on a project in MyEclipse 8.5 and building it into an ear file using the integrated Maven support.
We just recently started incorporating Crystal Reports into our project, and I have all the jar files in the WebINF\lib folder and the crystalreportviewers folder in the project as well and when I run the reports and viewers from jsp pages it works fine because Maven doesn't actually compile those. The problem is that I need to run scheduled reports in the background without ever showing anything to the user but whenever I try to access crystal reports directly in my java servlet classes my import line
import com.crystaldecisions.sdk.occa.report.document.*;
throws the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project webui: Compilation failure: Compilation failure:
C:\...SchedulingServlet.java:[17,0]package com.crystaldecisions.sdk.occa.report.document does not exist
Even if I'm not doing anything with it.
I'm still new to Maven, jsp, and Crystal Reports, so any suggestions would be awesome.I get that error without even having any .prt files in the project.
having the import statement alone throws that error -
Java and Maven issues after upgrading OSX to Maverick 10.9.2
I upgraded my MacBookAir to Maverick and now it can't detect Java VM and Apache Maven
If it is not finding the mvn command then I suspect that it has removed the directory mvn is in from the path variable. Run Terminal.app and type
echo $PATH
See if this includes the directory for mvn. You could try modifying your /etc/paths file (system wide) or for just a single user account the file to create/modify is
~/.profile
It is generally best not to modify the system wide one if you don't need to.
Reinstalling mvn might also be a solution and you could take the opportunity to update your mvn at the same time. -
Configuring Maven for a new Project
Could anyone provide inputs on how to configure Maven for a new project?
I am referring to links
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20setup%20Maven?
http://maven.apache.org/guides/mini/guide-creating-archetypes.html
Rgds,
seeteshWe are introducing a new feature in Flex 2.0.1 that's due out
early next year. The feature is called "Modules" and it was
discussed at this year's MAX 2006. You can read more about it on
Roger Gonzalez's blog:
http://blogs.adobe.com/rgonzalez/
- check the "Modular Applications" articles. I think this will go a
long way to making the reusable parts you are talking about.
Flex does not build things from instructions unless they are
written in ActionScript. We have customers that do create dynamic
interfaces based on data loaded from a database, so it is possible.
But if you have pre-built templates and all you need to do is
change certain aspects at runtime, it should be pretty easy with
Flex. Take a look at the Flex documentation, especially the part
about the Flex framework and how Flex sources are compiled into
SWFs.
You style Flex components using style sheets (CSS files).
This also includes specifying skins for components if you decide to
give something a whole new look.
I'm a bit biased here, but I think using ColdFusion (version
7.0.2) with Flex 2 is very easy. But it depends on your needs,
budget, deployment, etc. WIth CF 7.0.2 and Flex Builder 2 you get
wizards to be build both CFC (ColdFusion components) and matching
ActionScript objects so that you exchange objects, not just data,
between Flex and CF.
WebServices can also be used (with CF, too). This gives you
more choices to the backend. If you have a large amount of data or
it is complex, consider Flex Data Services as that has data
management capabilities.
Flex 2 has localization capabilties. You create a 'resource
bundle' in various languages and build SWFs for each one. When the
end user choses their preference, take them to the page that loads
the appropriate SWF.
HTH -
Error while running the command "maven jbi:createArchetype"
Hi all,
I installed maven 1.0.2 and copied the plugin maven-jbi-plugin-1.0.jar into the <maven_home>/plugin directory as said in the url http://docs.codehaus.org/display/SM/Spring+Client+Toolkit
Then when I ran the command maven jbi:createArchetype, I am getting the following error.
=========================================================
Attempting to download dom4j-1.4-dev-8.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/dom4j/jars/dom4j-1.4-dev-8.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download dom4j-1.4-dev-8.jar.
Attempting to download commons-jelly-20030902.160215.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-20030902.160215.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download commons-jelly-20030902.160215.jar.
Attempting to download commons-jelly-tags-jsl-20030211.143151.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-jsl-20030211.143151.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download commons-jelly-tags-jsl-20030211.143151.jar.
Attempting to download commons-jelly-tags-log-20030211.142821.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-log-20030211.142821.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download commons-jelly-tags-log-20030211.142821.jar.
Attempting to download commons-jelly-tags-velocity-20030303.205659.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-velocity-20030303.205659.jar]: java.net.ConnectException: Connection timed out: connec
WARNING: Failed to download commons-jelly-tags-velocity-20030303.205659.jar.
Attempting to download commons-jelly-tags-xml-20040613.030723.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-jelly/jars/commons-jelly-tags-xml-20040613.030723.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download commons-jelly-tags-xml-20040613.030723.jar.
Attempting to download commons-logging-1.0.3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download commons-logging-1.0.3.jar.
Attempting to download velocity-1.4-dev.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/velocity/jars/velocity-1.4-dev.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download velocity-1.4-dev.jar.
Attempting to download velocity-dvsl-0.45.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/velocity-dvsl/jars/velocity-dvsl-0.45.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download velocity-dvsl-0.45.jar.
Attempting to download xml-apis-1.0.b2.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/xml-apis/jars/xml-apis-1.0.b2.jar]: java.net.ConnectException: Connection timed out: connect
WARNING: Failed to download xml-apis-1.0.b2.jar.
The build cannot continue because of the following unsatisfied dependencies:
dom4j-1.4-dev-8.jar
commons-jelly-20030902.160215.jar
commons-jelly-tags-jsl-20030211.143151.jar
commons-jelly-tags-log-20030211.142821.jar
commons-jelly-tags-velocity-20030303.205659.jar
commons-jelly-tags-xml-20040613.030723.jar (try downloading from http://jakarta.apache.org/commons/jelly/libs/xml/)
commons-logging-1.0.3.jar
velocity-1.4-dev.jar
velocity-dvsl-0.45.jar
xml-apis-1.0.b2.jar
Total time: 3 minutes 35 seconds
Finished at: Thu Aug 25 12:12:38 IST 2005
========================================================
Somebody pls help me out in solving this.
Thanks in advance.
Regards,
VenkatHi there -
I inherited a project that uses Maven to compile a jar file. I have downloaded and installed V1.0.2 and have followed the steps and verified that it was installed correctly. I have even connected it to the existing repository on a share drive. When I attempt to run Maven for the first time, I get an error indicating that it can not download particular jars from www.ibilio.org/maven/***/jar/***.jar
Below is partial output. I have verified that these files do exist already in our central repository and I'm starting to think I need to set the proxy settings. I can not find the file in which I should update. Am I crazy???
Here is the error message:
C:\EPS\resources>maven project.xml
| \/ |__ Apache_ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
Attempting to download log4j-1.2.8.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/log4j/jars/log4j-1.
2.8.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download log4j-1.2.8.jar.
Attempting to download junit-3.8.1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/junit/jars/junit-3.
8.1.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download junit-3.8.1.jar.
Attempting to download ant-1.5.3-1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/ant/jars/ant-1.5.3-
1.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download ant-1.5.3-1.jar.
Attempting to download jdbc2_0-stdext.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/jdbc/jars/jdbc2_0-s
tdext.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download jdbc2_0-stdext.jar.
Attempting to download 8171classes12.zip.
Error retrieving artifact from [http://www.ibiblio.org/maven/jdbc/jars/8171class
es12.zip]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download 8171classes12.zip.
Attempting to download pg73jdbc3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/jdbc/jars/pg73jdbc3
.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download pg73jdbc3.jar.
Attempting to download commons-digester-1.4.1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-digester/ja
rs/commons-digester-1.4.1.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download commons-digester-1.4.1.jar.
Attempting to download commons-collections-2.1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-collections
/jars/commons-collections-2.1.jar]: java.net.UnknownHostException: www.ibiblio.o
rg
WARNING: Failed to download commons-collections-2.1.jar.
Attempting to download commons-logging-1.0.3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-logging/jar
s/commons-logging-1.0.3.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download commons-logging-1.0.3.jar.
Attempting to download commons-beanutils-1.6.1.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/commons-beanutils/j
ars/commons-beanutils-1.6.1.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download commons-beanutils-1.6.1.jar.
Attempting to download ldap.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/novell-ldap/jars/ld
ap.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download ldap.jar.
Attempting to download utilities.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/novell-ldap/jars/ut
ilities.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download utilities.jar.
Attempting to download xerces-1.4.4.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/xerces/jars/xerces-
1.4.4.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download xerces-1.4.4.jar.
Attempting to download servlet-2.3.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/servlet/jars/servle
t-2.3.jar]: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download servlet-2.3.jar.
Attempting to download mail.jar.
Error retrieving artifact from [http://www.ibiblio.org/maven/mail/jars/mail.jar]
: java.net.UnknownHostException: www.ibiblio.org
WARNING: Failed to download mail.jar.
The build cannot continue because of the following unsatisfied dependencies:
log4j-1.2.8.jar
junit-3.8.1.jar
ant-1.5.3-1.jar (try downloading from http://jakarta.apache.org/regexp/)
jdbc2_0-stdext.jar
8171classes12.zip
pg73jdbc3.jar
commons-digester-1.4.1.jar (try downloading from http://jakarta.apache.org/commons/)
commons-collections-2.1.jar (try downloading from http://jakarta.apache.org/commons/)
commons-logging-1.0.3.jar (try downloading from http://jakarta.apache.org/commons/)
commons-beanutils-1.6.1.jar (try downloading from http://jakarta.apache.org/commons/)
ldap.jar
utilities.jar
xerces-1.4.4.jar (try downloading from http://xml.apache.org/xerces2-j/)
servlet-2.3.jar
mail.jar
Total time: 6 seconds
Finished at: Thu Oct 27 09:46:39 EDT 2005 -
FlexPMD maven plugin no longer useable with Maven due to imcompatible binaries?
I am using Maven 2.2.1 with FlexPMD 1.2 and Flexmojos 3.7.1, with the maven-site-plugin 3.0
I get the following error:
[INFO] [site:site {execution: default-site}]
[FATAL ERROR] org.apache.maven.plugins.site.SiteMojo#execute() caused a linkage
error (java.lang.AbstractMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.apache.maven.plugins:maven
-site-plugin:3.0]
urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plugins/mav
en-site-plugin/3.0/maven-site-plugin-3.0.jar
urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/reporting/m
aven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
urls[2] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-u
tils/1.5.10/plexus-utils-1.5.10.jar
urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/maven-setti
ngs-builder/3.0/maven-settings-builder-3.0.jar
urls[4] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/velocity
/1.5/velocity-1.5.jar
urls[5] = file:/C:/dreammachine/cache/m2/repository/commons-collections/commons-
collections/3.2.1/commons-collections-3.2.1.jar
urls[6] = file:/C:/dreammachine/cache/m2/repository/commons-lang/commons-lang/2.
5/commons-lang-2.5.jar
urls[7] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[8] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.5/veloci
ty-1.5.jar
urls[9] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxia
-core/1.2/doxia-core-1.2.jar
urls[10] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2.9.1/xer
cesImpl-2.9.1.jar
urls[11] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1.3.04/xm
l-apis-1.3.04.jar
urls[12] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h
ttpclient/4.0.2/httpclient-4.0.2.jar
urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomponents/h
ttpcore/4.0.1/httpcore-4.0.1.jar
urls[14] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commons-codec
/1.3/commons-codec-1.3.jar
urls[15] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-apt/1.2/doxia-module-apt-1.2.jar
urls[17] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
urls[18] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-module-fml/1.2/doxia-module-fml-1.2.jar
urls[19] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servlet-api/2
.5/servlet-api-2.5.jar
urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-decoration-model/1.2/doxia-decoration-model-1.2.jar
urls[21] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/doxia/doxi
a-site-renderer/1.2/doxia-site-renderer-1.2.jar
urls[22] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[23] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
velocity/1.1.8/plexus-velocity-1.1.8.jar
urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/shared/mav
en-doxia-tools/1.4/maven-doxia-tools-1.4.jar
urls[25] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-io/1.4/c
ommons-io-1.4.jar
urls[26] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
archiver/1.0/plexus-archiver-1.0.jar
urls[27] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/plexus-
io/1.0/plexus-io-1.0.jar
urls[28] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty/6.1
.25/jetty-6.1.25.jar
urls[29] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/jetty-uti
l/6.1.25/jetty-util-6.1.25.jar
urls[30] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/servlet-a
pi/2.5-20081211/servlet-api-2.5-20081211.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/dreammachine/tools/m2/lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.AbstractMethodError
at org.apache.maven.plugins.site.AbstractSiteRenderingMojo.getReports(Ab
stractSiteRenderingMojo.java:246)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:121)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
If I revert to maven-site-plugin 2.1 this issue disappears, but I then get the error reported here:
https://issues.sonatype.org/browse/FLEXMOJOS-310?page=com.atlassian.jira.plugin.system.iss uetabpanels:comment-tabpanel#issue-tabs
If I migrate to maven 3.0.3 with maven-site-plugin 3.0 I get the following error:
[INFO] configuring report plugin com.adobe.ac:flex-pmd-maven-plugin:1.2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:31.730s
[INFO] Finished at: Tue Sep 27 17:21:49 BST 2011
[INFO] Final Memory: 21M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:si
te (default-site) on project cafe-parsley: Execution default-site of goal org.ap
ache.maven.plugins:maven-site-plugin:3.0:site failed: An API incompatibility was
encountered while executing org.apache.maven.plugins:maven-site-plugin:3.0:site
: java.lang.AbstractMethodError: null
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.maven.plugins:maven-site-plugin:3.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/plu
gins/maven-site-plugin/3.0/maven-site-plugin-3.0.jar
[ERROR] urls[1] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep
orting/maven-reporting-exec/1.0.1/maven-reporting-exec-1.0.1.jar
[ERROR] urls[2] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/rep
orting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
[ERROR] urls[3] = file:/C:/dreammachine/cache/m2/repository/org/apache/velocity/
velocity/1.5/velocity-1.5.jar
[ERROR] urls[4] = file:/C:/dreammachine/cache/m2/repository/oro/oro/2.0.8/oro-2.
0.8.jar
[ERROR] urls[5] = file:/C:/dreammachine/cache/m2/repository/velocity/velocity/1.
5/velocity-1.5.jar
[ERROR] urls[6] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/aether/
aether-util/1.7/aether-util-1.7.jar
[ERROR] urls[7] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si
su-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
[ERROR] urls[8] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/sisu/si
su-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
[ERROR] urls[9] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus/
plexus-interpolation/1.14/plexus-interpolation-1.14.jar
[ERROR] urls[10] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[11] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus
/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[12] = file:/C:/dreammachine/cache/m2/repository/org/sonatype/plexus
/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[13] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar
[ERROR] urls[14] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-logging-api/1.2/doxia-logging-api-1.2.jar
[ERROR] urls[15] = file:/C:/dreammachine/cache/m2/repository/junit/junit/3.8.1/j
unit-3.8.1.jar
[ERROR] urls[16] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-core/1.2/doxia-core-1.2.jar
[ERROR] urls[17] = file:/C:/dreammachine/cache/m2/repository/xerces/xercesImpl/2
.9.1/xercesImpl-2.9.1.jar
[ERROR] urls[18] = file:/C:/dreammachine/cache/m2/repository/xml-apis/xml-apis/1
.3.04/xml-apis-1.3.04.jar
[ERROR] urls[19] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp
onents/httpclient/4.0.2/httpclient-4.0.2.jar
[ERROR] urls[20] = file:/C:/dreammachine/cache/m2/repository/org/apache/httpcomp
onents/httpcore/4.0.1/httpcore-4.0.1.jar
[ERROR] urls[21] = file:/C:/dreammachine/cache/m2/repository/commons-codec/commo
ns-codec/1.3/commons-codec-1.3.jar
[ERROR] urls[22] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar
[ERROR] urls[23] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-apt/1.2/doxia-module-apt-1.2.jar
[ERROR] urls[24] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-xdoc/1.2/doxia-module-xdoc-1.2.jar
[ERROR] urls[25] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar
[ERROR] urls[26] = file:/C:/dreammachine/cache/m2/repository/javax/servlet/servl
et-api/2.5/servlet-api-2.5.jar
[ERROR] urls[27] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar
[ERROR] urls[28] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/do
xia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar
[ERROR] urls[29] = file:/C:/dreammachine/cache/m2/repository/commons-collections
/commons-collections/3.2.1/commons-collections-3.2.1.jar
[ERROR] urls[30] = file:/C:/dreammachine/cache/m2/repository/org/apache/maven/sh
ared/maven-doxia-tools/1.4/maven-doxia-tools-1.4.jar
[ERROR] urls[31] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-archiver/1.0/plexus-archiver-1.0.jar
[ERROR] urls[32] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-io/1.0/plexus-io-1.0.jar
[ERROR] urls[33] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
[ERROR] urls[34] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-velocity/1.1.8/plexus-velocity-1.1.8.jar
[ERROR] urls[35] = file:/C:/dreammachine/cache/m2/repository/org/codehaus/plexus
/plexus-utils/1.5.10/plexus-utils-1.5.10.jar
[ERROR] urls[36] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j
etty/6.1.25/jetty-6.1.25.jar
[ERROR] urls[37] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/s
ervlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
[ERROR] urls[38] = file:/C:/dreammachine/cache/m2/repository/org/mortbay/jetty/j
etty-util/6.1.25/jetty-util-6.1.25.jar
[ERROR] urls[39] = file:/C:/dreammachine/cache/m2/repository/commons-lang/common
s-lang/2.5/commons-lang-2.5.jar
[ERROR] urls[40] = file:/C:/dreammachine/cache/m2/repository/commons-io/commons-
io/1.4/commons-io-1.4.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[project>com.jpmorgan.ib.arch
itecture.deia.app:cafe-parsley:1.0-SNAPSHOT, parent: ClassRealm[maven.api, paren
t: null]]]
[ERROR]
[ERROR] -----------------------------------------------------
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContaine
Thus it seems FlexPMD can no longer be used with Maven due to some sort of binary incompatibility issue...
Does anyone know how to resolve this issue?Hooray, I got to the bottom of issue.
Basically the flex PMD maven plugin is broken at version 1.2 with more recent version of maven-site-plugin. This is because of a new abstract method introduced to the class AbstractMavenReport - canGenerateReport();
This method isn't implemented in the FlexPmdMojo and FlexPmdReportMojo classes on the SVN trunk or in flexPMD 1.2 and was causing >mvn site to fail as outlined above. Add implementations of this method, returning true in both classes and the plugin works again!
Note the method also needs to be added to the relevant Mojo and ReportMojo classes for the FlexMetrics and CPD maven plugins to get them working too.
Flex PMD commiters - please release a new version of the project to resolve this showstopper! -
Hi All.
am trying to mount the application which is present in some module named x, am using Maven projects here, so for my mounting the app am using shell script and i have given path of the application which is present in module x. If a try to run the test from the class where this mounting method is present its being compiled and am getting results properly, but when i used this mounting method in some other test class and ran the test, its saying no such file present, i know this looks something starnge, but am facing this issue, pls guide how to overcome the same.
do shell script "hdiutil mount ../../common/src/main/resources/Modulex/AdbeRdr11000_en_US.dmg"I just want to point out for anyone else who may be confused on this point that the 'mount' verb is undocumented for hdiutil (at least in 10.7). The correct verb to use is 'attach' as in hdiutil attach ../common/src/main/resources/Modulex/AdbeRdr11000_en_US.dmg - 'mount' is probably a compatability verb aimed at people used to linux or standard unix.
I was surprised 'mount' worked at all, really, but there you go. -
12c SOA composite deployment issue using maven
I am facing issue with 12c SOA composite deployment using maven. I execute the below command for deploying any composite. (Note: Update and run init.cmd file before running the below maven command)
mvn pre-integration-test –f soa-pom.xml –Dcomposite.name=TestSOAProj –Dcomposite.version=1.1
Issues:
As seen above, I specified composite version to be deployed as 1.1 in pom.xml file, but maven deploys the composite with version that is present in composite.xml. It does build the jar file with the version specified in the pom i.e. TestSOAProj_rev1.1.jar, but when it deploys I see the composite with version as 1.0 (this version is in composite.xml). The out of the box maven script is not overwriting the revision in the composite.xml with the value specified in the pom file.
Also, is there a way to pass the partition name as an user input parameter in the pom file. I tried this with the out of the box pom file by giving the partition name as something other than ‘default’, but the maven script ignores this and always deploys to ‘default’.
I am not sure if I am missing anything here. Please suggest.
inti.cmd:
SET JAVA_HOME=D:\12c-Installation-Path\Java\jdk1.7.0_60
SET ANT_HOME=D:\12c-Installation-Path\Oracle\Middleware\Oracle_Home\oracle_common\modules\org.apache.ant_1.9.2
SET M2_HOME=D:\12c-Installation-Path\Oracle\Middleware\Oracle_Home\oracle_common\modules\org.apache.maven_3.0.5
SET PATH=%PATH%;%JAVA_HOME%\bin;%M2_HOME%\bin;%ANT_HOME%\bin
soa-pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--
This POM was automatically generated during SOA project creation.
This POM relates to this SOA Composite, i.e. the one in this same directory.
There is another POM in the SOA Application directory which handles
the whole SOA Application, which may contain additional projects.
-->
<modelVersion>4.0.0</modelVersion>
<groupId>TestSOAApp</groupId>
<artifactId>${composite.name}</artifactId>
<version>${composite.version}</version>
<packaging>sar</packaging>
<!--
The parent points to the common SOA parent POM. That is a special POM that is
shipped by Oracle as a point of customization (only). You can add default values
for properties like serverUrl, etc. to the SOA common parent POM, so that you
do not have to specify them over and over in every project POM.
-->
<!--<parent>
<groupId>com.oracle.soa</groupId>
<artifactId>sar-common</artifactId>
<version>12.1.3-0-0</version>
</parent>-->
<properties>
<!-- These parameters are used by the compile goal -->
<code.basedir>${soa.app.source}/${project.artifactId}</code.basedir>
<scac.input.dir>${code.basedir}/SOA</scac.input.dir>
<scac.output.dir>${project.basedir}/target</scac.output.dir>
<scac.input>${scac.input.dir}/composite.xml</scac.input>
<scac.output>${scac.output.dir}/out.xml</scac.output>
<scac.error>${scac.output.dir}/error.txt</scac.error>
<scac.displayLevel>1</scac.displayLevel>
<!-- if you are using a config plan, uncomment the following line and update to point
to your config plan -->
<configplan>${code.basedir}/${project.artifactId}_cfgplan.xml</configplan>
<!-- These parameters are used by the deploy and undeploy goals -->
<composite.name>${project.artifactId}</composite.name>
<composite.revision>${project.version}</composite.revision>
<composite.partition>default</composite.partition>
<serverUrl>http://${target.hostname}:${target.port}</serverUrl>
<!--user>weblogic</user>
<password>${pwd}</password-->
<overwrite>true</overwrite>
<forceDefault>true</forceDefault>
<regenerateRulebase>false</regenerateRulebase>
<keepInstancesOnRedeploy>false</keepInstancesOnRedeploy>
<!--<jndi.properties.input>UNDEFINED</jndi.properties.input>-->
<scatest.result>${scac.output.dir}/testResult</scatest.result>
<!-- input is the name of the composite to run test suties against -->
<input>${project.artifactId}</input>
<!--<scac.ant.buildfile>${env.MW_HOME}/soa/bin/ant-sca-compile.xml</scac.ant.buildfile>
<sca.ant.testfile>${env.MW_HOME}/soa/bin/ant-sca-test.xml</sca.ant.testfile>
-->
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>build-${env}.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>read-input</id>
<phase>prepare-package</phase>
<inherited>false</inherited>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="fmw.app.basedir" value="${soa.app.source}" />
<property name="fmw.composite.name" value="${project.artifactId}" />
<property name="configplan.target.path" value="${scac.output.dir}" />
<ant antfile="${project.basedir}/replace-tokens.xml" target="replaceConfig" />
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.oracle.soa.plugin</groupId>
<artifactId>oracle-soa-plugin</artifactId>
<version>12.1.3-0-0</version>
<configuration>
<compositeName>${project.artifactId}</compositeName>
<composite>${scac.input}</composite>
<sarLocation>${scac.output.dir}/sca_${project.artifactId}_rev${composite.revision}.jar</sarLocation>
<serverUrl>${serverUrl}</serverUrl>
<user>{}</user>
<password>{}</password>
<!-- Note: compositeRevision is needed to package, revision is needed to undeploy -->
<compositeRevision>${composite.revision}</compositeRevision>
<revision>${composite.revision}</revision>
<scacInputDir>${scac.input.dir}</scacInputDir>
<input>${input}</input>
<!--<appHome>${soa.app.source}</appHome>
<oracleHome>${oracle.home}/soa</oracleHome>
<configplan>${scac.output.dir}/${project.artifactId}_cfgplan_generated.xml</configplan>-->
</configuration>
<!-- extensions=true is needed to use the custom sar packaging type -->
<extensions>true</extensions>
</plugin>
</plugins>
</build>
</project>
replace-tokens.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<project name="EA_SOA_Build" default="replaceConfig">
<target name="replaceConfig">
<echo>Replacing tokens in configuration file</echo>
<!-- Following logic copies the dev deployment plan and generates one to meet the target environment. -->
<delete failonerror="true" file="${fmw.app.basedir}/${fmw.composite.name}/${fmw.composite.name}_cfgplan_generated.xml"/>
<copy overwrite="true" failonerror="true"
file ="${fmw.app.basedir}/${fmw.composite.name}/${fmw.composite.name}_cfgplan.xml"
tofile="${configplan.target.path}/${fmw.composite.name}_cfgplan_generated.xml"/>
<replace file="${configplan.target.path}/${fmw.composite.name}_cfgplan_generated.xml">
<!-- replace filter for soa source and target endpoints. -->
<replacefilter token="dmnh1i.manheim.com" value="dmnh2i.manheim.com" />
</replace>
</target>
</project>
build-local.properties:
soa.app.source=D:/Oracle_SOA12c13/Jdev_mywork/OVCApp
mds.outer.dir=D:/Oracle_SOA12c13/Jdev_mywork/OVCApp/MDS
target.hostname=localhost
target.port=7001
oracle.home=D:/Oracle_SOA12c13/Middleware/Oracle_Homehi,
Can i pass multiple composite name like
mvn pre-integration-test –f soa-pom.xml –Dcomposite.name=TestSOAProj –Dcomposite.name2="xxx"
can you please suggest me for same.
Hint- passing project1,project2..... -
RSA Keypair cannot be generated in javacard ?
Hello
I got a problem about how to generate a RSA keypair in JAVACARD, I tried many different parametres, but I cannot install my applet in my emulator.
public class RSAencry extends Applet {
RSAPrivateKey rsa_PrivateKey;
RSAPublicKey rsa_PublicKey;
KeyPair rsa_KeyPair;
Cipher cipherRSA;
//private byte buffer[];
//byte TheBuffer[];
final short dataOffset = (short) ISO7816.OFFSET_CDATA;
//constructor
private RSAencry()
//generate own rsa_keypair
//rsa_KeyPair = new KeyPair( KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_2048 );
//super();
try
//TheBuffer = new byte[100];
rsa_KeyPair = new KeyPair( KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_512 );
//rsa_PublicKey.setExponent (TheBuffer, (short)0, (short)1);
rsa_KeyPair.genKeyPair();
rsa_PublicKey = (RSAPublicKey) rsa_KeyPair.getPublic();
//rsa_PrivateCrtKey = (RSAPrivateCrtKey) rsa_KeyPair.getPrivate();
rsa_PrivateKey = (RSAPrivateKey) rsa_KeyPair.getPrivate();
//buffer = new byte[2048];
cipherRSA = Cipher.getInstance(Cipher.ALG_RSA_PKCS1, false);
}catch (CryptoException ex){
ISOException.throwIt((short) (ex.getReason()));
//register(bArray, (short) (bOffset), bArray[bOffset]);
public static void install(byte[] bArray, short bOffset, byte bLength) {
// GP-compliant JavaCard applet registration
new RSAencry().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
public void process(APDU apdu) {
// Good practice: Return 9000 on SELECT
if (selectingApplet()) {
return;
byte[] buf = apdu.getBuffer();
switch (buf[ISO7816.OFFSET_INS]) {
case (byte) 0x00:
break;
default:
// good practice: If you don't know the INStruction, say so:
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
}The log shows as below:
(2233 usec)
<= 00 90 00 ...
Status: No Error
Load report:
1358 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID 6
+ applet AIDs 15
+ classes 17
+ methods 138
+ statics 0
+ exports 0
overall 176 bytes
cm> install -i 525341656e637279 -q C9#() 525341656e63 525341656e637279
=> 80 E6 0C 00 1F 06 52 53 41 65 6E 63 08 52 53 41 ......RSAenc.RSA
65 6E 63 72 79 08 52 53 41 65 6E 63 72 79 01 00 encry.RSAencry..
02 C9 00 00 00 .....
(122771 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
I almost removed all other codes, but it still can not intalled in card emulator.
Does anyone can tell me that's why?
Edited by: 949003 on 2012-8-3 上午8:05
Edited by: 949003 on 2012-8-3 上午8:07Thanks Shane
I even removed those senteces.
public class RSAencry extends Applet {
private KeyPair rsa_KeyPair;
Cipher cipherRSA;
//constructor
private RSAencry()
try
new KeyPair( KeyPair.ALG_RSA, KeyBuilder.LENGTH_RSA_2048 );
rsa_KeyPair.genKeyPair();
}catch (CryptoException ex){
ISOException.throwIt((short) (ex.getReason()));
//register(bArray, (short) (bOffset), bArray[bOffset]);
public static void install(byte[] bArray, short bOffset, byte bLength) {
// GP-compliant JavaCard applet registration
new RSAencry().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
public void process(APDU apdu) {
// Good practice: Return 9000 on SELECT
if (selectingApplet()) {
return;
byte[] buf = apdu.getBuffer();
switch (buf[ISO7816.OFFSET_INS]) {
case (byte) 0x00:
break;
default:
// good practice: If you don't know the INStruction, say so:
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
}and I still got this log
Status: No Error
Load report:
1089 bytes loaded in 0.0 seconds
effective code size on card:
+ package AID 6
+ applet AIDs 15
+ classes 17
+ methods 101
+ statics 0
+ exports 0
overall 139 bytes
cm> install -i 525341656e637279 -q C9#() 525341656e63 525341656e637279
=> 80 E6 0C 00 1F 06 52 53 41 65 6E 63 08 52 53 41 ......RSAenc.RSA
65 6E 63 72 79 08 52 53 41 65 6E 63 72 79 01 00 encry.RSAencry..
02 C9 00 00 00 .....
(7334 usec)
<= 6A 80 j.
Status: Wrong data
jcshell: Error code: 6a80 (Wrong data)
jcshell: Wrong response APDU: 6A80
Unexpected error; aborting execution
Maybe you are looking for
-
Iphoto is unable to upload my new photo book in the store for printing. I have done it several times withouth problems. Keeps giving me the same error message "...failed asset upload...cancel order or try again". tried 10 times. Also done preview and
-
hi could anybody please check how it works in JS or AS - what do you get in XML structure - what is tagged - when you try to MarkUp character containing InLine graphic ? or Text object containing only one "character" - InLine graphics something like
-
can anyone please tell me the answer for following with bit of explanation What can be the possible entries the system can make during invoice verification if a valuated good receipt is defined for a purchase order with account assignment and there i
-
Hi Experts, I Have to design and create a B1 Form which will be having behavior like a Transaction Form .I have already developed some Addons with single matrix. But here I need 2 matrices but the Second Matrix will carry data specific to a single li
-
Error on 64bit Windoen 2008 Server
Hi Friends, I am running SAP B1 8.8 PL15, my AddOn is working fine on my laptop (32 bit Windows). I have compiled it with x86 CPU Config. But when i run it on my server which is 64bit it gives error "Object Reference Not Set to an Instance of an Obje