Unable to compile the JAXB generated java files

Hi
I am using JAXB 2.0 API for binding process.
I have products.xml file as
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE PRODUCTDATA SYSTEM "products.dtd">
<PRODUCTDATA>
<PRODUCT PRODID="P001" CATEGORY="Books">
<PRODUCTNAME>Gone with the wind</PRODUCTNAME>
<DESCRIPTION>This is abt American Civil War</DESCRIPTION>
<PRICE>25.00</PRICE>
<QUANTITY>3</QUANTITY>
</PRODUCT>
</PRODUCTDATA>
and products.xsd(Schema file) as
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="PRODUCTDATA" type="prdt"/>
<xsd:complexType name="prdt">
<xsd:sequence>
<xsd:element name="PRODUCT" type="prd" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="prd">
<xsd:sequence>
<xsd:element name="PRODUCTNAME" type="xsd:string"/>
<xsd:element name="DESCRIPTION" type="xsd:string"/>
<xsd:element name="PRICE" type="xsd:positiveInteger"/>
<xsd:element name="QUANTITY" type="xsd:nonNegativeInteger"/>
</xsd:sequence>
<xsd:attribute name="PRODID" type="pid" use="required"/>
<xsd:attribute name="CATEGORY" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:simpleType name="pid">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[p]{1}/d{3}"/>
<xsd:length value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
I am converting these schema file to java files by using binding compiler xjc.
So that three java files are genearated automatically.
1) ObjectFactory.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the testing.jaxb package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
@XmlRegistry
public class ObjectFactory {
private final static QName PRODUCTDATAQNAME = new QName("", "PRODUCTDATA");
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: testing.jaxb
public ObjectFactory() {
* Create an instance of {@link Prd }
public Prd createPrd() {
return new Prd();
* Create an instance of {@link Prdt }
public Prdt createPrdt() {
return new Prdt();
* Create an instance of {@link JAXBElement }{@code <}{@link Prdt }{@code >}}
@XmlElementDecl(namespace = "", name = "PRODUCTDATA")
public JAXBElement<Prdt> createPRODUCTDATA(Prdt value) {
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value);
2)Prdt.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
* <p>Java class for prdt complex type.
* <p>The following schema fragment specifies the expected content contained within this class.
* <pre>
* <complexType name="prdt">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PRODUCT" type="{}prd" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "prdt", propOrder = {
"product"
public class Prdt {
@XmlElement(name = "PRODUCT", required = true)
protected List<Prd> product;
* Gets the value of the product property.
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the product property.
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPRODUCT().add(newItem);
* </pre>
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Prd }
public List<Prd> getPRODUCT() {
if (product == null) {
product = new ArrayList<Prd>();
return this.product;
3) Prd.java
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2008.06.23 at 04:09:25 PM IST
package testing.jaxb;
import java.math.BigInteger;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
* <p>Java class for prd complex type.
* <p>The following schema fragment specifies the expected content contained within this class.
* <pre>
* <complexType name="prd">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="PRODUCTNAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="DESCRIPTION" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="PRICE" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
* <element name="QUANTITY" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger"/>
* </sequence>
* <attribute name="CATEGORY" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="PRODID" use="required" type="{}pid" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "prd", propOrder = {
"productname",
"description",
"price",
"quantity"
public class Prd {
@XmlElement(name = "PRODUCTNAME", required = true)
protected String productname;
@XmlElement(name = "DESCRIPTION", required = true)
protected String description;
@XmlElement(name = "PRICE", required = true)
protected BigInteger price;
@XmlElement(name = "QUANTITY", required = true)
protected BigInteger quantity;
@XmlAttribute(name = "CATEGORY")
protected String category;
@XmlAttribute(name = "PRODID", required = true)
protected String prodid;
* Gets the value of the productname property.
* @return
* possible object is
* {@link String }
public String getPRODUCTNAME() {
return productname;
* Sets the value of the productname property.
* @param value
* allowed object is
* {@link String }
public void setPRODUCTNAME(String value) {
this.productname = value;
* Gets the value of the description property.
* @return
* possible object is
* {@link String }
public String getDESCRIPTION() {
return description;
* Sets the value of the description property.
* @param value
* allowed object is
* {@link String }
public void setDESCRIPTION(String value) {
this.description = value;
* Gets the value of the price property.
* @return
* possible object is
* {@link BigInteger }
public BigInteger getPRICE() {
return price;
* Sets the value of the price property.
* @param value
* allowed object is
* {@link BigInteger }
public void setPRICE(BigInteger value) {
this.price = value;
* Gets the value of the quantity property.
* @return
* possible object is
* {@link BigInteger }
public BigInteger getQUANTITY() {
return quantity;
* Sets the value of the quantity property.
* @param value
* allowed object is
* {@link BigInteger }
public void setQUANTITY(BigInteger value) {
this.quantity = value;
* Gets the value of the category property.
* @return
* possible object is
* {@link String }
public String getCATEGORY() {
return category;
* Sets the value of the category property.
* @param value
* allowed object is
* {@link String }
public void setCATEGORY(String value) {
this.category = value;
* Gets the value of the prodid property.
* @return
* possible object is
* {@link String }
public String getPRODID() {
return prodid;
* Sets the value of the prodid property.
* @param value
* allowed object is
* {@link String }
public void setPRODID(String value) {
this.prodid = value;
Next step is to compile these three files
So I am compiling these three files it gives me compiler error as:
testing/jaxb/ObjectFactory.java:31: illegal character: \64
@XmlRegistry
^
testing/jaxb/ObjectFactory.java:63: illegal character: \64
@XmlElementDecl(namespace = "", name = "PRODUCTDATA")
^
testing/jaxb/ObjectFactory.java:65: <identifier> expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/ObjectFactory.java:65: <identifier> expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/ObjectFactory.java:65: '{' expected
return new JAXBElement<Prdt>(_PRODUCTDATA_QNAME, Prdt.class, null, value
^
testing/jaxb/Prdt.java:38: illegal character: \64
@XmlAccessorType(XmlAccessType.FIELD)
^
testing/jaxb/Prdt.java:39: illegal character: \64
@XmlType(name = "prdt", propOrder = {
^
testing/jaxb/Prdt.java:44: illegal character: \64
@XmlElement(name = "PRODUCT", required = true)
^
testing/jaxb/Prdt.java:45: <identifier> expected
protected List<Prd> product;
^
testing/jaxb/Prdt.java:69: <identifier> expected
public List<Prd> getPRODUCT() {
^
testing/jaxb/Prdt.java:75: ';' expected
^
testing/jaxb/Prd.java:43: illegal character: \64
@XmlAccessorType(XmlAccessType.FIELD)
^
testing/jaxb/Prd.java:44: illegal character: \64
@XmlType(name = "prd", propOrder = {
^
testing/jaxb/Prd.java:52: illegal character: \64
@XmlElement(name = "PRODUCTNAME", required = true)
^
testing/jaxb/Prd.java:53: <identifier> expected
protected String productname;
^
testing/jaxb/Prd.java:54: illegal character: \64
@XmlElement(name = "DESCRIPTION", required = true)
^
testing/jaxb/Prd.java:55: <identifier> expected
protected String description;
^
testing/jaxb/Prd.java:56: illegal character: \64
@XmlElement(name = "PRICE", required = true)
^
testing/jaxb/Prd.java:57: <identifier> expected
protected BigInteger price;
^
testing/jaxb/Prd.java:58: illegal character: \64
@XmlElement(name = "QUANTITY", required = true)
^
testing/jaxb/Prd.java:59: <identifier> expected
protected BigInteger quantity;
^
testing/jaxb/Prd.java:60: illegal character: \64
@XmlAttribute(name = "CATEGORY")
^
testing/jaxb/Prd.java:61: <identifier> expected
protected String category;
^
testing/jaxb/Prd.java:62: illegal character: \64
@XmlAttribute(name = "PRODID", required = true)
^
testing/jaxb/Prd.java:63: <identifier> expected
protected String prodid;
^
25 errors
I want all three files to compiled successfully.If it is compiled only then I will continue on Unmarshalling process

I suspect you are trying to compile the files one by one. You may also be trying to compile them disregarding the package structure.
From your post, I gather these files are in the package: com.geindustrial.sqms
Therefore, if they are not so already, put them under a directory structure:
com/geindustrial/sqms
and then compile with:
javac com/geindustrial/sqms/AddCtq.java com/geindustrial/sqms/Ctq.java com/geindustrial/sqms/VariableData.java
(The above is all on one line.)
HTH,
Manuel Amago.

Similar Messages

  • How to generate .xsd file using jaxb generated java files

    Hi,
    We need to upgrade our applicatio to jdk1.6 which has jaxb2.0 class files in it. Our application has java files generated from .xsd using jaxb1.0.2 version. At present we dont have .xsd or .xml file with us.
    We decide to generate .xsd file by using jaxb1.0.2 generated java files. I tried using schemagen.exe given by jdk1.6 to generate .xsd file. It error out. Is there any other way to generate .xsd file ?
    pls let me know.
    thanks,
    Thiru

    Object-XML mapping is a new feature in JAXB 2.0. Classes generated with JAXB 1.0 won't generate a schema.
    Generate Java classes with JAXB 2.0 xjc.
    http://www.theregister.co.uk/2006/09/22/jaxb2_guide/

  • Setting the DTD in the JAXB generated Java Classes

    Hi All,
    I have generated the Java Source file for a DTD using the xjc tool that comes with JAXB .
    Now from the Class files i can unmarshall and get the XML file . But in the generated XML output file we don't have the <!DOCTYPE > Element which binds the XML to the DTD .
    Is it possible to specify the DTD ? If so Where can we specify that .
    Thanks for your help...
    Sateesh

    Parse the Dtd for a DOCUMENT_TYPE_NODE & create a <!DOCTYPE >element in the output xml.
    PrintWriter pw=new PrintWriter();
    if(node.getNodeType()==Node.DOCUMENT_TYPE_NODE){
    DocumentType doctype = (DocumentType)node;
    pw.print("<!DOCTYPE ");
    pw.print(doctype.getName());
    String publicId = doctype.getPublicId();
    String systemId = doctype.getSystemId();
    if (publicId != null) {
    pw.print(" PUBLIC '");
    pw.print(publicId);
    pw.print("' '");
    pw.print(systemId);
    pw.print('\'');
    else {
    pw.print(" SYSTEM '");
    pw.print(systemId);
    pw.print('\'');
    String internalSubset = doctype.getInternalSubset();
    if (internalSubset != null) {
    pw.println(" [");
    pw.print(internalSubset);
    pw.print(']');
    pw.println('>');}

  • Compile error with IDLJ generated java files.

    When compiling the IDLJ generated java files, javac is not able to recognize org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

    PLEASE IGNORE THIS MESSAGE. I HAVE RESOLVED THIS ISSUE.
    "Ramesh Nadella" <[email protected]> wrote:
    >
    When compiling the IDLJ generated java files, javac is not able to recognize
    org.omg.CORBA.ObjectHelper
    classs. Looks like the import is not finding this class.
    I have located these classes in rt.jar but including this jar in CLASSPATH
    gives
    a version '48.0' is too recent error.
    Thanks
    Ramesh

  • Java.io.IOException: unable to find the type mapping resource file

    Hi,
    I am using weblogic7.0 to deploy my applications. I wrote a web service and
    was able to deploy it sucessfully. I am trying to access the web service through
    a jsp page. I am the error posted below on my server and " error:505 internal
    server error" on the browser. Can any one please help me out with the problem.
    My jsp page just displays the float value i am returing from the session bean
    method.
    Thanks,
    Ramya.
    <Apr 14, 2003 4:32:51 PM PDT> <Error> <HTTP> <101019> <[ServletContext(id=64204
    55,name=bankwebapp,context-path=/bankwebapp)] Servlet failed with IOException
    java.io.IOException: unable to find the type mapping resource file for:bank.Ban
    kService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
    stry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at bank.BankService_Impl.<init>(BankService_Impl.java:23)
    at jsp_servlet.__getbal._jspService(__getbal.java:106)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
    n(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:445)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    on.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
    ervletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
    mpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >
    <Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149400> <Activatin
    g application: appsdirbankwebapp_war>
    <Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149404> <Activate
    application appsdirbankwebapp_war on myserver - Running>
    <Apr 14, 2003 4:41:01 PM PDT> <Notice> <Application Poller> <149404> <Activate
    application appsdirbankwebapp_war on myserver - Completed>
    The url value from the jsp page ishttp://localhost:7001
    The wsdl value from the jsp page ishttp://localhost:7001/web_services/BankServi
    ce
    <Apr 14, 2003 4:41:06 PM PDT> <Error> <HTTP> <101019> <[ServletContext(id=72463
    20,name=bankwebapp,context-path=/bankwebapp)] Servlet failed with IOException
    java.io.IOException: unable to find the type mapping resource file for:bank.Ban
    kService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
    stry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at bank.BankService_Impl.<init>(BankService_Impl.java:23)
    at jsp_servlet.__getbal._jspService(__getbal.java:106)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
    n(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:445)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    on.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
    ervletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
    mpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >

    Hi Manoj,
    Thanks a lot for your hepl. I tried as you said and its working now.
    Ramya
    "manoj cheenath" <[email protected]> wrote:
    Make sure that you put the client jar file generated by
    clientgen in the lib directory of the jsp web app.
    It looks like the runtime is unable to load
    <service>.xml type mapping file. This xml file
    should be in the classpath (web-inf/lib or
    web-inf/classes).
    -manoj
    "Ramya" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I am using weblogic7.0 to deploy my applications. I wrote a web serviceand
    was able to deploy it sucessfully. I am trying to access the web servicethrough
    a jsp page. I am the error posted below on my server and " error:505internal
    server error" on the browser. Can any one please help me out with theproblem.
    My jsp page just displays the float value i am returing from the sessionbean
    method.
    Thanks,
    Ramya.
    <Apr 14, 2003 4:32:51 PM PDT> <Error> <HTTP> <101019><[ServletContext(id=64204
    55,name=bankwebapp,context-path=/bankwebapp)] Servlet failed withIOException
    java.io.IOException: unable to find the type mapping resource filefor:bank.Ban
    kService
    atweblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
    stry.java:62)
    atweblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at bank.BankService_Impl.<init>(BankService_Impl.java:23)
    at jsp_servlet.__getbal._jspService(__getbal.java:106)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
    n(ServletStubImpl.java:1058)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:401)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:445)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:306)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    on.run(WebAppServletContext.java:5412)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:744)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
    ervletContext.java:3086)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
    mpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >
    <Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149400><Activatin
    g application: appsdirbankwebapp_war>
    <Apr 14, 2003 4:40:59 PM PDT> <Notice> <Application Poller> <149404><Activate
    application appsdirbankwebapp_war on myserver - Running>
    <Apr 14, 2003 4:41:01 PM PDT> <Notice> <Application Poller> <149404><Activate
    application appsdirbankwebapp_war on myserver - Completed>
    The url value from the jsp page ishttp://localhost:7001
    The wsdl value from the jsp page
    ishttp://localhost:7001/web_services/BankServi
    ce
    <Apr 14, 2003 4:41:06 PM PDT> <Error> <HTTP> <101019><[ServletContext(id=72463
    20,name=bankwebapp,context-path=/bankwebapp)] Servlet failed withIOException
    java.io.IOException: unable to find the type mapping resource filefor:bank.Ban
    kService
    atweblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegi
    stry.java:62)
    atweblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at bank.BankService_Impl.<init>(BankService_Impl.java:23)
    at jsp_servlet.__getbal._jspService(__getbal.java:106)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.ru
    n(ServletStubImpl.java:1058)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:401)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:445)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubI
    mpl.java:306)
    atweblogic.servlet.internal.WebAppServletContext$ServletInvocationActi
    on.run(WebAppServletContext.java:5412)
    atweblogic.security.service.SecurityServiceManager.runAs(SecurityServi
    ceManager.java:744)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppS
    ervletContext.java:3086)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestI
    mpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >

  • Unable to compile the java class in the SQL PLUS

    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;

    860411 wrote:
    Hi Team,
    I am unable to compile the java class in the SQL PLUS in dev1 and dev2. It is giving the following error.
    But the same class get Compiled in the Toad(Tool) without any error and working fine. Could someone help me
    What to do for this for your reference ,Attaching the java class file.
    “ORA-29536: badly formed source: Encountered "<EOF>" at line 1, column 28.
    Was expecting one of:
    I believe the error message is clear and self-explanatory.
    ----------------------Here is the Java class Code.....................
    create or replace and compile java source named "XXVM_ZipFileUtil_Ela"
    as
    import java.math.BigDecimal;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    import oracle.sql.*;
    import oracle.jdbc.*;
    import java.sql.*;
    import java.io.*;
    public class XXVM_ZipFileUtil_Ela
    public static oracle.sql.BLOB getZipFile(
    oracle.sql.CHAR zipFilePathCHAR, oracle.sql.CHAR zipFileNameCHAR,
    int fileBufferSize, int zipFileBufferSize,
    boolean deleteZipFile, java.sql.Array fileNames, java.sql.Array fileContents, java.sql.Array fileContentsLength)
    throws IllegalArgumentException, FileNotFoundException, IOException, java.sql.SQLException
    String zipFilePath = (zipFilePathCHAR == null) ? null : zipFilePathCHAR.stringValue();
    String zipFileName = (zipFileNameCHAR == null) ? null : zipFileNameCHAR.stringValue();
    String zipPathAndFileName = new String(
    new String(zipFilePath == null || zipFilePath == "" ? "/tmp/" : zipFilePath) +
    new String(zipFileName == null || zipFileName == "" ? System.currentTimeMillis() + ".zip" : zipFileName));
    byte[] buffer = new byte[fileBufferSize == 0 ? 100000000 : fileBufferSize];
    try
    Connection conn = DriverManager.getConnection("jdbc:default:connection:");
    oracle.sql.CLOB[] fileContentsCLOB = (oracle.sql.CLOB[])fileContents.getArray();
    String[] fileNamesString = (String[])fileNames.getArray();
    BigDecimal[] fileContentsLengthNumber = (BigDecimal[])fileContentsLength.getArray();
    ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(zipPathAndFileName));
    zipOut.setLevel(Deflater.DEFAULT_COMPRESSION);
    for (int i = 0; i < fileNamesString.length; i++) {
    System.out.println(i);
    zipOut.putNextEntry(new ZipEntry(fileNamesString));
    InputStream asciiStream = fileContentsCLOB[i].getAsciiStream(1L);
    int asciiReadCount = asciiStream.read(buffer,0,fileContentsLengthNumber[i].intValue());
    zipOut.write(buffer, 0, fileContentsLengthNumber[i].intValue());
    zipOut.closeEntry();
    zipOut.close();
    byte zipFileContents[] = new byte[zipFileBufferSize == 0 ? 100000000 : zipFileBufferSize];
    FileInputStream zipIn = new FileInputStream(zipPathAndFileName);
    int byteCount = zipIn.read(zipFileContents);
    zipIn.close();
    byte returnFileContents[] = new byte[byteCount];
    System.arraycopy(zipFileContents,0,returnFileContents,0,byteCount);
    String returnFileContentsString = new String(returnFileContents);
    if (deleteZipFile)
    boolean deletedFile = (new File(zipPathAndFileName)).delete();
    oracle.sql.BLOB returnFileContentsBLOB = null;
    returnFileContentsBLOB = BLOB.createTemporary(conn, true, BLOB.DURATION_SESSION);
    returnFileContentsBLOB.open(BLOB.MODE_READWRITE);
    //OutputStream tempBlobWriter = returnFileContentsBLOB.getBinaryOutputStream();
    OutputStream tempBlobWriter = returnFileContentsBLOB.setBinaryStream(1);
    tempBlobWriter.write(returnFileContents);
    tempBlobWriter.flush();
    tempBlobWriter.close();
    returnFileContentsBLOB.close();
    return returnFileContentsBLOB;
    catch (IllegalArgumentException ex) {
    ex.printStackTrace();
    throw ex;
    catch (FileNotFoundException ex) {
    ex.printStackTrace();
    throw ex;
    catch (IOException ex)
    ex.printStackTrace();
    throw ex;
    catch (java.sql.SQLException ex)
    ex.printStackTrace();
    throw ex;
    The last two lines above should be
    /Srini

  • Setup was unable to compile the file ccmclasses.mof

    First i have a access denied problem with push installation ;
    MSI: Setup was unable to create the WMI namespace CCM
    The error code is 80070005
    MSI: Warning 25101. Setup was unable to delete WMI namespace ccm\dcm
    The error code is 80070005
    Installation failed with error code 1603
    I've tried many actions include deleting repository directory and rebuilding dll and mof files ...
    Finally i've added LOCAL SERVICE, NETWORK SERVICE, and SYSTEM accounts to Local administrators group and now there is no 80070005 error.
    But i ve got a new error :)
    MSI: Setup was unable to compile the file ccmclasses.mof
    The error code is 8004402F
    MSI: Warning 25002. Failed to delete CCM_Service_ErrorHandlerRegistration.Clsid="{0F95BCE5-2209-488a-B4BC-4396AD233C8D}" from CCM
    The error code is 80041010
    Installation failed with error code 1603
    i ve almost 2000 clients with this situation and i think i lost my mind very soon.
    Any help is appreciated.

    Hi Bulent,
    Very glad to hear the issue resolved and thanks for sharing your experience, which can help other community members facing similar problems. Also, if you have any further concerns, please do not hesitate to let us know and we are happy to be of further
    assistance.
    Thanks,
    Yog Li -- Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to generate java file from WSDL file

    Hi friends,
    I am new to this thing, so that's why I need some guidence .
    I need to generate java file programatically from existing wsdl file.
    I thought the ways - to use xmlbeans apache library or jaxb.
    Can you suggest what will be better way to generate java file from wsdl? can you please be more descriptive and can you direct me to appropriate link?
    Thanks.
    Harshit

    xmlbeans apache provides easiest way to create java file from wsdl there is very good link for that
    http://www.ibm.com/developerworks/webservices/library/ws-soa-clientxmlbeans.html
    If you want more programmatic approach then Jaxb will be a better option

  • Siebel 8.0.0.12 Fix Pack; Unable to get the seed from binary file.

    Hello Folks,
    Can anyone throw some light into what action is required on my scenario.
    I have applied Fix Pack Siebel 8.0.0.12 on top of 8.0.0.11 SBA. After it is appled, I am facing a documented issue within the Release Notes for the 8.0.0.12 Fix Pack
    The issue is "UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12". I tried the steps given with the MR document, however, I am still having this issue.
    I am also not sure what is expected at the step of; Run the following command: seedgeneratorutil myseed.dat abcdef .
    It's asking me for a value to enter for seed at command prompt. "Enter the seed":
    what I should give here. As an assumption values,I gave SADMIN and tried to launch but still shows up the same error
    Please Assit
    Steps Details from Release Notes:
    UNABLE TO LAUNCH URL AFTER APPLYING SIEBEL 8.0.0.12
    Component: Server Infrastructure
    Subcomponent: SWSE
    Product Version: Siebel 8.0.0.12
    Base Bug ID: 11938270
    **Users are unable to launch the URL after applying the Siebel 8.0.0.12 Fix Pack.
    **Use the following workaround to address this issue:
    Navigate to the eappweb/bin directory from the command line on the SWSE installation.
    Run the following command:
    seedgeneratorutil myseed.dat abcdef
    NOTE: In the example, myseed.dat is a filename. You can give any file name you wish.
    The myseed.dat file is generated in the eappweb/bin directory.
    Edit eapps.cfg to include the following parameters under the SWE section:
    seedfile = < complete path for myseed.dat >
    Bounce the web server.
    (For Linux only) Copy libmod_swe.so from the eappweb/bin folder to the web/ohs/modules folder
    Thanks
    Kumar

    Wilson,
    Thanks for your reply.I have repeated the steps and regenerated the error messages.
    Browser
    Message:
    An error occurred while trying to process your request. This error indicates a problem with the configuration of this server and should be reported to the webmaster (along with any errors listed below). We apologize for the inconvenience
    Initialization error:
    Unable to get the seed from binary file.
    Log
    2021 2011-09-20 23:23:01 0000-00-00 00:00:00 +0530 00000000 001 003f 0001 09 ss110920_7068 7068 7852 E:\sba80\SWEApp\log\ss110920_7068.log 8.0.0.12 [20444] ENU
    ProcessPluginState     ProcessPluginStateError     1     000000024e781b9c:0     2011-09-20 23:23:01     7852: [SWSE] Unable to get the seed from binary file.
    Eapps.cfg
    [swe]
    Language = enu
    Log = errors
    LogDirectory = $(SWSERoot)\log
    ClientRootDir = $(SWSERoot)
    SessionMonitor = False
    AllowStats = true
    LogSegmentSize = 0
    LogMaxSegments = 0
    DisableNagle = False
    seedfile = E:\sba80\SWEApp\BIN\80012seed.dat
    Thanks
    Kumar

  • Unable to Find the Type Mapping Resource File (Two web services)

    Hello,
    I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
    java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
    I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
    Can anybody help me?,
    jose luis

    Hello,
    I am using BEA weblogic 7.0 to deploy my applications. I have a web service and was able to deploy it sucessfully. I am trying to access this web service from another web service previously succesfully deployed too. When I call the second one, I have the next problem:
    java.io.IOException: unable to find the type mapping resource file for:tuoprec.sinsesion.TuOPRecService
    at weblogic.webservice.core.encoding.DefaultRegistry.<init>(DefaultRegistry.java:62)
    at weblogic.webservice.core.rpc.ServiceImpl.<init>(ServiceImpl.java:72)
    at tuoprec.sinsesion.TuOPRecService_Impl.<init>(TuOPRecService_Impl.java
    I put the client jar file (2nd web service) obtained from the <clientgen> in the class path of the ear file (1st web service), but I have the same error.
    Can anybody help me?,
    jose luis

  • Unable to lookup the Deploy Service. java.lang.ClassCastException in NWDS

    Hi All,
    I am getting the following exception while deploying an application in NWDS.
    Please help me in resolving this issue
    Sep 6, 2007 10:24:32 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : bala
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/BALU/LOCALS1/Temp/temp64339RFCFlightList.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/BALU/LOCALS1/Temp/temp64339RFCFlightList.ear
    Aborted: development component 'RFCFlightList'/'local'/'LOKAL'/'0.2007.09.06.22.24.23'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.DeployManagerException: Unable to lookup the Deploy Service. java.lang.ClassCastException
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi Bala
    Some of the services at your server are not running..ask your system admin to restart the SDN server and try to deploy once
    Regards
    Chaitanya.A

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How to generate .java file from xml?

    Does anyone have an idea of how i can generate .java file from xml file? Tools like jakrata digester, JOX are there but both of them are useful in populating java beans from xml. My requirement is to generate .java file from .xml with getters and setters methods for xml elements/attributes. I also tried JAXB. But JAXB generates bunch of files and most of them are interfaces, which is not going to work for me.
    For e.g. i have following xml file and i want to generate Address.java file with getters/setters. Any ideas?
    <?xml version='1.0' encoding='UTF-8' ?>
    <Address>
    <FirstName type="String"/>
    <PoBox type="int"/>
    </Address>
    Thanks,
    Vicky

    Crosspost.
    http://forum.java.sun.com/thread.jsp?thread=475564&forum=4&message=2205846

  • ORA-27047: unable to read the header block of file

    My Windows 2003 crashed which was running Oracle XE.
    I installed Oracle XE on Windows XP on another machine.
    I coped my D:\oracle\XE10g\oradata folder of Win2003 to the same location in WinXP machine.
    When I start the database in WinXP using SQLPLUS i get the following message
    SQL> startup
    ORACLE instance started.
    Total System Global Area 146800640 bytes
    Fixed Size 1286220 bytes
    Variable Size 62918580 bytes
    Database Buffers 79691776 bytes
    Redo Buffers 2904064 bytes
    ORA-00205: error in identifying control file, check alert log for more info
    I my D:\oracle\XE10g\app\oracle\admin\XE\bdump\alert_xe I found following errors
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    starting up 4 shared server(s) ...
    Oracle Data Guard is not available in this edition of Oracle.
    Wed Apr 25 18:38:36 2007
    ALTER DATABASE MOUNT
    Wed Apr 25 18:38:36 2007
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Wed Apr 25 18:38:36 2007
    ORA-205 signalled during: ALTER DATABASE MOUNT...
    ORA-00202: control file: 'D:\ORACLE\XE10G\ORADATA\XE\CONTROL.DBF'
    ORA-27047: unable to read the header block of file
    OSD-04001: invalid logical block size (OS 2800189884)
    Please help.
    Regards,
    Zulqarnain

    Try to install win 2003 server software, do the fresh installation of oracle software, now copy the datafiles and controlfiles to same locations as you did on winxp.
    get back to us, if still not out of the woods. I still doubt that a simple restore would do the trick, since you doing it across different platforms, might be I can be wrong, but this is what I personally feel, you not able to start the database on winxp.
    hare krishna
    Alok

  • Standards for storing the Javadoc generated html files?

    I'm new to using Javadoc have the following questions:
    1) Does anyone know of any standards as to what directory structure should be used to store the Javadoc generated html files?
    2) When working with a development and production environment, where should they be stored? Only on the development server or on both?
    3) When setting up a html page to link to all of the various Javadoc generated files for all of our applications, should we just manually create an html page that links to them or is there a tool that will take care of this?
    Any information that can be provided will be a big help!

    1) All you do is specify a directory with the -d option and Javadoc creates the directory structure below that. We often use either "-d docs" or "-d html" to create a directory named "docs" or "html" in the current directory.
    2) Preferably they should be stored on a server that has a web server running so people can access them. We build the docs nightly on the development server where people can access the latest version using a file: URL (not with a web server). Then before each release we stage them on our intranet before we push them out to the intranet. We also run the DocCheck doclet and a link checker nightly so developers and writers can find errors in their documentation.
    3) If you want a top-level page that links to separate javadoc documents, you need to do this manually. However, keep in mind that you can also inter-link all those separate documents by using the -link or -linkoffline option.
    Let us know if you have more questions or comments.
    -Doug Kramer
    Javadoc team

Maybe you are looking for

  • AdobeInDesignCS4ClassroominaBook.acsm file doesn't work

    I just purchased and downloaded an Adobe eBook. I'm unfamiliar with the .acsm format and my computer doesn't recognize it. I tried to phone tech support but the message says that tech support is essentially unavailable for several days why some major

  • Usb to ethernet adapter?

    I just bought my airport express, and I want to connect my broadband modem to it but the connector is usb instead of ethernet. I did a few searches for an adapter but they all seem to be the opposite, and if I plug it into the express' usb plug it do

  • Steps to Follow before import

    Hi, We are planning to migrate Oracle 8i database to Oracle 10g Database. Approach that we have decided is export/Import. Can anyone tell me what all steps we have to perform before importing dmp to new database? We are planning to go for schema leve

  • Maximum SSD size supported in Protege z830

    I own a Portege Z830-P360 it has a stock SSD 128GB.  I want to upgrade it to 500 GB SDD.  The laptop support this SDD size ? What is SSD recommended for this ultrabook and features.

  • Adobe Form Highlight Function

    Have imported fillable form (from va) All fields, other than the field I'm working in, are highlighted [data hidden, will not print) How do I turn off highlight function?