This is the class:
public class FilexmltransferSkeleton {
/**
* Auto generated method signature
* @param filename
*/
public com.evidian.www.filexmltransfer_xsd1.Filexml transfer(
com.evidian.www.filexmltransfer_xsd1.Filename filename) {
String fileName=filename.getFilename();
OMElement omElem=null;
try{
org.opensaml.DefaultBootstrap.bootstrap();
// Get the builder factory
XMLObjectBuilderFactory builderFactory =
Configuration.getBuilderFactory();
// Get the assertion builder based on the assertion element
name
SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
// Create the assertion
Assertion assertion = builder.buildObject();
// Get the marshaller factory
MarshallerFactory marshallerFactory =
Configuration.getMarshallerFactory();
// Get the Assertion marshaller
Marshaller marshaller =
marshallerFactory.getMarshaller(assertion);
// Marshall the Assertion
Element assertionElement = marshaller.marshall(assertion);
XMLStreamReader
parser=XMLInputFactory.newInstance().createXMLStreamReader(new
DOMSource(assertionElement));
//Create the new builder
StAXOMBuilder doomBuilder = new StAXOMBuilder(parser);
//Get the document element
omElem = doomBuilder.getDocumentElement();
}catch (Exception e){
System.out.println("StaXOMBuilder");
}
Filexml fileXml=new Filexml();
fileXml.setFilexml(omElem);
return fileXml;
}
}
And this the errors:
Buildfile: C:\Documents and
Settings\Benoit\workspace-wtp2\filexmltransfer\build.xml
init:
pre.compile.test:
[echo] Stax Availability= true
[echo] Axis2 Availability= true
compile.src:
[javac] Compiling 1 source file to C:\Documents and
Settings\Benoit\workspace-wtp2\filexmltransfer\build\classes
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:12:
package org.opensaml.common does not exist
[javac] import org.opensaml.common.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:13:
package org.opensaml.saml2.core does not exist
[javac] import org.opensaml.saml2.core.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:14:
package org.opensaml.saml2.core.impl does not exist
[javac] import org.opensaml.saml2.core.impl.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:15:
package org.opensaml.xml does not exist
[javac] import org.opensaml.xml.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:16:
package org.opensaml.xml.io does not exist
[javac] import org.opensaml.xml.io.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:17:
package org.opensaml.xml.util does not exist
[javac] import org.opensaml.xml.util.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:25:
package org.joda.time does not exist
[javac] import org.joda.time.*;
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:40:
package org.opensaml does not exist
[javac] org.opensaml.DefaultBootstrap.bootstrap();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:43:
cannot find symbol
[javac] symbol : class XMLObjectBuilderFactory
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] XMLObjectBuilderFactory builderFactory =
Configuration.getBuilderFactory();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:43:
cannot find symbol
[javac] symbol : variable Configuration
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] XMLObjectBuilderFactory builderFactory =
Configuration.getBuilderFactory();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:46:
cannot find symbol
[javac] symbol : class SAMLObjectBuilder
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:46:
cannot find symbol
[javac] symbol : class Assertion
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:46:
cannot find symbol
[javac] symbol : class SAMLObjectBuilder
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:46:
cannot find symbol
[javac] symbol : class Assertion
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:46:
cannot find symbol
[javac] symbol : variable Assertion
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] SAMLObjectBuilder<Assertion> builder =
(SAMLObjectBuilder<Assertion>)(builderFactory.getBuilder(Assertion.DEFAULT_ELEMENT_NAME));
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:49:
cannot find symbol
[javac] symbol : class Assertion
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] Assertion assertion = builder.buildObject();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:53:
cannot find symbol
[javac] symbol : class MarshallerFactory
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] MarshallerFactory marshallerFactory =
Configuration.getMarshallerFactory();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:53:
cannot find symbol
[javac] symbol : variable Configuration
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] MarshallerFactory marshallerFactory =
Configuration.getMarshallerFactory();
[javac] ^
[javac] C:/Documents and
Settings/Benoit/workspace-wtp2/filexmltransfer/src/com/evidian/www/filexmltransfer_wsdl/FilexmltransferSkeleton.java:56:
cannot find symbol
[javac] symbol : class Marshaller
[javac] location: class
com.evidian.www.filexmltransfer_wsdl.FilexmltransferSkeleton
[javac] Marshaller marshaller =
marshallerFactory.getMarshaller(assertion);
[javac] ^
[javac] 19 errors
BUILD FAILED
C:\Documents and
Settings\Benoit\workspace-wtp2\filexmltransfer\build.xml:43: Compile
failed; see the compiler error output for details.
Total time: 4 seconds
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]