1 Reply Latest reply: Mar 6, 2013 8:10 AM by DFy RSS

    Webcenter Sites 11gR1 XMLPost Utility Windows Error

    991295
      Dear Sir(s),

      I am experiencing a problem in attempt to try an invoke the XMLPost utility in a Windows environment. the command line is as follows:

      java -Xmx512m -Dfile.encoding=UTF-8 -classpath
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-logging-1.1.1.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-httpclient-3.1.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-lang-2.4.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-codec-1.4.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-collections-3.1.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\commons-io-1.3.1.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\MSXML.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\cs.jar;
      C:\Kits\Sites11gR1\WEM\appserver\webapps\cs\WEB-INF\lib\cs-core.jar;
      C:\Sun\AppServer\lib\j2ee.jar COM.FutureTense.XML.Post.XMLPostMain -sSourcefile.xml -cConfigfile.ini

      Error returned:

      Exception in thread "main" java.lang.NoClassDefFoundError: C:\Sun\AppServer\lib\
      j2ee/jar
      Caused by: java.lang.ClassNotFoundException: C:\Sun\AppServer\lib\j2ee.jar
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      Could not find the main class: C:\Sun\AppServer\lib\j2ee.jar. Program will exit.

      Could this be a version issue? the version of j2eesdk is: 1_4_03

      I also verified the jar files specified in the documentation and found that the following were missing:
      commons-collections-3.1.jar
      commons-io-1.3.1.jar

      I have not had much luck in finding well documented reading materials online. Any advice/direction will be much appreciated. Many thanks in advance.

      D