Compile errors using wsgen (WL 6.1sp2)

I'm trying to create an rpc webservice using the wsgen tool, but I'm
running into compilation errors when the tool tries to compile java files
that it has generated. Attached are the two java files that wsgen generated
for my webservice. The errors are pretty straightforward - there is no
identifier in the package statement. Has anyone come across this problem
before? Here's the relevant console output when running Ant:
wsgen-weblogic6:
c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisher.ja
va:1
: <identifier> expected
package ;
^
c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisherFac
tory
.java:1: <identifier> expected
package ;
^
2 errors
[wsgen] Exec failed .. exiting
Thanks,
Timo
[EventPublisherFactory.java]
[EventPublisher.java]

Hello,
Could you post your build.xml? Also could you post the log from ant -verbose? Just a shot, but have
you tried building in a directory tree that does not contain spaces in the name?
Thanks,
Bruce
Timothy O'Hara wrote:
I'm trying to create an rpc webservice using the wsgen tool, but I'm
running into compilation errors when the tool tries to compile java files
that it has generated. Attached are the two java files that wsgen generated
for my webservice. The errors are pretty straightforward - there is no
identifier in the package statement. Has anyone come across this problem
before? Here's the relevant console output when running Ant:
wsgen-weblogic6:
c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisher.ja
va:1
: <identifier> expected
package ;
^
c:\DOCUME~1\tohara\LOCALS~1\Temp\wsgen\tohara39\client-tmp\EventPublisherFac
tory
.java:1: <identifier> expected
package ;
^
2 errors
[wsgen] Exec failed .. exiting
Thanks,
Timo
package ;
public class EventPublisherFactory {
public static EventPublisher getService()
throws javax.naming.NamingException
String url = "http://localhost:80/bas-ws/bas.platform.components.EventPublisherHome/wsdl.jsp";
java.util.Properties h = new java.util.Properties();
h.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
EventPublisher.class.getName());
h.put("weblogic.soap.verbose", "true");
javax.naming.Context context =
new javax.naming.InitialContext(h);
return (EventPublisher)context.lookup(url);
package ;
public interface EventPublisher{
void publishEvent( String arg0 );

Similar Messages

  • [svn:fx-trunk] 5408: Fix for - Compiler error using Reparent in a Halo Navigator.

    Revision: 5408
    Author: [email protected]
    Date: 2009-03-18 20:57:19 -0700 (Wed, 18 Mar 2009)
    Log Message:
    Fix for - Compiler error using Reparent in a Halo Navigator.
    QE Notes: None.
    Doc Notes: None.
    Reviewer: Paul, please review.
    Bugs: SDK-20099
    tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-20099
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav a

  • Compiler error using compareTo

    I get a compiler error when I use compareTo with the Character class. I confirmed the error with following code from The Java Tutorial:
    public class CharacterDemo {
    public static void main(String args[]) {
    Character a = new Character('a');
    Character a2 = new Character('a');
    Character b = new Character('b');
    // ******* Problem is here ************
    int difference = a.compareTo(b);
    if (difference == 0) {
    System.out.println("a is equal to b.");
    } else if (difference < 0) {
    System.out.println("a is less than b.");
    } else if (difference > 0) {
    System.out.println("a is greater than b.");
    System.out.println("a is "
    + ((a.equals(a2)) ? "equal" : "not equal")
    + " to a2.");
    System.out.println("The character " + a.toString() + " is "
    + (Character.isUpperCase(a.charValue()) ? "upper" : "lower")
    + "case.");
    The compilier is complaining that compareTo is not part of the Character class. I am compiling with whatever compilier was installed with Suse Linux 7.1. The code compiles fine on my university's Unix system that I can dial into.
    I figure my Linux version must have some old compiler. But to be honest, I am also new to Linux and am having trouble figuring out what I am compiling with. Can any expert out there give me advice on identifying/updating the Java technology I am using. Thanks in advance.
    Jim

    Check the jdk version using the java command:
    java -versionwhich will output the jdk version you're using.

  • Urgent: Form Compilation Error using frmcmp.sh on OAS 10.1.2, pls help..

    Hi All,
    I am upgrading from OAS 9.0.4 to 10.1.2 where Forms 10g application is deployed.
    When I try to recompile with frmcmp.sh :
    frmcmp.sh userid=system/oracle123@odb module_type=FORM module=menu1.fmb
    I get errors :
    Compiling Procedure GET_PATH...
    Compilation error on procedure GET_PATH:
    PL/SQL ERROR 201 at line 4, column 32
    Identifier 'APPS_MENU1_DET' must be declared
    PL/SQL ERROR 0 at line 4, column 3
    SQL Statement ignored
    Compilation error have occured.
    Form not created
    What cause this error ?
    FYI, on the above compilation I connect to different database/schema, not the one
    which is used by the Form, is this the reason of th error ?
    During compilation, Do I have to connect to the database/schema I used when develop the form ?
    DO I have to create all tables in the schema first before compilation ?
    Tnank you for your hwlp,
    xtanto
    PS. When I compile the same Form with F90genm.sh on OAS 9.0.4, NO ERROR.

    From my experience it's a really bad idea to install OCS into a AS IM. When it comes to upgrades and patches you'll pull your hair out!
    Why not install OCS first and then install the BI into the OCS AS server... I have not checked the certification matrix but that might be a better solution to look into.

  • Studio 8 compiler error using rogue wave header in std mode

    I get the following compiler error. I am using -library=rwtools7_std in the CC command.
    The error is:-
    "/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
    "/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The name istream is ambiguous, istream and std::istream.
    "/opt/studio/SUNWspro/prod/include/CC/rw7/rw/rstream.h", line 46: Error: The type "istream" is incomplete.
    Please help
    Kandiah

    All,
    I'm getting the following error when I moved to Rogue Wave release 7.0 from 4.0. We're using Sun's FORTE C++ compiler version 7.0.
    Please advise
    *** Build for src 'all' target STARTED: Thu Jan 18 16:37:04 EST 2007
    /xenv/Forte/sun4/7.0/5.8p4/prod/bin/CC -g -features=no%conststrings -DCPLUSREL=7 -D_RWCONFIG=12d -DRW_MULTI_THREAD -O -mt -D_REENTRANT -c -I. -I/xenv/rwsp_tools/sun4/5.8p4/7.0/32/core900_12d -I/xenv/mqi/sun4/5.x/5.3.0.5/inc -I/xenv/ccs_standard_s8/sun4/5.8p4/4.1_B1/include MQInfo.cc MQBase.cc ZeusAccountBridge.cc
    MQInfo.cc:
    MQBase.cc:
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/stringid.h", line 50: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/stringid.h", line 51: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/collint.h", line 75: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/collint.h", line 76: Error: A typedef name cannot be used in an elaborated type specifier..
    7 Error(s) detected.
    ZeusAccountBridge.cc:
    "/xenv/ccs_standard_s8/sun4/5.8p4/4.1_B1/include/ccs_data.h", line 126: Warning (Anachronism): Using int(*)(void*,ccs_Data*) to initialize void*.
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..
    "/xenv/Forte/sun4/7.0/5.8p4/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..
    3 Error(s) and 1 Warning(s) detected.

  • Compile errors using bpelx:append

    I'm getting compile errors from one particular bpelx:append. I have others earlier in the bpel code, and they seem to be passing the check.
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    Produces:
    Error(437):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 437 of "D:\BPEL_SANITARIUM\BPELPM\integration\jdev\jdev\mywork\Workspace\identifyPanelMembers\identifyPanelMembers.bpel", XML parsing failed because Invalid content starting with element "bpelx:append".
    [Potential fix]: Fix the invalid XML.
    <assign name="appendTheRest">
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    </assign>
    Produces:
    Error(436):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 436 of "D:\BPEL_SANITARIUM\BPELPM\integration\jdev\jdev\mywork\Workspace\identifyPanelMembers\identifyPanelMembers.bpel", XML parsing failed because Invalid content starting with element "assign".
    [Potential fix]: Fix the invalid XML.
    The code is contained within a Switch block:
    <switch name="Switch_4">
    <case condition="bpws:getVariableData('index') = 1">
    <bpelx:annotation>
    <bpelx:pattern>First time only
    </bpelx:pattern>
    </bpelx:annotation>
    <assign name="setFirstPanelMember">
    <copy>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </copy>
    </assign>
    </case>
    <otherwise>
    <empty name="append.the.rest"/>
    <assign name="appendTheRest">
    <bpelx:append>
    <from variable="set-panel-member" query="/client:set-panel-member"/>
    <to variable="setPanel_setPanel_InputVariable" part="setPanelRequest" query="/setPanelRequest/panel/panel-member"/>
    </bpelx:append>
    </assign>
    </otherwise>
    </switch>
    Any ideas?

    We are also receiving the same error. Our process was built for a client in 10.1.2.0.2 and the GUI interface never really liked the bpelx:append statement - it always showed up as an alert/error. But it worked on 10.1.2.0.2
    Now that the client is upgrading to 10.1.3, it won't actually compile.
    Anyone know of a solution?

  • Odd compile errors using a struct in a vector

    I am following Accelerated C++ by Koenig and Moo to learn C++, using Eclipse as my IDE and the MinGW tool chain. Chapter 4 teaches about the struct concept using a pretty simple multi-file example program which emulates reading in a series of student grades and outputs the averages. The struct it defines is called Student_info. Here is Student_info.h:
    #ifndef STUDENT_INFO_H_GUARD
    #define STUDENT_INFO_H_GUARD
    #include <iostream>
    #include <string>
    #include <vector>
    struct Student_info {
    std::string name;
    double midterm, final;
    std::vector<double> homework;
    bool compare(const Student_info&, const Student_info&);
    std::istream& read(std::istream&, Student_info);
    std::istream& read_hw(std::istream&, std::vector<double>&);
    #endif /* STUDENT_INFO_H_GUARD */
    There are no errors associated with compare, read or read_hw.
    The problem I am having is that even though the simple variable declaration below seems to work,
    #include "Student_info.h"
    int main() {
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    in the sense that the Eclipse code editor signals via i) its color coding that it has found the data type; ii) when I mouseover, it shows me the underlying Student_info definition in the hover box; and iii) the code associated with the variable "record" doesn't generate errors.
    However, when I try to use the students vector within main(), I get 'could not be resolved' errors on the property names or 'invalid arguments' for functions which try to pass the variables. For example,
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    produces a "Method 'size' could not be resolved" error and a "Field 'name' could be resolved" error.
    It's very odd to me, as I said, because mouseover of the vector students declaration at the beginning of main() produces a hover box with the correct struct definition, indicating the include file is being found and contains the intended definition with the 'name' property defined as a string.
    I've been trying to solve this for a couple of days and have searched the web and this site, as well as going over all the code many times. The code seems to be exactly what is in the book and it's not too difficult to figure out what it is supposed to be doing. I haven't been able to find a similar error description here or elsewhere by Googling. These errors prevent the project from compiling and so I can't precede. I'm hoping someone can describe what might possibly cause such a thing.
    Here's a shortened version of the file with main in it:
    #include <algorithm>
    #include <iomanip>
    #include <ios>
    #include <iostream>
    #include <string>
    #include <vector>
    #include <stdexcept>
    #include "Student_info.h"
    //say what standard library names we use
    using std::cin; using std::setprecision;
    using std::cout; using std::sort;
    using std::domain_error; using std::streamsize;
    using std::endl; using std::string;
    using std::max; using std::vector;
    int main() { // begin main
    vector<Student_info> students;
    Student_info record;
    string::size_type maxlen = 0;
    //read and store all the records, and find the length
    // of the longest name
    while(read(cin, record)) {
    maxlen = max(maxlen, record.name.size());
    students.push_back(record);
    //alphabetize the records
    sort(students.begin(), students.end(), compare);
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i) {
    // write the name, padded on the right to maxlen+1 chars
    cout << students[i].name
    << string(maxlen+1 - students[i].name.size(), ' ');
    //compute and write the grade
    cout << endl;
    return 0;
    } // end main
    Here are the 'read' functions, which are in a separate file from main and don't seem to be producing any errors:
    #include "Student_info.h"
    using std::istream; using std::vector;
    istream& read_hw(istream& in, vector<double>& hw) {
    if (in) {
    // get rid of previous contents
    hw.clear();
    // read homework grades
    double x;
    while (in >> x)
    hw.push_back(x);
    // clear the stream so that input will work for the
    // next student
    in.clear();
    return in;
    istream& read(istream& is, Student_info s) {
    // read and store the student's name and midterm and final exam
    is >> s.name >> s.midterm >> s.final;
    read_hw(is, s.homework);
    return is;
    bool compare(const Student_info& x, const Student_info& y) {
    return x.name < y.name;
    }

    Do you mind to try:
    for(unsigned i=0; i < students.size(); ++i)
    instead of :
    for(vector<Student_info>::size_type i=0; i!=students.size(); ++i)

  • Compiler error using T extends S

    The following produces an error on the last call to getWrap.
    incompatible types found: A.Wrap<java.util.HashMap> required: A.Wrap<java.util.Map>
    Is there anything in the declaration of getWrap to signify that S can be a super class of T?
    public class A {
        public static <S, T extends S> Wrap<S> getWrap(T t) {
            return new Wrap<S>(t);
        public static void main(String[] args) {
            Wrap<HashMap> map1 = getWrap(new HashMap()); // compiles
            Wrap<Map> map2 = getWrap((Map) new HashMap()); // compiles
            Wrap<Map> map3 = getWrap(new HashMap()); // incompatible types
        public static class Wrap<E> {
            private final E e;
            public Wrap(E e) {
                this.e = e;
    }

    From what you are saying, in this case, it appears the T extends S adds no value.
    Using explicit paratised types is a bit like casting, in this case casting to a super class.
    My preference would be for
    Wrap<Map> map3 = getWrap((Map) new HashMap());I have noted before that Java does not consider a desired return type. Some languages do, but imagine this is hard to get right. What I imagined was a return type of getWrap(new HashMap()) of something like Wrap<? super HashMap>.
    I have seen generic work very well for return types in other places, however the return type was determined by the IDE rather then the compiler.
    e.g.
    public interface Visitor<V,T> {
        public T visit(V visited) throws RuntimeException;
    // visits an object of type V and triggers optional events of type E
    public interface VisitProxy <V, E> {
        public <T> T visit(Visitor<V, T> visitor, Notifier<E> notifier) throws RuntimeException;
    public class CollectionProxy<E> implements Collection<E>, VisitProxy<Collection<E>, Event<Integer, E>> {
        private final VisitProxy<Collection<E>> proxy;
        public boolean add(E e) {
             return proxy.visit(new <Ctrl-Space>
    // The IDE fills in the following.
            return proxy.visit(new Visitor<Collection<E>, Event<Integer, E>, Boolean>() {
                public Boolean visit(Collection<E> es, Notifier<Event<Integer, E>> notifier) throws RuntimeException {
                    return null;
            });Another key turns the anonymous class into a method so I can make it static.
    Here the IDE is determining the approriate return type. In this case Boolean which can be unboxed into boolean.
    Thank you to everyone who replied.
    BTW: This is a simplified example based on a real program.

  • Compilation errors using jhs 10.1.3.1 and jdeveloper 10.1.3.2

    jdeveloper version: 10.1.3.2.0.4066
    jheadstart version: 10.1.3.1.25
    I have just installed both of the above and am receiving errors on compilation in both my viewcontroller and model projects.
    I receive the following error on the view project as soon as jheadstart is enabled:
    C:\myfilepath\ViewController\public_html\jheadstart\version.jsp
    Error(25,34): identifier Version not found
    which relates to this part of the jsp file in question:
    <HTML>
    <head>
    <title>JHeadstart Version Information
    </title>
    </head>
    <body>
    <H1>JHeadstart Version Information</H1>
    JHeadstart Runtime Version: <B><%= oracle.jheadstart.Version.VERSION %></B>
    </body>
    </html>
    and the following error in the model project after I have generated the application:
    C:\myfilepath\Model\src\test\jhs\model\common\AppModule.java
    Error(5,8): JhsApplicationModule not found
    which relates to this java file
    package test.jhs.model.common;
    import oracle.jbo.ApplicationModule;
    import oracle.jheadstart.model.adfbc.v2.JhsApplicationModule;
    // --- File generated by Oracle ADF Business Components Design Time.
    public interface AppModule extends ApplicationModule, JhsApplicationModule {
    Help.
    (sorry, not sure why this message is ignoring my formatting - makes it a bit hard to read)

    Sean,
    I just found out the same difference! Something must have gone wrong during the final production build. We have created a new build 10.1.3.1.26 with the correct jar file name, which can now be downloaded from cso.oracle.com.
    I apologize for the inconvenience. Anybody that already downloaded 10.1.3.1 build 25, please download build 26, which is the new "official" 10.1.3.1 build number.
    Steven Davelaar,
    JHeadstart Team.

  • An XJC compilation error - Could not load class (..) for type cvsversion

    I've got a strange compilation error using NetBeans 4.0 (I'd guess the version does not matter here) and Ant 1.6.2. When the following task is executed,
    <target name="compile_ofx_schema">
    <antcall target="clean-ofx"/>
    <delete dir="${ofx-jaxb-src.dir}"/>
    <mkdir dir="${ofx-jaxb-src.dir}" />
    <xjc schema="${schema.dir}/ofx102.xsd" package="com.xxx.ofx102" target="${ofx-jaxb-src.dir}">
    <arg value="-nv" />
    <arg value="-extension" />
    </xjc>
    </target>
    I get the error from NetBeans console,
    Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
    Class java.io.IOException loaded from parent loader (parentFirst)
    D:\appserver\build.xml:797: unable to parse the schema. Error messages should have been provided
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    BUILD FAILED (total time: 4 seconds)
    Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
    Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
    And when I run the Ant task from the command line, I don't get the error at all.
    Any help is greatly appreciated.

    That was a great finding from you. Thank you.
    I followed your alternative approach and updated the ant.jar file. The "Could not load class..." error went away but the stack trace still remains. Now I am clueless again since I have ant on the debug mode and can't find any more useful info.
    Class com.sun.tools.xjc.reader.internalizer.LocatorTable loaded from ant loader (parentFirst)
    Class java.util.HashSet loaded from parent loader (parentFirst)
    Class javax.xml.parsers.DocumentBuilderFactory loaded from parent loader (parentFirst)
    Couldn't load Resource org/netbeans/core/xml/DOMFactoryImpl.class
    Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.DocumentBuilderFactory
    Class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl loaded from parent loader (parentFirst)
    Class javax.xml.parsers.SAXParserFactory loaded from parent loader (parentFirst)
    Couldn't load Resource org/netbeans/core/xml/SAXFactoryImpl.class
    Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.SAXParserFactory
    Class org.apache.crimson.jaxp.SAXParserFactoryImpl loaded from parent loader (parentFirst)
    Class javax.xml.parsers.DocumentBuilder loaded from parent loader (parentFirst)
    Class java.util.Map loaded from parent loader (parentFirst)
    Class javax.xml.parsers.SAXParser loaded from parent loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/xmlschema/parser/XMLSchemaInternalizationLogic$ReferenceFinder.class
    Finding class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/AbstractReferenceFinderImpl.class
    Class org.xml.sax.helpers.XMLFilterImpl loaded from parent loader (parentFirst)
    Class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl loaded from ant loader (parentFirst)
    Class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder loaded from ant loader (parentFirst)
    Class org.xml.sax.XMLFilter loaded from parent loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.internalizer.VersionChecker
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/VersionChecker.class
    Class com.sun.tools.xjc.reader.internalizer.VersionChecker loaded from ant loader (parentFirst)
    Finding class com.sun.tools.xjc.reader.internalizer.DOMBuilder
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/DOMBuilder.class
    Finding class com.sun.xml.bind.marshaller.SAX2DOMEx
    Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-impl.jar com/sun/xml/bind/marshaller/SAX2DOMEx.class
    Class org.xml.sax.ContentHandler loaded from parent loader (parentFirst)
    Class com.sun.xml.bind.marshaller.SAX2DOMEx loaded from ant loader (parentFirst)
    Class com.sun.tools.xjc.reader.internalizer.DOMBuilder loaded from ant loader (parentFirst)
    Class java.util.Stack loaded from parent loader (parentFirst)
    Class org.w3c.dom.Document loaded from parent loader (parentFirst)
    Class org.xml.sax.XMLReader loaded from parent loader (parentFirst)
    Class org.w3c.dom.Node loaded from parent loader (parentFirst)
    Class org.w3c.dom.Element loaded from parent loader (parentFirst)
    Class javax.xml.parsers.ParserConfigurationException loaded from parent loader (parentFirst)
    Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
    Class java.io.IOException loaded from parent loader (parentFirst)
    D:\bbw\build\Common_3.6\Packaged\appserver\build.xml:799: unable to parse the schema. Error messages should have been provided
    at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
    at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
    at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    BUILD FAILED (total time: 1 second)
    Any suggestions? BTW, I did not upgrade NetBeans to v5.5 due that my code is still JDK1.4 based.

  • Errors using aCC 3.31--- Unexpected 'std'

    [Compilation Errors using aCC 3.31/HP-UX 11.0 --
                           Unexpected 'std']
    Hi,
    I get the following errors when I try to include 'occi.h' in my programs while working with the OCCI classes for Oracle9i database connectivity. Please let me know if I'm missing anything or perhaps do anything different to get rid of this problem.
    Thanks for your time.
    Chandra M.
    =========================================================
    Error 19:
    "/nfs/scec/disks/imo043/oracle/92/product/9.2.0/rdbms/demo/occiCommon.h",
    line 339 # Unexpected 'std'.
    void getVector( const AnyData &any, OCCI_STD_NAMESPACE::vector&lt;OCCI_STD_N
    ^^^^^^^^^^^^^^^^^^
    Error 19:
    "/nfs/scec/disks/imo043/oracle/92/product/9.2.0/rdbms/demo/occiCommon.h",
    line 339 # Unexpected 'std'.
    void getVector( const AnyData &any, OCCI_STD_NAMESPACE::vector&lt;OCCI_STD_NAMESPACE::
    ^^^^^^^^^^^^^^^^^^
    =========================================================

    Yeah, I did use that but it did give me problems when using aCC 3.31. But later on when I used aCC 3.34, it barely compiled with a bunch of Future errors and Warnings. BTW. do you have any specific version of aCC that has to be used with occi.h. Please let me know.
    And specifically, when I had to use Rogue Wave Libraries in the program code.
    Thanks a lot
    Chandra M.

  • Error while using wsgen

    Hi Guys,
    I am trying to build my first Web Service using Java 1.5.
    The interface is as follows:
    package com.webapp.test.ws;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface TestWSIF extends Remote
         public String sayHello(String strName) throws RemoteException;
    The implementation class is as follows:
    package com.webapp.test.ws;
    import java.rmi.RemoteException;
    public class TestWSImpl implements TestWSIF
         public String sayHello(String strName) throws RemoteException
              return "Hello " + strName;
    Now when I try to generated WSDL and other stuff using wsgen with the following command:
    wsgen -cp ./bin com.webapp.test.ws.TestWSImpl -d generated -wsdl:soap1.1 -servicename {http://testspace}/SayHello
    it gives me following error:
    Problem encountered during annotation processing;
    see stacktrace below for more information.
    modeler error: A web service endpoint could not be found
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:204)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:197)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:185)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:3
    54)
    at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:232)
    at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationPr
    ocessors.java:60)
    at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
    at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
    at com.sun.tools.apt.main.Main.compile(Main.java:1075)
    at com.sun.tools.apt.main.Main.compile(Main.java:938)
    at com.sun.tools.apt.Main.processing(Main.java:95)
    at com.sun.tools.apt.Main.process(Main.java:85)
    at com.sun.tools.apt.Main.process(Main.java:67)
    at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)
    at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)
    at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.tools.ws.Invoker.main(Invoker.java:63)
    at com.sun.tools.ws.WsGen.main(WsGen.java:30)
    error: compilation failed, errors should have been reported
    Any help is this error will be very much helpful to me in developing my first web service.
    Thanks in advance.

    Use @WebService annotation. Look at The Java Web Service Tutorial (JAX-WS 2.1)

  • Compiler error when useing switch statements in an inner class

    I have defined several constants in a class and want to use this constans also in an inner class.
    All the constants are defined as private static final int.
    All works fine except when useing the switch statement in the inner class. I get the compiler error ""constant expression required". If I change the definition from private static final to protected static final it works, but why?
    What's the difference?
    Look at an example:
    public class Switchtest
       private static final int AA = 0;     
       protected static final int BB = 1;     
       private static int i = 0;
       public Switchtest()
          i = 0; // <- OK
          switch(i)
             case AA: break; //<- OK, funny no problem
             case BB: break; //<- OK
             default: break;
      private class InnerClass
          public InnerClass()
             i = 0; // <- OK: is accessible
             if (AA == i) // <- OK: AA is seen by the inner class; i  is also accessible
                i = AA + 1;
             switch(i)
                case AA: break; // <- STRANGE?! Fail: Constant expression required
                case BB: break; // <- OK
                default: break;
    }Thank's a lot for an explanation.

    Just a though:
    Maybe some subclass of Switchtest could decalare its own variable AA that is not final, but it can not declare its own BB because it is visible from the superclass. Therefore the compiler can not know for sure that AA is final.

  • Weblogic.jspc outofmemory error while compiling jsps using ant in eclipse

    Hi all,
    I am trying to execute this target in my ant build:
         <target name="jspc">
              <java classname="weblogic.jspc" fork="yes">
                   <arg line="-verbose -verboseJavac -compileAll -webapp ${project.jsp.dir} -d ${project.jsp.class.dir}" />
                   <classpath>
                        <pathelement path="${classpath}" />
                   </classpath>
         </java>
         </target>
    I am getting the following error:
    [java] Error: [jspc]: 0 file(s) failed:
    [java] [Compilation errors : ]
    [java] The system is out of resources.
    [java] Consult the following stack trace for details.
    [java] java.lang.OutOfMemoryError
    [java] at weblogic.jspc.doCompile(jspc.java:861)
    [java] at weblogic.jspc.runJspc(jspc.java:654)
    [java] at weblogic.jspc.runBodyInternal(jspc.java:412)
    [java] at weblogic.jspc.runBody(jspc.java:319)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:192)
    I am using weblogic 8.1, eclipse3.1, java1.4.1.
    Can some one please help me with this issue?
    thanks in advance.

    --> some error on posting please refer to the next post...
    From the error logs we can trace it out to the web project's Build.xml file ....I was getting a similar error and by commenting out the following lines in the web project's Build.xml I am able to run the build script correctly and get a EAR file. The lines are
    <!--
    <assemble
    moduleDir="${generated.module.root}"
    moduleName="${project.name}"
    srcOutputDir="${assembly.src}"
    appRootDir="${ear.root}">
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.WebAppAssemblyContext$Factory" />
    <assemblyContext factory="org.apache.beehive.controls.runtime.assembly.AppAssemblyContext$Factory" />
    <classpath refid="assembly.classpath" />
    <fileset dir="${project.dir}">
    <include name="**/*.controls.properties" />
    </fileset>
    </assemble>
         -->
    Please check it now, also if any one can let us know the function or role played by the above lines it would be great. Also if there would be any future or unseen problems by commenting out these lines please do let us know...
    Thanks
    -MiM
    Edited by prodigymonish83 at 10/22/2007 5:56 AM

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

Maybe you are looking for

  • Print Layout Designer

    Hi, I want to create one report for sales invoice using 'Print Layout Designer'. 1. Some fields like Price, Tax Amount are not picking up from Table, rather 'variable' is being used for them. So how to use these variables and on what basis variable n

  • Double sided

    My HP Officejet Pro 8500A plus no longer prints double sided. It has successfully printed double sided for the past two years.  I know how to change the printer properties to print double sided, but the software wont allow me to set the print to doub

  • Multiple ISP load balancing

    Hi All, I am having three ISP link at location and I want to use all of them for my outgoing Internet traffic,Can anyone help me how can I accomplish this. Thanks SS

  • Do I really need firmware 4.1.7 to run in OS X?

    I've realized the most current firmware (4.1.7) isn't on my HD while I'm running in 10.4.11. According to: http://docs.info.apple.com/article.html?artnum=75128 I'd have to partition my drive and install OS 9.1 in order to install the 4.1.7 firmware u

  • Please help??  complete computerphobic!!  with java error message!

    Please help? I have installed the newest version of Java this morning and then did a restart. anyway, when i tried to log onto the online game "Runescape" I found it hard to do. I got the error: Java.lang.ArrayIndexOutOfBoundsException: 8 I have abso