Technote

(troubleshooting)
Incorrect current working directory to start WCIM server
Problem(Abstract)
You see the following error message when you try to run wcimServer.sh or wcimServer.bat from a command window:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:219)
at java.lang.Thread.run(Thread.java:568)
Caused by: java.lang.ExceptionInInitializerError
at com.ibm.commerce.wc.migration.util.WCIMUtil.setConfigPath(WCIMUtil.java:236)
at com.ibm.commerce.wc.migration.server.WCIMServerImpl.main(WCIMServerImpl.java:70)
... 7 more
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission \D:\WC60\lib\jtopen.jar read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.net.URLClassLoader$5.run(URLClassLoader.java:770)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:321)
at java.net.URLClassLoader.getPermissions(URLClassLoader.java:768)
at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:204)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:475)
at java.net.URLClassLoader.access$500(URLClassLoader.java:109)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:848)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:389)
at java.net.URLClassLoader.findClass(URLClassLoader.java:371)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:106)
at java.lang.ClassLoader.loadClass(ClassLoader.java:572)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
at com.ibm.commerce.config.components.JNIAccess.<clinit>(JNIAccess.java:41)
... 9 more
java.security.AccessControlException: access denied (java.lang.RuntimePermission
shutdownHooks)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
at java.security.AccessController.checkPermission(AccessController.java:476)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:538)
at java.lang.Runtime.removeShutdownHook(Runtime.java:249)
at com.ibm.ws.bootstrap.WSLauncher.run(WSLauncher.java:230)
at java.lang.Thread.run(Thread.java:568)
Cause The current working directory was not WC_installDir/bin before invoking the command:

wcimServer.bat

wcimServer.sh Resolving the problem Change the current working directory to WC_installDir/bin before running the migration server command.
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce - Express Migration i5/OS, Linux, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
Commerce WebSphere Commerce Professional Edition Migration AIX, i5/OS, Linux, Solaris, Windows 6.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21237709