Unable to compile the Java Files generated by JAXB

Hi,
I have generated the Java Files for a DTD and .xjs file using JAXB. But when i tyr to compile the .java files generated i am getting errors.
My DTD file is addctq.dtd
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT AddCtq (Ctq*)>
<!ELEMENT Ctq (PartNumber ,PartDescription,CtqDescription,CtqType,ProductLine,Supplier,Ppctq,Ctp,Ctc,CtqCode1,CtqCode2,CtqCode3,Commodity,SubCommodity,UnitOfMeasure,Client,SamplingFrequency,Remarks,VariableData)>
<!ELEMENT VariableData (SubGroupSize, Specification,Nominal,Usl,Ual,Lal,Lsl,Zal,RangeVal?,RangeAlarmVal?)>
<!ELEMENT PartNumber (#PCDATA)>
<!ATTLIST PartNumber new CDATA #REQUIRED >
<!ELEMENT PartDescription (#PCDATA)>
<!ELEMENT CtqDescription (#PCDATA)>
<!ELEMENT CtqType (#PCDATA)>
<!ELEMENT ProductLine (#PCDATA)>
<!ELEMENT Supplier (#PCDATA)>
<!ELEMENT Ppctq (#PCDATA)>
<!ELEMENT Ctp (#PCDATA)>
<!ELEMENT Ctc (#PCDATA)>
<!ELEMENT CtqCode1 (#PCDATA)>
<!ELEMENT CtqCode2 (#PCDATA)>
<!ELEMENT CtqCode3 (#PCDATA)>
<!ELEMENT Commodity (#PCDATA)>
<!ELEMENT SubCommodity (#PCDATA)>
<!ELEMENT UnitOfMeasure (#PCDATA)>
<!ELEMENT Client (#PCDATA)>
<!ELEMENT SamplingFrequency (#PCDATA)>
<!ELEMENT Remarks (#PCDATA)>
<!ELEMENT SubGroupSize (#PCDATA)>
<!ELEMENT Specification (#PCDATA)>
<!ELEMENT Nominal (#PCDATA)>
<!ELEMENT Usl (#PCDATA)>
<!ELEMENT Ual (#PCDATA)>
<!ELEMENT Lal (#PCDATA)>
<!ELEMENT Lsl (#PCDATA)>
<!ELEMENT Zal (#PCDATA)>
<!ELEMENT RangeVal (#PCDATA)>
<!ELEMENT RangeAlarmVal (#PCDATA)>
and the .xjs file i created is addctq.xjs
<?xml version="1.0" encoding="UTF-8" ?>
<xml-java-binding-schema version="1.0-ea">
<options package="com.geindustrial.sqms"/>
<element name="AddCtq" type="class" root="true">
<content>
<element-ref name="Ctq"/>
</content>
</element>
<element name="Ctq" type="class">
<content>
     <element-ref name="PartNumber"/>
     <element-ref name="PartDescription"/>
     <element-ref name="CtqDescription"/>
     <element-ref name="CtqType"/>
     <element-ref name="ProductLine"/>
     <element-ref name="Supplier"/>
     <element-ref name="Ppctq"/>
     <element-ref name="Ctp"/>
     <element-ref name="Ctc"/>
     <element-ref name="CtqCode1"/>
     <element-ref name="CtqCode2"/>
     <element-ref name="CtqCode3"/>
     <element-ref name="Commodity"/>
     <element-ref name="SubCommodity"/>
     <element-ref name="UnitOfMeasure"/>
     <element-ref name="Client"/>
     <element-ref name="SamplingFrequency"/>
     <element-ref name="Remarks"/>
     <element-ref name="VariableData"/>
</content>      
</element>
<element name="VariableData" type="class">
<content>
<element-ref name="SubGroupSize"/>
<element-ref name="Specification"/>
<element-ref name="Nominal"/>
<element-ref name="Usl"/>
<element-ref name="Ual"/>
<element-ref name="Lal"/>
<element-ref name="Lsl"/>
<element-ref name="Zal"/>
</content>
</element>
<element name="PartNumber" type="value">
<attribute name="new"/>
</element>
<element name="PartDescription" type="value">
</element>
<element name="CtqDescription" type="value">
</element>
<element name="CtqType" type="value">
</element>
<element name="ProductLine" type="value">
</element>
<element name="Supplier" type="value">
</element>
<element name="Ppctq" type="value">
</element>
<element name="Ctp" type="value">
</element>
<element name="Ctc" type="value">
</element>
<element name="CtqCode1" type="value">
</element>
<element name="CtqCode2" type="value">
</element>
<element name="CtqCode3" type="value">
</element>
<element name="Commodity" type="value">
</element>
<element name="SubCommodity" type="value">
</element>
<element name="UnitOfMeasure" type="value">
</element>
<element name="Client" type="value">
</element>
<element name="SamplingFrequency" type="value">
</element>
<element name="Remarks" type="value">
</element>
<element name="SubGroupSize" type="value" convert="int">
</element>
<element name="Specification" type="value">
</element>
<element name="Nominal" type="value" convert="float">
</element>
<element name="Usl" type="value" convert="float">
</element>
<element name="Ual" type="value" convert="float">
</element>
<element name="Lal" type="value" convert="float">
</element>
<element name="Lsl" type="value" convert="float">
</element>
<element name="Zal" type="value" convert="float">
</element>
<element name="RangeVal" type="value" convert="float">
</element>
<element name="RangeAlarmVal" type="value" convert="float">
</element>
</xml-java-binding-schema>
When i ran the xjc , it generated 3 .java files
AddCtq.java , Ctq.java and VariableData.java
But i am unable to compile any of the above files...
The Error i am getting is
VariableData.java:710: Undefined variable or class name: AddCtq
return AddCtq.newDispatcher();
^
1 error
If i try to compile AddCtq.java , the Error i am getting is
AddCtq.java:4: Class com.geindustrial.sqms.Ctq not found in import.
import com.geindustrial.sqms.Ctq;
^
AddCtq.java:169: Class com.geindustrial.sqms.Ctq not found.
if (!(ob instanceof Ctq)) {
^
AddCtq.java:170: Class com.geindustrial.sqms.Ctq not found.
throw new InvalidContentObjectException(ob, (Ctq.class));
^
3 errors
And when i try to compile Ctq.java , i am getting the following Error:
Ctq.java:4: Class com.geindustrial.sqms.VariableData not found in import.
import com.geindustrial.sqms.VariableData;
^
1 error
How to solve this problem..Pls advise...
Thanks
Sateesh

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

  • Unable to compile the java file

    Hi,
    I am following the step by step process of DOC id : 184339.1 on How to Send an Email With Attachment Via Forms 6i Using ORA_JAVA Package. I downloaded the activation framework and sendmail 1.1.3..When i am compiling the file given the DOC id namely sendmail.java, I get the following error
    Exception in thread "main" java.lang.NoclassDefFoundError: sendmail/java
    Could anyone help me out ..
    Below is the cut and paste of the code which is used to compile..
    Thanks
    Kal
    import java.util.*; import java.io.*; import javax.mail.*; import javax.mail.internet.*; import javax.activation.*; public class SendMail {       // Sender, Recipient, CCRecipient, and BccRecipient are comma-       // separated lists of addresses;       // Body can span multiple CR/LF-separated lines;       // Attachments is a ///-separated list of file names;       public static int Send(String SMTPServer,                              String Sender,                              String Recipient,                              String CcRecipient,                              String BccRecipient,                              String Subject,                              String Body,                              String ErrorMessage[], String Attachments) {           // Error status;          int ErrorStatus = 0;              // create some properties and get the default Session;             Properties props = System.getProperties();             props.put("mail.smtp.host", SMTPServer);           Session session = Session.getDefaultInstance(props, null);            try {              // create a message;              MimeMessage msg = new MimeMessage(session);               // extracts the senders and adds them to the message;              // Sender is a comma-separated list of e-mail addresses as              // per RFC822;              {                 InternetAddress[] TheAddresses = InternetAddress.parse(Sender); msg.addFrom(TheAddresses); } // extract the recipients and assign them to the message; // Recipient is a comma-separated list of e-mail addresses // as per RFC822; {                 InternetAddress[] TheAddresses = InternetAddress.parse(Recipient); msg.addRecipients(Message.RecipientType.TO, TheAddresses); } // extract the Cc-recipients and assign them to the // message; // CcRecipient is a comma-separated list of e-mail // addresses as per RFC822; if (null != CcRecipient) {                 InternetAddress[] TheAddresses = InternetAddress.parse(CcRecipient); msg.addRecipients(Message.RecipientType.CC, TheAddresses); } // extract the Bcc-recipients and assign them to the // message; // BccRecipient is a comma-separated list of e-mail // addresses as per RFC822; if (null != BccRecipient) {                 InternetAddress[] TheAddresses = InternetAddress.parse(BccRecipient); msg.addRecipients(Message.RecipientType.BCC, TheAddresses); } // subject field; msg.setSubject(Subject); // create the Multipart to be added the parts to; Multipart mp = new MimeMultipart(); // create and fill the first message part; {                 MimeBodyPart mbp = new MimeBodyPart();                 mbp.setText(Body);                  // attach the part to the multipart;                 mp.addBodyPart(mbp);              } // attach the files to the message; if (null != Attachments) {                 int StartIndex = 0, PosIndex = 0;                 while (-1 != (PosIndex = Attachments.indexOf("///",                                                        StartIndex))) {                    // create and fill other message parts;                    MimeBodyPart mbp = new MimeBodyPart();                    FileDataSource fds =                    new FileDataSource(Attachments.substring(StartIndex,                                                             PosIndex));                    mbp.setDataHandler(new DataHandler(fds));                    mbp.setFileName(fds.getName());                    mp.addBodyPart(mbp);                    PosIndex += 3;                    StartIndex = PosIndex;                 } // last, or only, attachment file; if (StartIndex < Attachments.length()) {                    MimeBodyPart mbp = new MimeBodyPart();                    FileDataSource fds =                  new FileDataSource(Attachments.substring(StartIndex));                    mbp.setDataHandler(new DataHandler(fds));                    mbp.setFileName(fds.getName());                    mp.addBodyPart(mbp);                 } } // add the Multipart to the message; msg.setContent(mp); // set the Date: header; msg.setSentDate(new Date()); // send the message; Transport.send(msg); } catch (MessagingException MsgException) {                ErrorMessage[0] = MsgException.toString(); Exception TheException = null; if ((TheException = MsgException.getNextException()) != null) ErrorMessage[0] = ErrorMessage[0] + "\n" + TheException.toString(); ErrorStatus = 1; } return ErrorStatus; } }

    Most common cause of the problem: JAVA_HOME environment variable not set, or set incorrectly.
    It should point to your java directory: ie C:\java1_4\ NOT C:\java1_4\bin
    Another possible cause is spaces in the path names where you have installed applications.
    Check out this page: http://www.coreservlets.com/Apache-Tomcat-Tutorial/ for a tutorial on installing tomcat.
    If you can't sort it out on your own, we need more info:
    Where have you installed Java?
    Where have installed Tomcat?
    What is the value of JAVA_HOME environment variable?
    Good luck,
    evnafets

  • How to compile the Java classes generated in JAXB

    I am using Windows 2000 Operating System. I found a xjc
    batch file on the sun's java forum.
    I used that to generate classes from XML. After generating
    the classes I could not compile
    the classes each depends on other AND THEY REQUIRE BOTH
    CLASS FILES.
    I will attach the schema file and dtd . Can you explaine me the problem.
    #<transactions.dtd>
    <?xml version="1.0" encoding="UTF-8"?>
    <!ELEMENT transactions (cardtocard*)>
    <!ELEMENT cardtocard (tocard, fromcard, fromcardver, amount, transdate, transid)
    >
    <!ELEMENT tocard (#PCDATA)>
    <!ELEMENT fromcard (#PCDATA)>
    <!ELEMENT fromcardver (#PCDATA)>
    <!ELEMENT amount (#PCDATA)>
    <!ELEMENT transdate (#PCDATA)>
    <!ELEMENT transid (#PCDATA)>
    transactions.xjs
    <xml-java-binding-schema>
    <element name="transactions" type="class" root="true"/>
    <element name="cardtocard" type="class"/>
    </xml-java-binding-schema>
    XML file
    ?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XML Spy v4.4 U (http://www.xmlspy.com)-->
    <transactions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="C:\My Documents\Xml\SVTConcord.xsd">
    <cardtocard>
    <tocard>1111222233334444</tocard>
    <fromcard>6666777788889999</fromcard>
    <fromcardver>567</fromcardver>
    <amount>100.00</amount>
    <transdate>2002-06-04 00:00:00.000</transdate>
    <transid>1111222202</transid>
    </cardtocard>
    </transactions>
    the XJC compiler for windows is
    @echo off
    echo JAXB Schema Compiler
    echo --------------------
    if "%JAVA_HOME%" == "" goto errorJVM
    if "%JAXB_HOME%" == "" goto errorJAXB
    set JAXB_LIB=%JAXB_HOME%\lib
    set JAXB_CLASSES=%JAXB_HOME%\classes
    echo %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    %JAVA_HOME%\bin\java.exe -jar %JAXB_LIB%\jaxb-xjc-1.0-ea.jar %1 %2 %3 %4 %5
    goto end
    :errorJVM
    echo ERROR: JAVA_HOME not found in your environment.
    echo Please, set the JAVA_HOME variable in your environment to match the
    echo location of the Java Virtual Machine you want to use.
    echo For example:
    echo set JAVA_HOME=c:\jdk1.4.0_01
    goto end
    :errorJAXB
    echo ERROR: JAXB_HOME not found in your environment.
    echo Please, set the JAXB_HOME variable in your environment to match the
    echo location of the JAXB installation directory.
    echo For example:
    echo set JAXB_HOME=c:\jdk1.4.0_01\jaxb-1.0-ea
    :end

    When you compile the generated classes, be sure to put jaxb-rt-1.0-ea.jar in your classpath!

  • 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

  • Error IFS 20010 while compiling the java files

    Hello Friends,
    The error "IFS 20010 - Failed to get PropertyResorceBundler".....
    This error is generating while compiling the java files which will connect to the iFS with the username, password and the servicename. this error points to the servicename not found.
    I will be very greatfull for any hits or help.....

    Samir,
    You must include $ORACLE_HOME/ifs1.1/settings in you classpath.
    Thank You
    Brian Ball
    null

  • Error when compiling the Java file

    Hi I have created a jsp program that uses the java files. i have jboss installed. when i compile the java file it gives compilation error saying that javax.servlet.jsp.tagext.TagSupport not found.
    Although when i installed the Tomcat seperately i did not get any compilation error. can anyone tell me how to get out of this problem when Tomcat is not installed seperately.
    Thanks,
    Rakesh

    Hi
    I think these errors are due to incorrect classpath settings.While compiling HelloHome ..Helloremote must be in classpath.Also if u have packaged them u must be in the package root during compilation ie if uor remote & home interface is in a package called "ejbserver"
    then while compiling u must be in the folder above ejbserver & compile command is
    javac .\ejbserver\*.java
    If uor home & remote interface is in different folder check wheather u have imported the remote interface inside home interface file.

  • Compiling the java file related to Servlet and Core java files in heirarchy

    I am working in Jakarta-Tomcat 4.0.4 with j2sdk1.4.1_01 and i have put all servlet files in package "com.java.servlet"
    and other core java files in package "com.java.action" . Also I am imorting java files in package
    "com.java.action" to the package "com.java.servlet".
    But when I am compiling the servlet files in package "com.java.servlet"
    then the servlet files are not compiling because it cannot able to import
    java files in package "com.java.action" . I have tried all the options.
    If anybody has solution then please respond immediately.

    I agree with the previous poster, this sounds like a generic compiling problem. FYI: I do not think that packages that start with "com.java." are special or reserved in any way.
    You are making a servlet, not a JSP, right? Since this is merely about compiling, you might want to re-post to "Java Programming".

  • Unable to deploy the war file generated from jdeveloper to tomcat

    Hi
    I was able to deploy the war file after modification in the web.xml but unable to run the servlet application
    Please Help
    Dolphy

    After going thru all the steps specified in online help to deploy the web application in Tomcat server.
    I am getting the following error
    first the webapps could not be deployed because of url pattern
    <servlet-mapping>
    <servlet-name>mypackage1.BIController1</servlet-name>
    <url-pattern>mypackage1.BIController1</url-pattern>
    </servlet-mapping>
    which when i change to
    <servlet-mapping>
    <servlet-name>mypackage1.BIController1</servlet-name>
    <url-pattern>\mypackage1\BIController1</url-pattern>
    </servlet-mapping>
    deploys the application
    but i get the following errors in the tomcat log file
    2004-05-03 10:34:12 StandardContext[balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
    2004-05-03 10:34:12 StandardContext[jsp-examples]ContextListener: contextInitialized()
    2004-05-03 10:34:12 StandardContext[jsp-examples]SessionListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[servlets-examples]ContextListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[servlets-examples]SessionListener: contextInitialized()
    2004-05-03 10:34:13 StandardContext[webapp1]Marking servlet uix as unavailable
    2004-05-03 10:34:13 StandardContext[webapp1]Error loading WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    StandardClassLoader
    delegate: true
    repositories:
    file:C:\tomcat\shared\classes\
    ----------> Parent Classloader:
    StandardClassLoader
    delegate: true
    repositories:
    file:C:\tomcat\common\classes\
    file:C:\tomcat\common\endorsed\xercesImpl.jar
    file:C:\tomcat\common\endorsed\xmlParserAPIs.jar
    file:C:\tomcat\common\lib\ant.jar
    file:C:\tomcat\common\lib\commons-collections.jar
    file:C:\tomcat\common\lib\commons-dbcp-1.1.jar
    file:C:\tomcat\common\lib\commons-el.jar
    file:C:\tomcat\common\lib\commons-pool-1.1.jar
    file:C:\tomcat\common\lib\jasper-compiler.jar
    file:C:\tomcat\common\lib\jasper-runtime.jar
    file:C:\tomcat\common\lib\jmx.jar
    file:C:\tomcat\common\lib\jsp-api.jar
    file:C:\tomcat\common\lib\naming-common.jar
    file:C:\tomcat\common\lib\naming-factory.jar
    file:C:\tomcat\common\lib\naming-java.jar
    file:C:\tomcat\common\lib\naming-resources.jar
    file:C:\tomcat\common\lib\servlet-api.jar
    ----------> Parent Classloader:
    sun.misc.Launcher$AppClassLoader@4afa9e
    oracle.cabo.servlet.UIXServlet
    java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    2004-05-03 10:34:13 StandardContext[webapp1]Servlet /webapp1 threw load() exception
    javax.servlet.ServletException: Wrapper cannot find servlet class oracle.cabo.servlet.UIXServlet or a class it depends on
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:989)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    ----- Root Cause -----
    java.lang.ClassNotFoundException: oracle.cabo.servlet.UIXServlet
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1383)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3959)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4284)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1134)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
         at java.lang.reflect.Method.invoke(Native Method)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Thanks
    Dolphy

  • To compile the java file

    Hi,
    I have a one java file when i am goin to compile
    AAA.java:13: package weblogic.jndi does not exist
    import weblogic.jndi.Environment; .How can i solve this.Plz help me
    ^

    Well, the package doesn't exist. Either it really doesn't or it's in some JAR you didn't include in your classpath or don't even have.
    Are you sure Weblogic is the right thing for you to play with if you can't even solve a compiler prolem like this?

  • Release 12.0.4 "ego" pages: unable to compile standard .java

    Hi All,
    I have downloaded all the necessary files and was able to build a local copy of particular set of pages. I even ran those pages in my local setup.
    Then to understnad the flow I decompiled few controller CLASS files using JAD. Now I am unable to compile the java files (i have just added few System.out.println's) .
    I get errors for the following piece of standard code:
    oaapplicationmodule.invokeMethod("getTrainStationsContent", new Serializable[] {
    key
    , new Class[] {      
    oracle/jbo/Key ---> Cause of error
    I also tried rephrasing "oracle/jbo/Key" as "(Class)oracle.jbo.Key" but no luck.
    The error which is displayed is
    Error(732,13): field oracle not found in class oracle.apps.ego.item.eu.webui.EgoCreateItemPageLayoutCO
    Error(732,20): field jbo not found in class oracle.apps.ego.item.eu.webui.EgoCreateItemPageLayoutCO
    Error(732,24): field Key not found in class oracle.apps.ego.item.eu.webui.EgoCreateItemPageLayoutCO
    I have checked the import section and it looks fine to me.
    Please let me know if any of you have faced this issue before? Am a bit lost here.
    Thanks in advance.,
    Jay

    I tried with almost every other decompiler available... but nothing resolves this issue. Please let me know if you have anyother alternative.
    Thanks again!

  • Without reload the JBoss application server after compile the java

    in Jboss app server.
    duing the developmenet i modify the .java files and compile it. when ever i compiled the .java file i have to restart the jboss service. then only the modification is done.
    so i would like to know where i have to set the configuration for without restart the jboss server

    Dear Vincent
    Its already set the Parameter rdisp/j2ee_start = 0. last week we are upgrade the kernel from 173 to 221. after that this problem was started.
    Regards
    Sriram

  • Attempting to update Bridge CC and Photoshop CC 2014 generates error "Unable to extract the downloaded files. Press Retry to download again.(U44M1I210)

    Attempting to update Bridge CC and Photoshop CC 2014 from the Creative Cloud program generates error "Unable to extract the downloaded files. Press Retry to download again.(U44M1I210). I am running Windows 7. Previous traffic on this topic has not helped my situation.

    Please clean AAM cache By deleting following folder contents: 
    For Mac:
    ·        /Volumes/%Volume Name%/Users/%Username%/Library/Application Support/Adobe/AAMUpdater/1.0
    For Win:
    ·        C:\Users\\AppData\Local\Adobe\AAMUpdater\1.0
    Then try running Updates.
    Regards,
    Ashutosh

  • 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.

  • Where are the .java files compiled from .jsp files stored?

              hi,
              I'm new to weblogic server. When I use Tomcat as the jsp server, it compiles .jsp
              files to .java files and then .class files. So when an error reported I can track
              it in the .java file.
              But what should I do with weblogic? It only saves the .class files in the work
              dir. Or is there a better way to trace errors in jsp files?
              Thanks!
              

    This should give you the information you need to set the keepgenerated flag:
              http://e-docs.bea.com/wls/docs60/jsp/admin.html#53346
              Also, the .java files will be right next to the .class files with are under
              a tmp directory in the /WEB-INF directory under the WEB-INF if it is an open
              directory or in the
              config/mydomain/applications/.wl_temp_do_note_delete/WEB-INF directory if it
              is .war file.
              Sam
              "Raymond" <[email protected]> wrote in message
              news:3b931619$[email protected]..
              >
              > Thanks, but can you tell me more about it? where to set this flag? I'm
              using WLS
              > 6.0sp1.
              >
              > "Sam Pullara" <[email protected]> wrote:
              > >You can turn on the keepgenerated flag if you want to keep the .java
              > >files.
              > >How you do this depends on what version you are using.
              > >
              > >Sam
              > >
              

  • How to compile other java files and run them from my own programs?

    I'm developing a unit testing tool for AspectJ, which can originally generate the stubs for aspect unit to be tested. All these stubs are java files. After generation of stubs, how can I program the code to compile this unit together with these stubs, i.e. how can I put the functionality of compilation and run, e.g. command "javac *.java" and "java *", into my own code.
    Hope you can understand what I mean.
    Thank you in advance.

    When I use Runtime.getRuntime().exec(command) for executing the AspectJ compile command "ajc", "IOException createProcess error=2" always occurs, while it is ok for Java comiple command "javac".
    Why this happens when I use Runtime.getRuntime().exec("ajc Hello.java Test.aj")? Is it the reason that Runtime.exec(String) may not support any command in DOS?
    (ajc is the compile command for the java file and aj file.)
    Thank you in advance.

Maybe you are looking for

  • OBIEE 11g- unable to start application server

    Dear All, I have recently installed OBIEE 11g 11.1.1.6.0 for the first time (enterprise install) am able to login to anaytics page and create reports, but Iam not able to connect to enterprise manger , console. Going through various posts, i came to

  • Hellp needed to resolve  Error

    Hi, While executing a package am getting the below error, on a function call inside a function, I have bolded the error line. Can any help me out to clear this, is that am doing anything wrong, please advice. Error : PLS-00201: identifier 'PRICE' mus

  • Legend in graphs

    The plot function is CW is great but does not have a built-in legend. Are there any examples of a plot with legend available?

  • No airport icon in network settings

    Hi there, I've read hundreds of threads about the airport problems on the macbook pro, as i got the "no airport installed" notification when clicking on the icon. I have a Macbook Pro 13inch and reinstalled it and now my airport icon on the desktop i

  • Iphoto 6 will not export

    I have iphoto 6 and can't export photos to facebook, shutterfly (both of which I used to do) or anything else.  When I click "export" the spinning color wheel pops up and I eventually have to force quit.  I originally thought it was because my OS was