Missing class com.sun.kvem.ktools.RunRetro for RetroGuard in WTK 2.5 ?

I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
The obfuscation class file can not be loaded.
com.sun.kvem.ktools.RunRetro
Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
Obfuscation failed.
then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
is that a bug? or anything i am missing?

I just download and try WTK2.5 today, I changed the file ktoos.properties to use Retroguard as the document said, the toolkit shown the following error message while building the app!
The obfuscation class file can not be loaded.
com.sun.kvem.ktools.RunRetro
Warning: java.lang.ClassNotFoundException: com.sun.kvem.ktools.RunRetro
Obfuscation failed.
then, I checked that ..\wtklib\ktools.zip does not contain the class com.sun.kvem.ktools.RunRetro, it just contains the class com.sun.kvem.ktools.RunPro for Proguard!
is that a bug? or anything i am missing?

Similar Messages

  • I am getting com.sun.kvem.ktools.ExecutionException error

    Below is the error that I get in the console while building the midlet in J2ME Wireless ToolKit 2.0
    Building "ParseXML"
    C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \187
    +import javax.microedition.midlet.*;*+
    *^*
    C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \191+
    *import javax.microedition.midlet.*;
    +^+
    +2 errors+
    com.sun.kvem.ktools.ExecutionException
    Build failed
    Below is the actual java code
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    //kxml imports
    import org.kxml.*;
    import org.kxml.parser.*;
    public class ParseXML extends MIDlet implements CommandListener {
    private Command exitCommand; // The exit command
    private Command displayXML; // On execution, it displays title and description
    // on phone screen
    private Display display; // The display for this MIDlet
    // UI Items for display of title and description on phone screen
    private static TextBox t;
    private static String textBoxString = "";
    // XML String
    private String xmlStr = "";
    public ParseXML() {
    display = Display.getDisplay( this );
    exitCommand = new Command( "Exit", Command.EXIT, 2 );
    displayXML = new Command( "XML", Command.SCREEN, 1 );
    // The XML String in form of RSS
    StringBuffer xmlString = new StringBuffer();
    xmlString.append("<?xml version=\"1.0\"?><!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"");
    xmlString.append("\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">");
    xmlString.append("<rss version=\"0.91\">");
    xmlString.append("<channel><title>Meerkat: An Open Wire Service</title>");
    xmlString.append("<link>http://meerkat.oreillynet.com</link>");
    xmlString.append("<description>Meerkat is a Web-based syndicated content reader based on RSS (\"Rich Site Summary\"). RSS is a fantastic, simple-yet-powerful syndication system rapidly gaining momentum.");
    xmlString.append("</description><language>en-us</language>");
    xmlString.append("</channel>");
    xmlString.append("</rss>");
    xmlStr = xmlString.toString();
    public void startApp() {
    // The textbox displays title and description from a RSS String
    t = new TextBox( "MIDlet XML", "kXML", 256, 0 );
    t.addCommand( exitCommand );
    t.addCommand( displayXML );
    t.setCommandListener( this );
    display.setCurrent( t );
    Pause is a no-op since there are no background activities or
    record stores that need to be closed.
    public void pauseApp() { }
    Destroy must cleanup everything not handled by the garbage collector.
    In this case there is nothing to cleanup.
    public void destroyApp(boolean unconditional) { }
    Respond to commands, including exit. On the exit command, cleanup
    and notify that the MIDlet has been destroyed.
    public void commandAction(Command c, Displayable s) {
    if ( c == exitCommand ) {
    destroyApp( false );
    notifyDestroyed();
    else if ( c == displayXML ) {
    try {
    viewXML();
    catch( Exception e ) {
    e.printStackTrace();
    // This function sets up kxml parser and calls traverse() to parse the whole XML String
    public void viewXML() throws IOException {
    try {
    byte[] xmlByteArray = xmlStr.getBytes();
    ByteArrayInputStream xmlStream = new
    ByteArrayInputStream( xmlByteArray );
    InputStreamReader xmlReader = new
    InputStreamReader( xmlStream );
    XmlParser parser = new XmlParser( xmlReader );
    try
    traverse( parser, "" );
    catch (Exception exc)
    exc.printStackTrace();
    return;
    catch ( IOException e ) {
    return ;
    } finally {
    return ;
    Traverses the XML file
    public static void traverse( XmlParser parser, String indent ) throws Exception
    boolean leave = false;
    String title = new String();
    String desc = new String();
    do {
    ParseEvent event = parser.read ();
    ParseEvent pe;
    switch ( event.getType() ) {
    // For example, <title>
    case Xml.START_TAG:
    // see API doc of StartTag for more access methods
    // Pick up Title for display
    if ("title".equals(event.getName()))
    pe = parser.read();
    title = pe.getText();
    // Pick up description for display
    if ("description".equals(event.getName()))
    pe = parser.read();
    desc = pe.getText();
    textBoxString = title + " " + desc;
    traverse( parser, "" ) ; // recursion call for each <tag></tag>
    break;
    // For example </title?
    case Xml.END_TAG:
    leave = true;
    break;
    // For example </rss>
    case Xml.END_DOCUMENT:
    leave = true;
    break;
    // For example, the text between tags
    case Xml.TEXT:
    break;
    case Xml.WHITESPACE:
    break;
    default:
    } while( !leave );
    t.setString( textBoxString );

    Below is the error that I get in the console while building the midlet in J2ME Wireless ToolKit 2.0
    Building "ParseXML"
    C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \187
    import javax.microedition.midlet.;
    ^
    C:\WTK20\apps\ParseXML\src\ParseXMLService.java:1: illegal character: \191
    import javax.microedition.midlet.;
    ^
    2 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed
    Below is the actual java code
    import javax.microedition.midlet.;
    import javax.microedition.lcdui.;
    import javax.microedition.io.;
    import java.io.;
    //kxml imports
    import org.kxml.;
    import org.kxml.parser.;
    public class ParseXML extends MIDlet implements CommandListener {
    private Command exitCommand; // The exit command
    private Command displayXML; // On execution, it displays title and description
    // on phone screen
    private Display display; // The display for this MIDlet
    // UI Items for display of title and description on phone screen
    private static TextBox t;
    private static String textBoxString = "";
    // XML String
    private String xmlStr = "";
    public ParseXML() {
    display = Display.getDisplay( this );
    exitCommand = new Command( "Exit", Command.EXIT, 2 );
    displayXML = new Command( "XML", Command.SCREEN, 1 );
    // The XML String in form of RSS
    StringBuffer xmlString = new StringBuffer();
    xmlString.append("<?xml version=\"1.0\"?><!DOCTYPE rss PUBLIC \"-//Netscape Communications//DTD RSS 0.91//EN\"");
    xmlString.append("\"http://my.netscape.com/publish/formats/rss-0.91.dtd\">");
    xmlString.append("<rss version=\"0.91\">");
    xmlString.append("<channel><title>Meerkat: An Open Wire Service</title>");
    xmlString.append("<link>http://meerkat.oreillynet.com</link>");
    xmlString.append("<description>Meerkat is a Web-based syndicated content reader based on RSS (\"Rich Site Summary\"). RSS is a fantastic, simple-yet-powerful syndication system rapidly gaining momentum.");
    xmlString.append("</description><language>en-us</language>");
    xmlString.append("</channel>");
    xmlString.append("</rss>");
    xmlStr = xmlString.toString();
    public void startApp() {
    // The textbox displays title and description from a RSS String
    t = new TextBox( "MIDlet XML", "kXML", 256, 0 );
    t.addCommand( exitCommand );
    t.addCommand( displayXML );
    t.setCommandListener( this );
    display.setCurrent( t );
    Pause is a no-op since there are no background activities or
    record stores that need to be closed.
    public void pauseApp() { }
    Destroy must cleanup everything not handled by the garbage collector.
    In this case there is nothing to cleanup.
    public void destroyApp(boolean unconditional) { }
    Respond to commands, including exit. On the exit command, cleanup
    and notify that the MIDlet has been destroyed.
    public void commandAction(Command c, Displayable s) {
    if ( c == exitCommand ) {
    destroyApp( false );
    notifyDestroyed();
    else if ( c == displayXML ) {
    try {
    viewXML();
    catch( Exception e ) {
    e.printStackTrace();
    // This function sets up kxml parser and calls traverse() to parse the whole XML String
    public void viewXML() throws IOException {
    try {
    byte[] xmlByteArray = xmlStr.getBytes();
    ByteArrayInputStream xmlStream = new
    ByteArrayInputStream( xmlByteArray );
    InputStreamReader xmlReader = new
    InputStreamReader( xmlStream );
    XmlParser parser = new XmlParser( xmlReader );
    try
    traverse( parser, "" );
    catch (Exception exc)
    exc.printStackTrace();
    return;
    catch ( IOException e ) {
    return ;
    } finally {
    return ;
    Traverses the XML file
    public static void traverse( XmlParser parser, String indent ) throws Exception
    boolean leave = false;
    String title = new String();
    String desc = new String();
    do {
    ParseEvent event = parser.read ();
    ParseEvent pe;
    switch ( event.getType() ) {
    // For example, <title>
    case Xml.START_TAG:
    // see API doc of StartTag for more access methods
    // Pick up Title for display
    if ("title".equals(event.getName()))
    pe = parser.read();
    title = pe.getText();
    // Pick up description for display
    if ("description".equals(event.getName()))
    pe = parser.read();
    desc = pe.getText();
    textBoxString = title " " desc;
    traverse( parser, "" ) ; // recursion call for each <tag></tag>
    break;
    // For example </title?
    case Xml.END_TAG:
    leave = true;
    break;
    // For example </rss>
    case Xml.END_DOCUMENT:
    leave = true;
    break;
    // For example, the text between tags
    case Xml.TEXT:
    break;
    case Xml.WHITESPACE:
    break;
    default:
    } while( !leave );
    t.setString( textBoxString );
    }

  • FileOutputStream , j2me, com.sun.kvem.ktools.ExecutionException

    Dear all,
    please check it out the original code below, can anyone explain to me the problem and solution? Thank you.
    import java.io.*;
    import java.util.*;
    import java.lang.Character;
    import java.io.OutputStream;
    public class engineConvertion{
         public engineConvertion(){}
    //write a string to output file in format utf8
    static void writeOutput(String str, String fname) {
    try {
    FileOutputStream fos = new FileOutputStream(fname);
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    } catch (IOException e) {
    e.printStackTrace();
    Here is the exception,
    Project settings saved
    Building "WMADemo"
    C:\Documents and Settings\Student\j2mewtk\2.5.2\apps\WMADemo\src\example\sms\engineConvertion.java:16: cannot find symbol
    symbol : class FileOutputStream
    location: class engineConvertion
    FileOutputStream fos = new FileOutputStream(fname);
    ^
    C:\Documents and Settings\Student\j2mewtk\2.5.2\apps\WMADemo\src\example\sms\engineConvertion.java:16: cannot find symbol
    symbol : class FileOutputStream
    location: class engineConvertion
    FileOutputStream fos = new FileOutputStream(fname);
    ^
    2 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed

    HI,
    Sorry, I dont understand your reply. What do u mean by it is a misunderstanding and that you are correct?

  • Com.sun.kvem.ktools.ExecutionException

    Hi,
    I am very new to j2me. I am currently working on my final year project and is using an open source program known as gcalsync. When i load the jar file into my mobile phone, it is able to work. However, when I run the program on my laptop, i encounter the following error. Please help, thanks..
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:5: class or interface expected
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:9: annotations are not supported in -source 1.3
    (use -source 5 or higher to enable annotations)
    by Greg Stein - mailto:[email protected] -->
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:9: class or interface expected
    by Greg Stein - mailto:[email protected] -->
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:71: <identifier> expected
    <table class="auto">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:75: generics are not supported in -source 1.3
    (use -source 5 or higher to enable generics)
    <tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: illegal start of type
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: illegal start of expression
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: '(' expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: ';' expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: <identifier> expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:76: <identifier> expected
    <td>Links to HEAD:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of type
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of type
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: > expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: illegal start of expression
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: ')' expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: <identifier> expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:78: <identifier> expected
    (view)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: > expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: <identifier> expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: illegal start of type
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:79: <identifier> expected
    (download)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: > expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: <identifier> expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: illegal start of type
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:81: <identifier> expected
    (annotate)
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:82: <identifier> expected
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:82: <identifier> expected
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:83: <identifier> expected
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:83: <identifier> expected
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: illegal start of type
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: illegal start of expression
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: '(' expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:88: <identifier> expected
    <td>Sticky Revision:</td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: illegal start of type
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: > expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: illegal start of expression
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: '(' expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: <identifier> expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: ';' expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:89: <identifier> expected
    <td><form method="get" action="/viewvc/gcalsync" style="display: inline">
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: > expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: ';' expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: <identifier> expected
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:90: illegal start of expression
    <input type="hidden" name="orig_pathtype" value="FILE" /><input type="hidden" name="orig_view" value="log" /><input type="hidden" name="orig_path" value="src/com/gcalsync/gcal/GCalClient.java" /><input type="hidden" name="view" value="redirect_pathrev" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: > expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: illegal start of expression
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: ';' expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: <identifier> expected
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:92: illegal start of expression
    <input type="text" name="pathrev" value="" size="6"/>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: > expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: illegal start of expression
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: <identifier> expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: ';' expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: <identifier> expected
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:94: illegal start of expression
    <input type="submit" value="Set" />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:95: illegal start of type
    </form>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:97: illegal start of type
    </td>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:98: illegal start of type
    </tr>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:99: illegal start of type
    </table>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:110: illegal start of expression
    <hr />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:110: illegal start of expression
    <hr />
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: > expected
    <a name="rev20"></a>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: illegal start of expression
    <a name="rev20"></a>
    ^
    C:\WTK2.5.1\apps\GCalSync\src\gcalsync\gcal\GCalClient.java:112: <identifier> expected
    <a name="rev20"></a>
    ^
    100 errors
    com.sun.kvem.ktools.ExecutionException
    Build failed

    HI,
    Sorry, I dont understand your reply. What do u mean by it is a misunderstanding and that you are correct?

  • No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Messag

    Hi,
    I am developing a soap web service using apache axis tool. I am using tomcat6 and jdk6. I need to return SOAPMessage as return object from remote interface methods. Now I have success fully deploy web service in tomcat. Also I have create client too, but when I am trying to call web service throw client then it show me a exception on client is
    org.xml.sax.SAXParseException: Premature end of file.
    and on server log, it show me this exception
    java.io.IOException:
    xisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.M
    ssage1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@98062f
    faultActor:
    faultNode:
    faultDetail:
           {http://xml.apache.org/axis/}stackTrace:java.io.IOException: No serializer found for class com.su
    .xml.messaging.saaj.soap.ver1_1.Message1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@
    8062f
           at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
           at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
           at org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
           at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
           at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
           at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
           at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
           at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
           at org.apache.axis.Message.writeTo(Message.java:539)
           at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:902)
           at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
           at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
    0)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:58
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:619)
           {http://xml.apache.org/axis/}hostname:EMRG-409964-L19
    ava.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl
    n registry org.apache.axis.encoding.TypeMappingDelegate@98062f
           at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
           at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:317)
           at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
           at org.apache.axis.Message.writeTo(Message.java:539)
           at org.apache.axis.transport.http.AxisServlet.sendResponse(AxisServlet.java:902)
           at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:777)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
           at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2
    0)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:58
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
           at java.lang.Thread.run(Thread.java:619)
    aused by: java.io.IOException: No serializer found for class com.sun.xml.messaging.saaj.soap.ver1_1.Mess
    ge1_1Impl in registry org.apache.axis.encoding.TypeMappingDelegate@98062f
           at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1507)
           at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:980)
           at org.apache.axis.encoding.SerializationContext.outputMultiRefs(SerializationContext.java:1055)
           at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:145)
           at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:478)
           at org.apache.axis.message.MessageElement.output(MessageElement.java:1208)
           at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
           ... 19 moreI have deploy new version of saa-impl.jar and saaj-api.jar too. And I also have deploy webservice-rt.jar too in server lib and application lib folder. but still this exception is there. I dont understand, how can I over come from this error. If some one have resolved this type of exception then please reply. Please reply me on [email protected]
    --Thanks in Advance
    Umashankar Adha
    Sr. Soft. Eng.
    United States

    FYI, now I'm in work:
    import javax.xml.namespace.*;
    import javax.xml.rpc.*;
    import javax.activation.*;
    import javax.mail.*;
    import com.sun.xml.messaging.saaj.*;
    -classpath D:\jwsdp-1.3\jaxp\lib\endorsed\dom.jar;D:\jwsdp-1.3\jaxp\lib\endorsed\xercesImpl.jar;D:\jwsdp-1.3\saaj\lib\saaj-impl.jar;D:\jwsdp-1.3\saaj\lib\saaj-api.jar;D:\jwsdp-1.3\jwsdp-shared\lib\activation.jar;D:\jwsdp-1.3\jwsdp-shared\lib\mail.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-api.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-impl.jar;D:\jwsdp-1.3\jaxrpc\lib\jaxrpc-spi.jar;D:\jwsdp-1.3\jwsdp-shared\lib\jax-qname.jar
    Those are what I had to use to get it working.
    Chris

  • Error in parsing: SAX2 driver class com.sun.xml.parser not found

    Hi I have this exception
    Error in parsing: SAX2 driver class com.sun.xml.parser not found
    when I try to run the examples from the book xml and java
    I have added the following jar files to the class path that i have download form java.sun.com
    xml.jar
    xalan.jar
    jaxp.jar
    crimson.jar
    Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");//
    I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
    THIS IS THE ALL CODE
    import java.io.IOException;
    import org.xml.sax.Attributes;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.ErrorHandler;
    import org.xml.sax.Locator;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.xml.sax.XMLReader;
    import org.xml.sax.helpers.XMLReaderFactory;
    import org.xml.sax.*;
    * <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
    * displaying the callbacks in the parsing lifecycle.
    * @author Brett McLaughlin
    * @version 1.0
    public class SAXParserDemo {
    * <p>
    * This parses the file, using registered SAX handlers, and output
    * the events in the parsing process cycle.
    * </p>
    * @param uri <code>String</code> URI of file to parse.
    public void performDemo(String uri) {
    System.out.println("Parsing XML File: " + uri + "\n\n");
    // Get instances of our handlers
    ContentHandler contentHandler = new MyContentHandler();
    ErrorHandler errorHandler = new MyErrorHandler();
    try {
    // Instantiate a parser
    XMLReader parser =
    XMLReaderFactory.createXMLReader(
    // "org.apache.xerces.parsers.SAXParser");
                        "com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
    // Register the content handler
    parser.setContentHandler(contentHandler);
    // Register the error handler
    parser.setErrorHandler(errorHandler);
    // Parse the document
    parser.parse(uri);
    } catch (IOException e) {
    System.out.println("Error reading URI: " + e.getMessage());
    } catch (SAXException e) {
    System.out.println("Error in parsing: " + e.getMessage());
    * <p>
    * This provides a command line entry point for this demo.
    * </p>
    public static void main(String[] args) {
    // if (args.length != 1) {
    // System.out.println("Usage: java SAXParserDemo [XML URI]");
    // System.exit(0);
    //String uri = args[0];
    SAXParserDemo parserDemo = new SAXParserDemo();
    parserDemo.performDemo("content.xml");
    * <b><code>MyContentHandler</code></b> implements the SAX
    * <code>ContentHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's content.
    class MyContentHandler implements ContentHandler {
    /** Hold onto the locator for location information */
    private Locator locator;
    * <p>
    * Provide reference to <code>Locator</code> which provides
    * information about where in a document callbacks occur.
    * </p>
    * @param locator <code>Locator</code> object tied to callback
    * process
    public void setDocumentLocator(Locator locator) {
    System.out.println(" * setDocumentLocator() called");
    // We save this for later use if desired.
    this.locator = locator;
    * <p>
    * This indicates the start of a Document parse - this precedes
    * all callbacks in all SAX Handlers with the sole exception
    * of <code>{@link #setDocumentLocator}</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void startDocument() throws SAXException {
    System.out.println("Parsing begins...");
    * <p>
    * This indicates the end of a Document parse - this occurs after
    * all callbacks in all SAX Handlers.</code>.
    * </p>
    * @throws <code>SAXException</code> when things go wrong
    public void endDocument() throws SAXException {
    System.out.println("...Parsing ends.");
    * <p>
    * This will indicate that a processing instruction (other than
    * the XML declaration) has been encountered.
    * </p>
    * @param target <code>String</code> target of PI
    * @param data <code>String</code containing all data sent to the PI.
    * This typically looks like one or more attribute value
    * pairs.
    * @throws <code>SAXException</code> when things go wrong
    public void processingInstruction(String target, String data)
    throws SAXException {
    System.out.println("PI: Target:" + target + " and Data:" + data);
    * <p>
    * This will indicate the beginning of an XML Namespace prefix
    * mapping. Although this typically occur within the root element
    * of an XML document, it can occur at any point within the
    * document. Note that a prefix mapping on an element triggers
    * this callback <i>before</i> the callback for the actual element
    * itself (<code>{@link #startElement}</code>) occurs.
    * </p>
    * @param prefix <code>String</code> prefix used for the namespace
    * being reported
    * @param uri <code>String</code> URI for the namespace
    * being reported
    * @throws <code>SAXException</code> when things go wrong
    public void startPrefixMapping(String prefix, String uri) {
    System.out.println("Mapping starts for prefix " + prefix +
    " mapped to URI " + uri);
    * <p>
    * This indicates the end of a prefix mapping, when the namespace
    * reported in a <code>{@link #startPrefixMapping}</code> callback
    * is no longer available.
    * </p>
    * @param prefix <code>String</code> of namespace being reported
    * @throws <code>SAXException</code> when things go wrong
    public void endPrefixMapping(String prefix) {
    System.out.println("Mapping ends for prefix " + prefix);
    * <p>
    * This reports the occurrence of an actual element. It will include
    * the element's attributes, with the exception of XML vocabulary
    * specific attributes, such as
    * <code>xmlns:[namespace prefix]</code> and
    * <code>xsi:schemaLocation</code>.
    * </p>
    * @param namespaceURI <code>String</code> namespace URI this element
    * is associated with, or an empty
    * <code>String</code>
    * @param localName <code>String</code> name of element (with no
    * namespace prefix, if one is present)
    * @param rawName <code>String</code> XML 1.0 version of element name:
    * [namespace prefix]:[localName]
    * @param atts <code>Attributes</code> list for this element
    * @throws <code>SAXException</code> when things go wrong
    public void startElement(String namespaceURI, String localName,
    String rawName, Attributes atts)
    throws SAXException {
    System.out.print("startElement: " + localName);
    if (!namespaceURI.equals("")) {
    System.out.println(" in namespace " + namespaceURI +
    " (" + rawName + ")");
    } else {
    System.out.println(" has no associated namespace");
    for (int i=0; i<atts.getLength(); i++)
    System.out.println(" Attribute: " + atts.getLocalName(i) +
    "=" + atts.getValue(i));
    * <p>
    * Indicates the end of an element
    * (<code></[element name]></code>) is reached. Note that
    * the parser does not distinguish between empty
    * elements and non-empty elements, so this will occur uniformly.
    * </p>
    * @param namespaceURI <code>String</code> URI of namespace this
    * element is associated with
    * @param localName <code>String</code> name of element without prefix
    * @param rawName <code>String</code> name of element in XML 1.0 form
    * @throws <code>SAXException</code> when things go wrong
    public void endElement(String namespaceURI, String localName,
    String rawName)
    throws SAXException {
    System.out.println("endElement: " + localName + "\n");
    * <p>
    * This will report character data (within an element).
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void characters(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("characters: " + s);
    * <p>
    * This will report whitespace that can be ignored in the
    * originating document. This is typically only invoked when
    * validation is ocurring in the parsing process.
    * </p>
    * @param ch <code>char[]</code> character array with character data
    * @param start <code>int</code> index in array where data starts.
    * @param end <code>int</code> index in array where data ends.
    * @throws <code>SAXException</code> when things go wrong
    public void ignorableWhitespace(char[] ch, int start, int end)
    throws SAXException {
    String s = new String(ch, start, end);
    System.out.println("ignorableWhitespace: [" + s + "]");
    * <p>
    * This will report an entity that is skipped by the parser. This
    * should only occur for non-validating parsers, and then is still
    * implementation-dependent behavior.
    * </p>
    * @param name <code>String</code> name of entity being skipped
    * @throws <code>SAXException</code> when things go wrong
    public void skippedEntity(String name) throws SAXException {
    System.out.println("Skipping entity " + name);
    * <b><code>MyErrorHandler</code></b> implements the SAX
    * <code>ErrorHandler</code> interface and defines callback
    * behavior for the SAX callbacks associated with an XML
    * document's errors.
    class MyErrorHandler implements ErrorHandler {
    * <p>
    * This will report a warning that has occurred; this indicates
    * that while no XML rules were "broken", something appears
    * to be incorrect or missing.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void warning(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Warning**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Warning encountered");
    * <p>
    * This will report an error that has occurred; this indicates
    * that a rule was broken, typically in validation, but that
    * parsing can reasonably continue.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void error(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Error encountered");
    * <p>
    * This will report a fatal error that has occurred; this indicates
    * that a rule has been broken that makes continued parsing either
    * impossible or an almost certain waste of time.
    * </p>
    * @param exception <code>SAXParseException</code> that occurred.
    * @throws <code>SAXException</code> when things go wrong
    public void fatalError(SAXParseException exception)
    throws SAXException {
    System.out.println("**Parsing Fatal Error**\n" +
    " Line: " +
    exception.getLineNumber() + "\n" +
    " URI: " +
    exception.getSystemId() + "\n" +
    " Message: " +
    exception.getMessage());
    throw new SAXException("Fatal Error encountered");

    I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!

  • Class com.ibm.jsse.be configured for a TrustManagerFactory : Help needed

    Hi
    I am getting the following runtime error when trying for a HTTPS connection from my java code.
    Runtime Error : Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory Action: 4 Class: com.americanexpress.teen.common.fis.FISInterface Method: getFISTestData(String fisURL) Exception:java.net.SocketException: Class com.ibm.jsse.be configured for a TrustManagerFactory: not a TrustManagerFactory
         at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bs.o(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.<init>(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.b.a(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.b(Unknown Source)
         at com.ibm.net.ssl.www.protocol.https.p.connect(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getInputStream(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getHeaderField(Unknown Source)
         at com.ibm.net.ssl.www.protocol.http.bw.getResponseCode(Unknown Source)
         at com.ibm.net.ssl.internal.www.protocol.https.HttpsURLConnection.getResponseCode(Unknown Source)
         at com.americanexpress.teen.common.fis.FISInterface.getFISTestData(FISInterface.java:2238)
         at org.apache.jsp._fisTestPage._jspService(_fisTestPage.java:112)
         at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
         at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
    My application is trying to a https://xyz.com from java code and i am getting the above exception.
    I tried connecting to "https://xyz.com " from my workspace via Websphere 5.1 server and my server is throwing the above exception. I have extened the ibmjsse provided by WAS 5.1 and using it for connecting to the HTTPS URL.
    I feel the above problem might be due to network issues. Please help me in resolving the same.
    Thanks in advance !!!!!

    Steps i have done to ensure the connectivity :
    Method A :
    1) I imported the pfx and CA certificates given by xyz.com in my web browser (IE)
    2) After that, I tried connecting to "https://xyz.com" from browser and getting a proper response.
    Method B :
    1) I updated the jre cacert with CA certificate given by xyz.com
    2) Loaded the pfx keystore from my java client code program and ran it as a java standalone code and got the proper response.
    My java code
    import java.io.*;
    import java.net.*;
    import javax.net.ssl.HttpsURLConnection;
    import javax.net.ssl.*;
    import java.security.*;
    import java.sql.Time;
    public class HTTPSConnect{
         public static void main(String[] args)
                   URL url;
                   StringBuffer buffer;
                   String line;
                   int responseCode=0;
                   HttpsURLConnection connection = null;
                   InputStream input;
                   BufferedReader dataInput;
                   //FIS Sample URL
                   String fisURL = "https://xyz.com";
                   String fisResp = "";
                   try
                   Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
                   System.setProperty("javax.net.debug", "all");
                   String path = "F:\\MyCertificate.pfx";
                   String type = "pkcs12";
                   String password = "abc123";
                   System.setProperty("javax.net.ssl.keyStoreType", type);
                   System.setProperty("javax.net.ssl.keyStore",path);
                   System.setProperty("javax.net.ssl.keyStorePassword",password);
                        url = new URL(fisURL);
                        //Create the connection
                        connection = (HttpsURLConnection) url.openConnection();
                        connection.setUseCaches(false);
                        //Get the response code for the HTTPS connection
                        responseCode = connection.getResponseCode();
                   if (200 == responseCode)
                        buffer = new StringBuffer();
                        //Getting the FIS Response XML using the Stream reader
                        input = connection.getInputStream();
                        dataInput = new BufferedReader(new InputStreamReader(input));
                             while ((line = dataInput.readLine()) != null)
                                  buffer.append(line);
                                  buffer.append('\n');
                        fisResp = (String) buffer.toString().trim();
                   else
                        System.out.println("HTTP Status-Code : " + responseCode);
                   catch (MalformedURLException mue)
                        System.out.println("Exception in URL : " + mue.getMessage() );
                        mue.printStackTrace();
                   catch (IOException ioe)
                        System.out.println("IO Exception : " + ioe.getMessage() );
                        ioe.printStackTrace();
                   catch (Exception e)
                        System.out.println("Exception : " + e.getMessage() );
                        e.printStackTrace();
                   System.out.println("FIX XML Response : " + fisResp);
                   System.out.println("Response Code of HTTPS Connection : " + responseCode);
    Please let me know if i am missing something :)

  • Sun VDI Web - Cant instantiate class: com.sun.vda.admin.AccordionBean..null

    Hi,
    I've installed VDI 3.1 on Solaris 10/09 in evaluation mode. I have absolutely no error during the install or the configuration. Once everything is completed, I can log locally on the VDA web console where I enter my username/password for root (the user that was used for the install). Once I do that, I have an "Internal Error Occured" that shows on the login page. If I click on the error log, I have the following:
    Error Details
    Here is a full stack trace of the error:org.apache.jasper.JasperException: javax.faces.FacesException: javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: com.sun.vda.admin.AccordionBean.. null
    at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    === reduced for clarity ===
    at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.FacesException: javax.faces.FacesException: javax.faces.FacesException: Cant instantiate class: com.sun.vda.admin.AccordionBean.. null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:216)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:211)
    at javax.faces.webapp.UIComponentClassicTagBase.createChildRight now, all the services are running and status are good. However, I can't create provider with the CLI neither. I receive the message that VDI is not running (even if it is) and that's even if I commented out the localhost IPV6.
    I saw that the VDI Demo is not supported in a VM. Is that why or it should work even if not supported? My current VM has 3 GB of RAM and 2 CPU allocated to it which seems appropriate for a demo.
    If you have any idea or if I missed something, please let me know.
    Thank you.
    fortine

    Try executing:
    vda-webadmin stop
    vda-service stop
    vda-service start
    vda-webadmin start
    IIRC this worked for me some time back. If it doesn't work for you, check the DB state with vda-db-status
    ~Thomas

  • Nested while defining class: com.sun.xml.ws.api.WSBinding ???

    Why is this happening, I am trying to access servlet, 2.4 on the Webshere 6.1, installation as succesfull and the servlet is running without exceptions.
      nested while defining class: com.sun.xml.ws.api.WSBinding
    This error indicates that the class: javax.xml.ws.Binding
    could not be located while defining the class: com.sun.xml.ws.api.WSBinding
    This is often caused by having the class at a higher point in the classloader hierarchy
    Dumping the current context classloader hierarchy:
        ==> indicates defining classloader
        *** indicates classloader where the missing class could have been found
    ==>[0]
    com.ibm.ws.classloader.CompoundClassLoader@51905190
       Local ClassPath: C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\classes;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\aopalliance-1.0.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\commons-logging-1.1.1.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxb-impl-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxb-xjc-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-rt-2.1.4.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-rt-2.1.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jaxws-spring-1.8.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jboss-j2ee.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\jremote.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\log4j-1.2.9.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.aop-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.asm-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.beans-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.context-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.core-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.expression-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.jms-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.transaction-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\org.springframework.web-3.0.1.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\spring-batch-infrastructure-2.1.0.RELEASE.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\stax-ex-1.2.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\streambuffer-0.7.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\TWSCore.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war\WEB-INF\lib\xbean-spring-3.4.3.jar;C:\Program Files\IBM\WebSphere\AppServer2\profiles\AppSrv01\installedApps\UKDSK-DBURFORD1Node02Cell\myappservelett2_4_again_war.ear\myappservelett2.4_again.war
       Delegation Mode: PARENT_FIRST
       [1] com.ibm.ws.classloader.JarClassLoader@777399894 Local Classpath:  Delegation mode: PARENT_FIRSTEdited by: romanshtekelman on Sep 9, 2010 7:34 AM

    For future reference...
    We followed the following instructions and created a shared lib.
    http://download.oracle.com/docs/cd/E12524_01/web.1013/e12290/opensrc.htm#BABDDAIF
    We resolved most of our class loading issues.
    BR//Bahman

  • SFTP with FTP Adapter - Missing class: com.maverick.ssh.SshTransport

    Hi,
    I am trying to use the SFTP with FTP Adapter for a project requirement.
    I have followed the steps as mentioned in the below link
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_file.htm#CACDFFFB
    Have configured the oc4j_ra.xml file, but after creating a sample BPEL process with the FTP adapter, got this error message in the log file.
    <2010-04-12 11:21:16,493> <FATAL> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Uncaught exception oracle.classloader.util.AnnotatedNoClassDefFoundError in JCA-work-instance:FTP Adapter-4 - cause:
    Missing class: com.maverick.ssh.SshTransport
    Dependent class: oracle.tip.adapter.ftp.SshImpl.SshImplFactory
    Loader: FtpAdapter:0.0.0
    Code-Source: /D:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/FtpAdapter/FtpAdapter/ftpAdapter.jar
    Configuration: <code-source> in D:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\FtpAdapter\FtpAdapter
    The missing class is not available from any code-source or loader in the system.
    I tried getting a trial licencse for the maverick SSH tool from http://www.3sp.com/requestEvaluation.do?productCode=MAVERICK as discussed in one of the threads, but it redirects to http://www.barracudanetworks.com/ns/products/sslvpn_overview.php
    Could anyone please help in this?
    OR
    Provide steps on how to use SFTP with FTP Adapter.
    Regards,
    Varun

    Hi,
    Thanks for the reply.
    As per client's requirement, we shouldn't be using java service for this functionality.
    And as you said, the oracle adapters are not taking anywhere, but guess have no other choice..
    Cheers,
    Varun

  • Preverification error: Cannot find class com/sun/perseus/model/Viewport

    Hi all,
    I have a (previously) working Midlet to which I have added one line as follows:
    SVGImage image = (SVGImage)SVGImage.createEmptyImage(null);
    - and imported the necessary from javax.microedition.m2g. (I am using the library that comes with the WTK, jsr226.jar).
    This builds, jars, obfuscates fine. But when I try to preverify (using Antenna's wtkpreverify) on the jar, it gives up in disgust very swiftly as follows:
    [wtkpreverify] Error preverifying class javax.microedition.m2g.ScalableGraphics
    [wtkpreverify] VERIFIER ERROR javax/microedition/m2g/ScalableGraphics.render(IILjavax/microedition/m2g/ScalableImage;)V:
    [wtkpreverify] Cannot find class com/sun/perseus/model/Viewport
    I'm using the WTK2.5.1ea and antenna 0.9.14, CLDC1.1, MIDP2.0...
    Many thanks for any ideas.

    Problem resolved simply by replacing jsr226.jar (as distributed with WTK2.5.1ea) with m2g.jar (as distributed with J2MEPolish).

  • Taskdef [b]class com.sun.xml.rpc.tools.ant.Wscompile cannot be found[/b]

    Hi everybody,
    I m new in developing web service.
    I am using NetBeans IDE 4.1 EA2 for developing web service.
    I have created a sample jaxrpc web service. When i build project it gives me error that:taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found.
    This error is contain in the file build-impl.xml which is referred by build.xml file.
    netbeans ide uses ant tool for compiling, building & deploying web service.
    All the xml files are automatically generated by netbeans ide.
    Please help me with this...
    Thanx in advance..
    Nirav Patel.

    You'll need to add jaxrpc-impl.jar to your
    classpath.
    You can find it under %JWSDP_HOME%\jaxrpc\lib
    If you haven't got JWSDP then try
    http://java.sun.com/webservices/downloads/webservicesp
    ack.htmlhello...
    i want to add jaxepc-impl.jar to classpath.
    i got the same problem.
    i check the user variable c:\sun\jwsdp-1.6\jwsdp_shared\bin;c:\sun\jwsdp-1.6\jwsdp_shared\bin
    have been there.
    but still the same error appear in the netbeans.
    i hope can't get the one-by-one steps guidelines from u.
    thanks

  • JNDI: Can't find Class com.sun.jndi.nis.NISCtxFactory

    Hi
    I searched this forum for similar problems .. and I also found some, but this questions were either not be answered or not detailed enough.
    Now to my question. I've got a Java File that I imported to Oracle (I use it from PL/SQL). This Java File contains following code.
    static Properties = System.getProperties();
    env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.nis.NISCtxFactory");
    env.put(Context.PROVIDER_URL, "nis://disney/geo.unizh.ch");
    Context ctx = new InitialContext(env);
    And if I run it from oracle(PL/SQL) I get the error below.
    javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.nis.NISCtxFactory. Root exception is java.lang.ClassNotFoundException: com/sun/jndi/nis/NISCtxFactory
    at java.lang.Class.forName0(Class.java)
    at java.lang.Class.forName(Class.java)
    at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java)
    at javax.naming.InitialContext.init(InitialContext.java)
    at javax.naming.InitialContext.<init>(InitialContext.java)
    at GIUZContext.getCtx(GIUZContext:42)
    at CheckPwd.check(CheckPwd:18)
    The nis.jar I imported with the loadjava, so actuallay should it be in the database. But why it cant find this class (NISCtxFactory)!
    I get no error if I use this code ->
    NISCtxFactory test = new NISCtxFactory();
    System.out.println(test);
    It would be very nice if you could give me some clues. TNX!!
    Oracle Version 8.1.7.
    Cyrill

    Hi Cyrill,
    I don't know what other postings you have read, and I also don't
    know why they were insufficient for you, so excuse me if I repeat
    things you already know.
    As far as I know, the error message you are getting is most probably
    due to one of the following three causes:
    1. The class is not loaded into the database.
    2. The class is loaded but is not "valid".
    3. You don't have permission to access the class.
    To the best of my memory, there have been several posts to either
    this forum or the "Products > Database > JVM" forum
    http://forums.oracle.com/forums/forum.jsp?id=424322
    that (in my opinion) sufficiently explain how to resolve the problem
    for each of the three causes listed above.
    Personally, I believe that the Oracle documentation sufficiently
    explains how to resolve the above three issues, and I have posted
    the URLs for the relevant Oracle documentation several times already.
    I am guessing that you are trying to "talk" to an EJB (probably deployed
    in SUN's application server) from a java stored procedure in the Oracle
    database. If that is the case, then that question has been discussed
    many times in this forum. Perhaps you can say why those discussions
    were not sufficiently helpful for you.
    Hope this helps.
    Good Luck,
    Avi.

  • Com.sun.kvem.midletsuite.InvalidJadException: Reason = 13 error!

    I get this error in WTK2.1 while trying to create package. Even the demos cannot be packaged.
    The exact error is:
    com.sun.kvem.midletsuite.InvalidJadException: Reason = 13
    The file C:\WTK21\apps\photoalbum\bin\MANIFEST.MF is missing the required attribute: MIDlet-Name
    The parameters are correctly set in Settings (the program above is a demo packaged with WTK2.1)
    Any help is appreciated. I use Windows XP.

    strange, check if the manifest looks like this one
    MIDlet-1: PhotoAlbum,, example.photoalbum.PhotoAlbum
    MIDlet-Data-Size: 256
    MIDlet-Description: Photoalbum of images
    MIDlet-Name: PhotoAlbum
    MIDlet-Permissions: javax.microedition.io.Connector.http
    MIDlet-Vendor: Sun Microsystems, Inc.
    MIDlet-Version: 2.0
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0
    if not, there is something wrong. These lines above are from my manifest and it works. Maybe you made some strange settings about the MIDlet-Name?
    hth
    Kay

  • Could not initialize class com.sun.identity.agents.filter.AmFilterManager

    App svr - GFv2
    Opensso 8.0 u2
    PA 3.0
    using agentsample.ear modified suffix to my environment
    password format in the password file - just the clear password text in the first line of the file.
    I have been getting this error everytime I tried to access the protected page. Has anyone worked around it. It is wierd that this being a straight forward install has so much complications, which normally do not happen.
    I get the following error:
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: PWC1243: Filter execution threw an exception
    root cause
    java.lang.ExceptionInInitializerError
    root cause
    java.lang.RuntimeException: Failed to load configuration: ApplicationSSOTokenProvider.getApplicationSSOToken(): Unable to get Application SSO Token
    note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.
    When I retry or press reload I get a different error message:
    HTTP Status 500 -
    type Exception report
    message
    descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: PWC1243: Filter execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.identity.agents.filter.AmFilterManager
    note The full stack traces of the exception and its root causes are available in the Sun GlassFish Enterprise Server v2.1 logs.

    Do you still investigate it? I have ever same error. To solve it, it seems root cause was wrong server url setting for my case.
    For my case, root cause was wrong setting of /etc/hosts as default (not discribed the server name on 127.0.01). so I was installing and setting the openam on http://localhost:9080/openam.
    so then the agent can not connect to server and resolve the name address, and the problem of "Could not initialize class com.sun.identity.agents.filter.AmFilterManager " happend.
    So for resolution, I set /etc/hosts properly as follow.
    127.0.0.1 localhost.localdomain localhost sso.server.com
    192.168.56.101 sso.server.com
    192.168.56.102 sso.agent.com
    and remove all of openam folder (****/webapps/openam and /root/openam), and re-install openam.war in ****/webapps.
    And restart again the setting of openam on http://sso.server.com:9080/openam.
    after that, I can resolve it. I hope you also can resolve it.
    (ofcourse please modify the server name, IP number and port number as you like)

Maybe you are looking for

  • Connecting SAP BW to SAP R/3 : Creating source system manually/automaticall

    Hello All, I have created the RFC connection between R/3 and BW system .The message types also have been defined and partner profiles have been generated. When I am trying to create SAP source system in RSA1 --> Source system it asks me for the SAP T

  • JMS Adapter Parameter

    Hi All: I am using XI 3.0 SP-9 and When I am confuring JMS adapter i am seeing these parametes :- <b>QueueConnectionFactory Java</b> Class :progress.message.jclient.QueueConnectionFactory <b>Queue Java Class</b> : progress.message.jclient.Queue <b>Se

  • Photoshop CC Trial Version - are there limitations?

    Hi...I'd like to give this a trial run but worried there will be watermarked outputs or limitation on features. Are there any limitaions? I am especially interested in working with the 3D capabilities. Thanks.

  • "Purchased" playlist missing music

    I accidentially deleted the purchased playlist.I purchased something and got the purchased playlist back except all the purchased music is missing from the playlist, is there a way to put all my purchased music back into the playlist?

  • Work schedule rule generation dates

    Hi All; I need to create a report which displays the generation dates (from and to) of a work schedule rule. I have managed to find out that the generation dates in t-code PT01 are stored in structure PSHFT ( PSHFT-PRD01 and PSHFT-PRD01 ).  Is there