Ant mappingtool problem

Greetings
I have a problem using the mappingtool from ant
with kodo 3.0.0b1.
I realize that some ant integration problems are
being fixed in beta2 but I hadn't seen this
problem mentioned so I thought I'd let you know...
Please let me know if I'm doing something wrong.
Note that it seems to work fine when I use the
commandline mappingtool utility.
The ant tasks are set up as follows:
<taskdef name="mappingtool"
classname="kodo.jdbc.ant.MappingToolTask"
classpathref="kodo-tool-classpath" />
<target name="killdb" depends="deploy-runtime" description="Drop JDO specific tables" >
<mappingtool action="drop" ignoreErrors="true">
<fileset refid="all-jdo-files" />
<classpath refid="runtime-path" />
</mappingtool>
</target>
When I execute this target, I see the following exception:
killdb:
[mappingtool] java.lang.IllegalAccessError: tried to access method serp.util.ReferenceMap.removeExpired()V from class com.solarmetric.jdbc.ConnectionPoolImpl
[mappingtool] at com.solarmetric.jdbc.ConnectionPoolImpl.getConnection(ConnectionPoolImpl.java:120)
[mappingtool] at com.solarmetric.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:230)
[mappingtool] at com.solarmetric.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:128)
[mappingtool] at kodo.jdbc.schema.DataSourceFactory$DefaultsDataSource.getConnection(DataSourceFactory.java:235)
[mappingtool] at kodo.jdbc.sql.DBDictionaryFactory.getDBDictionary(DBDictionaryFactory.java:169)
[mappingtool] at kodo.jdbc.conf.JDBCConfigurationImpl.getDBDictionary(JDBCConfigurationImpl.java:489)
[mappingtool] at kodo.jdbc.schema.DataSourceFactory.configureDataSource(DataSourceFactory.java:136)
[mappingtool] at kodo.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:759)
[mappingtool] at kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource(JDBCConfigurationImpl.java:842)
[mappingtool] at kodo.jdbc.conf.JDBCConfigurationImpl.getDataSource2(JDBCConfigurationImpl.java:851)
[mappingtool] at kodo.jdbc.schema.SchemaTool.<init>(SchemaTool.java:64)
[mappingtool] at kodo.jdbc.meta.MappingTool.newSchemaTool(MappingTool.java:186)
[mappingtool] at kodo.jdbc.meta.MappingTool.getSchemaTool(MappingTool.java:176)
[mappingtool] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:774)
[mappingtool] at kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:136)
[mappingtool] at com.solarmetric.ant.TaskBase.execute(TaskBase.java:105)
[mappingtool] at org.apache.tools.ant.Task.perform(Task.java:319)
[mappingtool] at org.apache.tools.ant.Target.execute(Target.java:309)
[mappingtool] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[mappingtool] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[mappingtool] at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[mappingtool] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[mappingtool] at org.apache.tools.ant.Main.start(Main.java:196)
[mappingtool] at org.apache.tools.ant.Main.main(Main.java:235)

Thanks for your response, but this wasn't the problem.
I don't have (never had) serp.jar lying around.
serp appears to be in both kodo-jdo.jar and
kodo-jdo-runtime.jar but no other jar files...
Before running ant, my CLASSPATH is set to
"nf.jar:ojdbc14.jar"
(nf.jar contains the kodo.properties file -
required here to pick up license key, etc)
I printed out the CLASSPATH being used inside my
ant target and it is as follows:
antExtensions.jar:
common.jar: (one of mine)
gnu-getopt.jar:
j2ee.jar:
jakarta-commons-collections-2.1.jar:
jakarta-commons-lang-1.0.1.jar:
jakarta-commons-logging-1.0.2.jar:
jakarta-commons-pool-1.0.1.jar:
jakarta-oro-2.0.7.jar:
jakarta-regexp-1.1.jar:
jca1.0.jar:
jdbc-hsql-1_7_0.jar:
jdbc2_0-stdext.jar:
jdo1_0.jar:
jndi.jar:
jta-spec1_0_1.jar:
junit-3.8.1.jar:
kodo-jdo-runtime.jar:
kodo-jdo.jar:
log4j-1.2.8.jar:
nf.jar: (one of mine)
ojdbc14.jar:
sax.jar:
wl-startup.jar:
xalan.jar:
xercesImpl.jar:
xml-apis.jar
Abe White wrote:
If you still have the serp.jar that shipped with previous versions of
Kodo in your classpath, make sure you remove it. Kodo 3 bundles the
serp classes within the kodo jar.
Was that the problem?

Similar Messages

  • JAVA + ANT = JARs problems

    Hi ppl, I have one problem and hope that someone could help me, let's go...
    I use ant to build a project, I have more than one JAR and they use each other... Well all Jars are in the same directory and I need to change It. I must put one JAR, the main one, on other specific folder. But the others must remain in the same directory. Ex:
    C:\View\View.JAR
    C:\View\Support.JAR
    C:\Main\Main.JAR
    I suppose that my problema is with the classpath, I don't have any environment variable seted on windows, I just use the ones on eclipse. When I build my project I tried to pass the C:\Main\Main.JAR in my Ant's xml, But it doesn't work.
    See the code :
    Nowaday
    <property name="classpathOutros" value="Main.jar"/>
    //I tried:
    <property name="classpathOutros" value="c:\Main\Main.jar"/>The JAR code
       <target name="GIXPDV" depends="COMPILE">
             <jar destfile="${distDir}/VIEW.JAR" basedir="${buildDir}" includes="myPackage/venda/**">
                <manifest>
                   <attribute name="Built-By" value="${user.name}" />
                   <attribute name="Main-Class" value="myPackage.venda.FrmVenda" />
                   <attribute name="Class-Path" value="${classpathOutros}" />
                </manifest>
             </jar>
          </target>myPackage.venda.FrmVenda --- > This one is inside my View.JAR .... but it must access some classes in Main.jar.
    I hope that you understand the problem, sorry for the bad English..... I'm working on it.... lol
    Edited by: Matheus.Omega.Mendes on Apr 25, 2008 7:41 AM

    What do you meaning with "Circular references" ?In this case it would mean that you have the following 4 classes: A, B, C, D.
    In your Main jar it has A and D
    In one of your second jars it has B and C.
    Then B (2nd) relies on A (main)
    Then D (main) relies on C (2nd)
    Other than that, and excluding any eclipse magic, the fact that you are building jars and posting them to certain dirs doesn't need to matter. During the build rather than relying on jars, just rely on a class path with classes not jars.

  • Ant File Problem in Eclipse

    Hey guys,
    I am having alot of trouble getting a simple ant buildfile to work in eclipse.
    I am following the tutorial on here (the part about ant files):
    http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.user/gettingStarted/qs-93_project_builder.htm
    I have created a simple java project called HelloWorld and created a build file below in a package 'org':
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="HelloWorld" default="Hello" basedir=".">
    <property name="HelloText" value="Hello"/>
        <target name="Hello">
            <echo>${HelloText}</echo>
        </target>
    </project>According to the tutorial, I should get an outline in Eclipse (i use 3.2), etc, etc however I only get problems:
    - Whenever I save the file I get "Save Failed: org/apache/tools/ant/launch/AntMain"
    - When I attempt to add the buildfile to the 'Ant' pane on the right, I get error:
    "failed to parse ant build file"
    If anyone has any advice on how to get a simple ant file like the one above working, it would be so much appreciated!
    Thanks
    Gerry
    ant newbie

    doremifasollatido wrote:
    cotton.m wrote:
    Hey dore! What a pleasant surprise seeing you here.Thanks! Yep, I'm here. Not so late as there. :-P
    Just thought I'd see what was going on around here these days (not that I figured much would change,the more things change...
    but always good to log in and answer a few questions at least now and again).Indeed, very much so.
    PS NR sent me an invite to another job networking site I will respond but I don't think I will be of much help, but I do know who NR is because sometimes he seems to think I won't know though I don't know many other NRs so it's hard to not know. You know. ;)

  • HELP!  ANT CLASSPATH Problems!!!!

    Hi All,
    I'm having a problem getting the JDBC driver for MySQL in the CLASSPATH using ANT. I'm getting a java.lang.ClassNotFoundException: com.mysql.jdbc.Driver exception when my code attempts to access the MySQL database. I have the "mysql-connector-java-3.0.11-stable-bin.jar" file in the same directory as my ANT Build.xml file.
    Here's what I have in my ANT Build.xml file:
    <!--
    =====================================================
    = CLASSPATH
    ===================================================== -->
    <path id="compile.classpath">
    <!--
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>
    -->
    </path>
    <path id="run.classpath">
    <pathelement location="${basedir}/mysql-connector-java-3.0.11-stable-bin.jar"/>
    </path>
    Your help is greatly appreciated.
    Also, I cannot find any good documentation on using ANT. I've been to http://ant.apache.org/manual/index.html and find it to be very difficult to get the information I'm looking for. Does anyone know of a link with good documentation on configuring the ANT Build.xml file?
    Thanks

    Sorry, I was in a hurry when I put that post up. I just wanted to save someone the trouble of responding to my question. Below is a copy of my ANT target for executing my server code. Inside the target you will see a classpath tag, inside that tag is the pathelement location for the jar file that I was trying to get in my classpath at runtime.
       <!--
       =====================================================
       =                  TARGET: server
       =
       = Used to execute an instance of the server application.
       ===================================================== -->
       <target name="server" depends="compile"
                          description="Executes a server instance">
          <delete dir="${mysql.books}"/>
           <mkdir dir="${mysql.books}"/>
             <copy todir="${mysql.books}">
              <fileset dir="${basedir}/booksdb"/>
          </copy>
          <java classname="server.Server" fork="true">
             <classpath>
                <pathelement path="${build.home}/classes"/>
                <pathelement location="${basedir}/mysql-connector-java-3.0.11-stable-bin.jar"/>
             </classpath>
          </java>
       </target>

  • Ant compile Problem?

    Can who tell that is what happening for the following problem? Is that any problem of my build.xml?
    Below is the output that come out in the dos environment:-
    C:\jwsdp-1.3\apache-ant\bin>ant
    Buildfile: build.xml
    BUILD FAILED
    The <property> task doesn't support the "files" attribute.
    Total time: 2 seconds
    C:\jwsdp-1.3\apache-ant\bin>
    My build.xml is below:-
    <?xml version="1.0"?>
    <!--
    Copyright (c) 2003 Sun Microsystems, Inc.
    All rights reserved.
    -->
    <project name="acme_dao" default="all" basedir=".">
    <property files="../../../../mydomain.properties"/>
    <property name="build.compiler" value="${JAVAC}"/>     
    <property name="source" value="."/>
    <target name="all" depends="compile"/>
    <target name="compile">
    <javac srcdir="${source}"
    destdir="${SERVER_CLASSES}"
    includes="AcmeDAO.java, AcmeDAOImpl.java"/>
    </target>
    <target name="run">
    <java classname="jws.ch3.db.AcmeDAOImpl"
    fork="yes" failonerror="true">
    <classpath>
    <pathelement path="${CLASSPATH}"/>
    </classpath>
    </java>
    </target>
    </project>

    I already solve that problem but another error. Can anyone please help me to solve that problem. Thanks very much.
    Below is the output of the DOS environment: -
    C:\jwsdp-1.3\apache-ant\bin>ant
    Buildfile: build.xml
    compile:
    BUILD FAILED
    file:C:/jwsdp-1.3/apache-ant/bin/build.xml:21: destination directory "C:\jwsdp-1
    .3\apache-ant\bin\${SERVER_CLASSES}" does not exist or is not a directory
    Total time: 1 second
    C:\jwsdp-1.3\apache-ant\bin>
    Below is the Build.xml: -
    <!--
    Copyright (c) 2003 Sun Microsystems, Inc.
    All rights reserved.
    -->
    <project name="acme_dao" default="all" basedir=".">
         <property file="../../../mydomain.properties"/>
         <property name="build.compiler" value="${JAVAC}"/>
         <property name="source" value="."/>
         <target name="all" depends="compile"/>
         <target name="compile">
         <javac srcdir="${source}"
         destdir="${SERVER_CLASSES}"
         includes="AcmeDAO.java, AcmeDAOImpl.java"
         />
         </target>
         <target name="run">
         <java classname="jws.ch3.dao.AcmeDAOImpl"
         fork="yes" failonerror="true">
         <classpath>
         <pathelement path="${CLASSPATH}"/>
         </classpath>
         </java>
         </target>
         </project>

  • Ant build problems

    I am having problems with the build scripts
    I can compile and when I tried to create a ear file using ant I am getting the following error.
    I can directly create ear file by manually exporting to ear file from the export. I posted this on the newsgroup also
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample>ant stage
    Buildfile: build.xml
    init:
    stage:
    [delete] Deleting directory C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    [mkdir] Created dir: C:\beabeta\user_projects\w4WP_workspaces\sample\sample\
    .staging
    [copy] Copying 4 files to C:\beabeta\user_projects\w4WP_workspaces\sample\s
    ample\.staging
    BUILD FAILED
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:129: The follow
    ing error occurred while executing this line:
    jar:file:/C:/beabeta/WEBLOG%7e1/workshop/lib/wlw-antlib.jar!/com/bea/wlw/antlib/
    antlib.xml:97: The following error occurred while executing this line:
    C:\beabeta\user_projects\w4WP_workspaces\sample\sample\build.xml:135: The follow
    ing error occurred while executing this line:
    Target `stage.to.ear' does not exist in this project.

    Build is working now
    When we are generating the ant build files for each project we have to choose the Worshop Ant Script instead of ant build files.
    It is not intializing the workspace directory also

  • Ant deploy problem

    Hi, there,
    I'm new to Jave Web Service application developer, I've encounter a problem when I deploy the example "C:\jwstutorial13\examples\gs" , but both "ant build" and "ant package" are successful, when run "ant deploy", I see the following message:
    C:\jwstutorial13\examples\gs>ant deploy
    Buildfile: build.xml
    deploy:
    BUILD FAILED
    file:C:/jwstutorial13/examples/common/targets.xml:41: java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/admin/deploy?path=%2Fgs
    pls help me, thanks!!!!

    The problem is that you haven't set the build properties and path variables as described in the tutorial preface:
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/About.html#wp63742
    See the section Building the Examples

  • Ant MappingTool NoSuchMethodError (kodo 4.0)

    I switched to Kodo 4.0 from Kodo 3.4 and the ant build file that was using the MappingToolTask now throws an error
    Apache Ant version 1.6.2 compiled on July 16 2004
    Buildfile: build.xml
    Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_06\jre
    Detected OS: Windows XP
    Build sequence for target `modelsdb-mapping' is [resource, modelsdb-mapping]
    resource:
    [copy] db\data\models\models.jdo omitted as db/data/models/models.jdo is up to date.
    [copy] db\data\models\models.mapping omitted as db/data/models/models.mapping is up to date.
    [copy] db\data\referencedb\referencedb.jdo omitted as db/data/referencedb/referencedb.jdo is up to date.
    [copy] db\data\referencedb\referencedb.mapping omitted as db/data/referencedb/referencedb.mapping is up to date.
    [copy] db\data\system\system.jdo omitted as db/data/system/system.jdo is up to date.
    [copy] db\data\system\system.mapping omitted as db/data/system/system.mapping is up to date.
    modelsdb-mapping:
    [mappingtool] 15 WARN [main] kodo.Runtime - The property named "kodo.jdbc.VersionIndicator" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.MappingFactory".
    [mappingtool] 31 WARN [main] kodo.Runtime - The property named "kodo.MetaDataLoader" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.MetaDataFactory".
    [mappingtool] 31 WARN [main] kodo.Runtime - The property named "kodo.jdbc.SequenceFactory" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.SchemaFactory".
    [mappingtool] 47 WARN [main] kodo.Runtime - The property named "kodo.jdbc.SubclassMapping" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.SubclassFetchMode".
    [mappingtool] 47 WARN [main] kodo.Runtime - The property named "kodo.PersistenceManagerImpl" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.PersistenceServer".
    [mappingtool] 47 WARN [main] kodo.Runtime - The property named "kodo.RetainValuesInOptimistic" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.Optimistic".
    [mappingtool] 296 WARN [main] kodo.Runtime - The property named "kodo.CopyObjectIds" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.Compatibility".
    [mappingtool] 296 WARN [main] kodo.Runtime - The property named "kodo.jdbc.ForeignKeyConstraints" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.ConnectionDecorators".
    [mappingtool] 296 WARN [main] kodo.Runtime - The property named "kodo.PersistentClasses" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.PersistenceServer".
    [mappingtool] 546 WARN [main] kodo.Runtime - The property named "kodo.jdbc.ClassIndicator" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.MappingFactory".
    [mappingtool] 546 WARN [main] kodo.Runtime - The property named "kodo.SubclassFetchMode" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.SubclassFetchMode".
    [mappingtool] 546 WARN [main] kodo.Runtime - The property named "kodo.ObjectLookupMode" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.TransactionMode".
    [mappingtool] 795 WARN [main] kodo.Runtime - The property named "kodo.RestoreMutableValues" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.RestoreState".
    [mappingtool] 795 WARN [main] kodo.Runtime - The property named "kodo.PersistenceManagerServer" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.PersistenceServer".
    [mappingtool] 795 WARN [main] kodo.Runtime - The property named "kodo.EagerFetchMode" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.EagerFetchMode".
    [mappingtool] 1045 WARN [main] kodo.Runtime - The property named "kodo.jdbc.DataSourceMode" was not recognized and will be ignored, although the name closely matches a valid property called "kodo.jdbc.EagerFetchMode".
    [mappingtool] 1045 WARN [main] kodo.Runtime - The property named "kodo.RemoteCommitTransmitAddObjectIds" was not recognized and will be ignored.
    [mappingtool] 1918 INFO [main] kodo.Tool - Mapping tool running on type "class db.data.models.JlpConfigData" with action "refresh".
    [mappingtool] java.lang.NoSuchMethodError: kodo.meta.AbstractMetaDataFactory.access$001(Lkodo/jdo/DeprecatedJDOMetaDataFactory;)Lkodo/meta/MetaDataRepository;
    [mappingtool] at kodo.jdo.DeprecatedJDOMetaDataFactory$ExtensionTranslatingParser.<init>(DeprecatedJDOMetaDataFactory.java:238)
    [mappingtool] at kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory$1.<init>(AbstractDeprecatedJDOMappingFactory.java:245)
    [mappingtool] at kodo.jdo.jdbc.AbstractDeprecatedJDOMappingFactory.newParser(AbstractDeprecatedJDOMappingFactory.java:243)
    [mappingtool] at kodo.jdo.JDOMetaDataFactory.getParser(JDOMetaDataFactory.java:65)
    [mappingtool] at kodo.jdo.JDOMetaDataFactory.load(JDOMetaDataFactory.java:95)
    [mappingtool] at kodo.jdo.jdbc.MappingFileDeprecatedJDOMappingFactory.load(MappingFileDeprecatedJDOMappingFactory.java:86)
    [mappingtool] at kodo.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:432)
    [mappingtool] at kodo.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:274)
    [mappingtool] at kodo.jdbc.meta.MappingRepository.getMapping(MappingRepository.java:241)
    [mappingtool] at kodo.jdbc.meta.MappingTool.refresh(MappingTool.java:755)
    [mappingtool] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:689)
    [mappingtool] at kodo.jdbc.meta.MappingTool.run(MappingTool.java:1133)
    [mappingtool] at kodo.jdbc.ant.MappingToolTask.executeOn(MappingToolTask.java:214)
    [mappingtool] at com.solarmetric.ant.AbstractTask.execute(AbstractTask.java:167)
    [mappingtool] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [mappingtool] at org.apache.tools.ant.Task.perform(Task.java:364)
    [mappingtool] at org.apache.tools.ant.Target.execute(Target.java:341)
    [mappingtool] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [mappingtool] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    [mappingtool] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    [mappingtool] at org.apache.tools.ant.Main.runBuild(Main.java:673)
    [mappingtool] at org.apache.tools.ant.Main.startAnt(Main.java:188)
    [mappingtool] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
    [mappingtool] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
    Does anyone have any clue as to why this is happening?
    Mark

    Basically what I did was I just got rid of my 3.4 properties files and started with something very basic
    # Kodo JDO Properties configuration
    #LICENSE KEY
    kodo.LicenseKey: xxxxx
    javax.jdo.PersistenceManagerFactoryClass: kodo.jdbc.runtime.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionDriverName: org.hsqldb.jdbcDriver
    javax.jdo.option.ConnectionUserName: sa
    javax.jdo.option.ConnectionPassword:
    javax.jdo.option.ConnectionURL: jdbc:hsqldb:MepDatabase
    javax.jdo.option.Optimistic: true
    javax.jdo.option.RetainValues: true
    javax.jdo.option.NontransactionalRead: true
    javax.jdo.option.NontransactionalWrite: false
    javax.jdo.option.DetachAllOnCommit: true
    #kodo stuff
    kodo.AutoDetach: commit
    kodo.Log: DefaultLevel=INFO, Runtime=INFO, Tool=INFO, SQL=TRACEThen I just looked at the 3.4 properties one by one to find the 4.0 equivalent. What actually worked for me was something very basic actually - appearently a lot of the properties in the legacy file were really unneeded or actually set to their default.
    Oh yeah, I think this line gave me trouble.
    javax.jdo.PersistenceManagerFactoryClass: kodo.jdbc.runtime.JDBCPersistenceManagerFactoryThe 3.4 value for this property was kodo.jdbc.runtime.JDBCPersistenceManagerFactory but according to the 4.0 documentation it should be kodo.jdo.PeristenceManagerFactoryImpl.
    Hope that helps, good luck.

  • Wsdlc Ant Task - Problem creating java files in the correct package

    In eclipse, for weblogic 9.2
    Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
    autogen.src.dir=../code/java/beaAutoGen
    base.dest=../../../var/build/wsmToPlmWS
    bea.build.dir=beaBuild
         <target name="generate-from-wsdl" depends="prepare">
              <delete dir="${src.dir}" includeemptydirs="true" />
              <delete dir="${autogen.src.dir}" includeemptydirs="true" />
              <wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
                   destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
                   packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
                   srcServiceName="WSPlmMto_Service"
                   debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
                   verbose="on" classpathref="bea-classpath" />
    <!-- unjar to get the all the details so we can tokenize -->
              <unjar dest="${autogen.src.dir}"
                   src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
    <!-- copy over the impl file -->
              <copy todir="../code/java/src">
                   <fileset dir="${base.dest}/${bea.build.dir}/impl" />
              </copy>
         </target>

    In eclipse, for weblogic 9.2
    Using the wsdlc WebLogic Web Services Ant Task, I am trying to auto-generate the java files for the web service based on the WSDL. I have specified the packageName as one of the parameters. However the java files are being created and packaged based on the TargetNameSpace of the WSDL rather then under the package name specified. Following is part of my build.xml
    autogen.src.dir=../code/java/beaAutoGen
    base.dest=../../../var/build/wsmToPlmWS
    bea.build.dir=beaBuild
         <target name="generate-from-wsdl" depends="prepare">
              <delete dir="${src.dir}" includeemptydirs="true" />
              <delete dir="${autogen.src.dir}" includeemptydirs="true" />
              <wsdlc srcWsdl="../config/sourceWSDL/MRPBindingPort.wsdl"
                   destJwsDir="${base.dest}/${bea.build.dir}/compiledWsdl" destImplDir="${base.dest}/${bea.build.dir}/impl"
                   packageName="com.lmco.iplm.webservices.wsmtoplm" debug="on"
                   srcServiceName="WSPlmMto_Service"
                   debugLevel="DEBUG" autoDetectWrapped="true" jaxRPCWrappedArrayStyle="true"
                   verbose="on" classpathref="bea-classpath" />
    <!-- unjar to get the all the details so we can tokenize -->
              <unjar dest="${autogen.src.dir}"
                   src="${base.dest}/${bea.build.dir}/compiledWsdl/MRPBindingPort_wsdl.jar" />
    <!-- copy over the impl file -->
              <copy todir="../code/java/src">
                   <fileset dir="${base.dest}/${bea.build.dir}/impl" />
              </copy>
         </target>

  • Ant mxmlc problem with SharedResources

    Hi
    i am trying to create an application using flexlib and arcgis api for flex. I compile my flex app using ant with this task
    <target name="flex-compile">
            <mxmlc file="${web.visor}/paginas/main.mxml" locale="en_US" keep-generated-actionscript="false" services="${webinf.visor}/flex/services-config.xml">
                <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
                <source-path path-element="${FLEX_HOME}/frameworks" />
                <compiler.library-path dir="${FLEX_HOME}/frameworks" append="true">
                    <include name="libs" />
                    <include name="locale/en_US" />
                </compiler.library-path>
                <compiler.source-path path-element="${src.visor.flex}" />
                <compiler.external-library-path dir="${lib.flex}">
                    <include name="agslib-1.2-2009-05-15.swc" />
                    <include name="flexlib.swc" />
                </compiler.external-library-path>
            </mxmlc>
        </target>
    but when i try to run the swf file i get this error:
    An ActionScript error has occurred:
    Error: Could not find compiled resource bundle 'SharedResources' for locale 'en_US'.
        at mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundle()
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
        at mx.managers::SystemManager/installCompiledResourceBundles()
        at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
        at mx.managers::SystemManager/docFrameListener()
    any ideas ?? sorry, but i am really new to flex
    thanks a lot

    Have you tried to use <compiler.include-libraries> tag to include external libraries in the compilation?
                <!-- Include external Flex Libraries -->
                <compiler.include-libraries dir="${PUREMVC_STANDARD}">
                    <include name="PureMVC_Standard.swc" />
                </compiler.include-libraries>
                <compiler.include-libraries dir="${XIFF}">
                    <include name="XIFF.swc" />
                </compiler.include-libraries>
    I never had a need to use <compiler.external-library-path> tag.

  • Flex ant build - problem including custom theme

    Hi,
    I added custom ios theme using the below code in the flex ant build. The custom ios theme does not seem to be included.
    <compiler.theme dir="${FLEX_HOME}/frameworks" append="true"> 
    <include name="themes/Spark/spark.css" /> 
      <include name="themes/Mobile/mobile.swc" />
      </compiler.theme>
    <compiler.theme dir="${deploy.dir}/lib" append="true">   <include  name="mobiletheme_ios.swc" />
    </compiler.theme>
    I also tried using just <theme> tag but it did not help.
    Hoping a solution with the forum's help.
    Thanks in advance
    <include  name="themes/Halo/halo.swc" /> 

    Sorry, I meant to address that. Yes, since we've moved up to the Flex 3 sdk, we are pointing at a new directory. The old directory was flex_sdk and the new directory is flex_sdk_340.
    FLEX_HOME is being set in the build.properties file for local building and then overidden in the build.xml file with this code:
    <target name="build">
         <available property="FLEX_HOME" value="/apps/flex_sdk_340" file="/apps/flex_sdk_340" />
         <echo>FLEX_HOME = ${FLEX_HOME}</echo>
         <antcall target="compile" />
    </target>
    I did notice a warning about not using the available property, so I removed it and just changed what FLEX_HOME was set to in the build.properties file to the server directory. Would mess up local building but regardless it didn't matter because it had no effect on the error being generated. I alos looked a little into the file property of the available tag trying to figure out if that was somehow an issue but I wasn't able to come to any conclusion.
    Before the program errors out, it does displayt he echo statement and the value of FLEX_HOME appears to be correct in that it does show /apps/flex_sdk_340.
    Thank you so much for your continued help. This is truly frustrating because nothing but a directory name has really changed and yet it stopped working. I can't find any information anywhere on what could be wrong and this is really my last resort.

  • Multiple projects - ANT building problem

    Hey all, not sure if this is the correct forum for this but it's the closest fit. So I've got an ANT script which builds my game, but I've got another project called Resources that'll contain components, code, helpful classes etc that I want to use in any of my projects. In my build target, how do I make it so that I build both projects and use them in the way described above. I've attached my current "compile" target markup for reference. Thanks
              <target name="compile" description="Compiles classes" depends="clean, -init-directories" >
                   <wtkbuild target="1.1" debug="false" srcdir="${src.dir}" destdir="${compiling}" preverify="true" />
                        <!--<include name="${resources.project.src}/**" />
                   </wtkbuild>-->
                   <copydir dest="${res.building.dir}" src="${res.dir}" includes="**/*.png" excludes="Thumbs.db" />
              </target>

    Awesome, that's worked. Can't believe such a simple bit of syntax sorted the issue out, couldn't find out that for the life of me. I do have one issue though, is that looking in the jar, the source directory looks like this:
    components - package directory from the aformentioned Resources project
    META-INF
    midlet - package directory from the aformentioned Resources project
    res
    screens - package directory from the aformentioned Resources project
    src
    Can I just move these folders into the src directory so it all looks nice and legal? Or do you think it matters? Also, will it not have an effect on the actual device, as it tries to find a Class file to load in a certain location it isn't it?
    For example:
    My TitleScreen.class file is in screens, (screens.TitleScreen) if I moved the screens folder into the src folder, would that not cause a ClassNotFound exception? Thanks again for the help

  • WSAD/Ant/JUNIT problem

    Hi,
    I'm want to use ant to run some JUNIT tests and generate reports for the tests.
    I wrote the following build.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="junitTest" default="test">
    <target name="init">
    <property name="outdir" value="."/>
    </target>
    <target name="test" depends="init">
    <junit printsummary="true" >
    <!--<formatter type="plain" usefile="false" />-->
    <formatter type="xml" />
    <test name="com.aon.frameworktest.ServiceLocatorTest" />
    <classpath>
    <pathelement location="${outdir}" />
    <pathelement path="${java.class.path}"/>
    </classpath>
    </junit>
    <junitreport todir="./reports">
    <fileset dir=".">
    <include name="TEST-*.xml" />
    </fileset>
    <report format="frames" todir="./reports/html"/>
    </junitreport>
    </target>
    </project>
    It runs, but the tests all throw the same error.
    It seems that my tests can't find a properties file I use in my code. I am developing with WSAD 5.
    The error is:
    .\properties\Framework.properties (The system cannot find the path specified)
    java.io.FileNotFoundException: .\properties\Framework.properties (The system cannot find the path specified)
    I refrence the properties file in my code based on my working directory, which I set properly in my External Tools configuration.
    Is there something I need to pass to the Test class inside of Ant to get it to find the properties file? This runs fine with I don't use Ant and just run JUNIT directly within WSAD.
    Anyone have any ideas?
    Thanks
    Vlenin

    1. Try specifying the full path to the properties file.
    2. Put the properties file in your classpath and access it viaInputStream is = this.getClass().getResourceAsStream("/Framework.properties");

  • XJC Ant Task Problem

    Hi!
    When i try to run the xjc ant task in my build file i get the error showed below Could some one help or give me an advice about this?
    In my build file i have the next lines of xml:
    <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"/>
    and
    <target name="xsdCompile">
    <xjc target="${src}/java" package="com.getronics.cea.cie.mopab.documentos">
    <schema dir="${schemas.home}" includes="*.xsd"/>
    </xjc>
    </target>
    Thanks a lot!
    Adolfo de Unanue
    !xsdCompile Running target: xsdCompile
    xsdCompile:
    [xjc] Compiling file:/home/aunanue/mopab3/mopab/src/xml/schemas/administracionYCobranza.xsd and others
    org.iso_relax.verifier.VerifierConfigurationException: no validation engine available for: http://relaxng.org/ns/structure/1.0
         at org.iso_relax.verifier.VerifierFactory.newInstance(Unknown Source)
         at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserImpl.getContentHandler(AnnotationParserImpl.java:61)
         at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:42)
         at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:59)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnChildFromEnterElement(NGCCRuntime.java:431)
         at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:210)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:85)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesFilter.startElement(ProhibitedFeaturesFilter.java:123)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
         at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
         at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
         at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
         at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
         at org.apache.tools.ant.Task.perform(Task.java:317)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:334)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at antfarm.TargetRunner.runAntTarget(Unknown Source)
         at antfarm.TargetRunner.run(Unknown Source)
    BUILD FAILED
    java.lang.InternalError
         at com.sun.tools.xjc.reader.xmlschema.bindinfo.AnnotationParserImpl.getContentHandler(AnnotationParserImpl.java:71)
         at com.sun.xml.xsom.impl.parser.state.annotation.action0(annotation.java:42)
         at com.sun.xml.xsom.impl.parser.state.annotation.enterElement(annotation.java:59)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnChildFromEnterElement(NGCCRuntime.java:431)
         at com.sun.xml.xsom.impl.parser.state.Schema.enterElement(Schema.java:222)
         at com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startElement(NGCCRuntime.java:210)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceURIChecker.startElement(IncorrectNamespaceURIChecker.java:85)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesFilter.startElement(ProhibitedFeaturesFilter.java:123)
         at org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown Source)
         at org.iso_relax.verifier.impl.VerifierFilterImpl.startElement(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
         at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:877)
         at org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespaceBinder.java:569)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:759)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown Source)
         at com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity(NGCCRuntimeEx.java:151)
         at com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMParser.java:116)
         at com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.java:511)
         at com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
         at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
         at org.apache.tools.ant.Task.perform(Task.java:317)
         at org.apache.tools.ant.Target.execute(Target.java:309)
         at org.apache.tools.ant.Target.performTasks(Target.java:334)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
         at antfarm.TargetRunner.runAntTarget(Unknown Source)
         at antfarm.TargetRunner.run(Unknown Source)

    Hi
    When you define the xjc task you will need to
    include all the jaxb, jaxp jars in the classpath.
    See the <JWSDP>/jaxb-1.0/examples/users-guide/SampleApp1/build.xml
    for more information
    Regards,
    Bhakti
    Hi!
    When i try to run the xjc ant task in my build file i
    get the error showed below Could some one help or give
    me an advice about this?
    In my build file i have the next lines of xml:
    <taskdef name="xjc"
    classname="com.sun.tools.xjc.XJCTask"/>
    and
    <target name="xsdCompile">
    <xjc target="${src}/java"
    va" package="com.getronics.cea.cie.mopab.documentos">
    <schema dir="${schemas.home}"
    .home}" includes="*.xsd"/>
    </xjc>
    </target>
    Thanks a lot!
    Adolfo de Unanue
    !xsdCompile Running target: xsdCompile
    xsdCompile:
    [xjc] Compiling
    iling
    file:/home/aunanue/mopab3/mopab/src/xml/schemas/adminis
    racionYCobranza.xsd and others
    org.iso_relax.verifier.VerifierConfigurationException:
    no validation engine available for:
    http://relaxng.org/ns/structure/1.0
    at
    org.iso_relax.verifier.VerifierFactory.newInstance(Unk
    own Source)
    at
    com.sun.tools.xjc.reader.xmlschema.bindinfo.Annotation
    arserImpl.getContentHandler(AnnotationParserImpl.java:6
    at
    com.sun.xml.xsom.impl.parser.state.annotation.action0(
    nnotation.java:42)
    at
    com.sun.xml.xsom.impl.parser.state.annotation.enterEle
    ent(annotation.java:59)
    at
    com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnCh
    ldFromEnterElement(NGCCRuntime.java:431)
    at
    com.sun.xml.xsom.impl.parser.state.Schema.enterElement
    Schema.java:222)
    at
    com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startEl
    ment(NGCCRuntime.java:210)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceU
    IChecker.startElement(IncorrectNamespaceURIChecker.java
    85)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesF
    lter.startElement(ProhibitedFeaturesFilter.java:123)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    org.iso_relax.verifier.impl.VerifierFilterImpl.startEl
    ment(Unknown Source)
    at
    org.apache.xerces.parsers.AbstractSAXParser.startEleme
    t(AbstractSAXParser.java:459)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.handleStartE
    ement(XMLNamespaceBinder.java:877)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.startElement
    XMLNamespaceBinder.java:569)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
    canStartElement(XMLDocumentFragmentScannerImpl.java:759
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
    ragmentContentDispatcher.dispatch(XMLDocumentFragmentSc
    nnerImpl.java:1477)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
    canDocument(XMLDocumentFragmentScannerImpl.java:329)
    at
    org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
    figuration.java:525)
    at
    org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
    figuration.java:581)
    at
    org.apache.xerces.parsers.XMLParser.parse(XMLParser.ja
    a:152)
    at
    org.apache.xerces.parsers.AbstractSAXParser.parse(Abst
    actSAXParser.java:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at
    com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity
    NGCCRuntimeEx.java:151)
    at
    com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMPars
    r.java:116)
    at
    com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.j
    va:511)
    at
    com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at
    com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
         at org.apache.tools.ant.Task.perform(Task.java:317)
    at
    org.apache.tools.ant.Target.execute(Target.java:309)
    at
    org.apache.tools.ant.Target.performTasks(Target.java:3
    4)
    at
    org.apache.tools.ant.Project.executeTarget(Project.jav
    :1306)
         at antfarm.TargetRunner.runAntTarget(Unknown Source)
         at antfarm.TargetRunner.run(Unknown Source)
    BUILD FAILED
    java.lang.InternalError
    at
    com.sun.tools.xjc.reader.xmlschema.bindinfo.Annotation
    arserImpl.getContentHandler(AnnotationParserImpl.java:7
    at
    com.sun.xml.xsom.impl.parser.state.annotation.action0(
    nnotation.java:42)
    at
    com.sun.xml.xsom.impl.parser.state.annotation.enterEle
    ent(annotation.java:59)
    at
    com.sun.xml.xsom.impl.parser.state.NGCCRuntime.spawnCh
    ldFromEnterElement(NGCCRuntime.java:431)
    at
    com.sun.xml.xsom.impl.parser.state.Schema.enterElement
    Schema.java:222)
    at
    com.sun.xml.xsom.impl.parser.state.NGCCRuntime.startEl
    ment(NGCCRuntime.java:210)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    com.sun.tools.xjc.reader.xmlschema.IncorrectNamespaceU
    IChecker.startElement(IncorrectNamespaceURIChecker.java
    85)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    com.sun.tools.xjc.reader.xmlschema.ProhibitedFeaturesF
    lter.startElement(ProhibitedFeaturesFilter.java:123)
    at
    org.xml.sax.helpers.XMLFilterImpl.startElement(Unknown
    Source)
    at
    org.iso_relax.verifier.impl.VerifierFilterImpl.startEl
    ment(Unknown Source)
    at
    org.apache.xerces.parsers.AbstractSAXParser.startEleme
    t(AbstractSAXParser.java:459)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.handleStartE
    ement(XMLNamespaceBinder.java:877)
    at
    org.apache.xerces.impl.XMLNamespaceBinder.startElement
    XMLNamespaceBinder.java:569)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
    canStartElement(XMLDocumentFragmentScannerImpl.java:759
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$
    ragmentContentDispatcher.dispatch(XMLDocumentFragmentSc
    nnerImpl.java:1477)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.
    canDocument(XMLDocumentFragmentScannerImpl.java:329)
    at
    org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
    figuration.java:525)
    at
    org.apache.xerces.parsers.DTDConfiguration.parse(DTDCo
    figuration.java:581)
    at
    org.apache.xerces.parsers.XMLParser.parse(XMLParser.ja
    a:152)
    at
    org.apache.xerces.parsers.AbstractSAXParser.parse(Abst
    actSAXParser.java:1175)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at org.xml.sax.helpers.XMLFilterImpl.parse(Unknown
    Source)
    at
    com.sun.xml.xsom.impl.parser.NGCCRuntimeEx.parseEntity
    NGCCRuntimeEx.java:151)
    at
    com.sun.xml.xsom.impl.parser.XSOMParser.parse(XSOMPars
    r.java:116)
    at
    com.sun.tools.xjc.Driver.loadXMLSchemaGrammar(Driver.j
    va:511)
    at
    com.sun.tools.xjc.Driver.loadGrammar(Driver.java:404)
    at
    com.sun.tools.xjc.XJCTask.execute(XJCTask.java:149)
         at org.apache.tools.ant.Task.perform(Task.java:317)
    at
    org.apache.tools.ant.Target.execute(Target.java:309)
    at
    org.apache.tools.ant.Target.performTasks(Target.java:3
    4)
    at
    org.apache.tools.ant.Project.executeTarget(Project.jav
    :1306)
         at antfarm.TargetRunner.runAntTarget(Unknown Source)
         at antfarm.TargetRunner.run(Unknown Source)

  • Jwsdp - examples  ant install problem

    hi,
    this is what i get when trying to install bookstore1 example app with ant (-verbose)install.
    ant prepare and ant build worked successfully. can someone give me a hint what i have to change? thanks a lot. jens
    Ant version 1.4.1 compiled on July 31 2002
    Buildfile: build.xml
    Detected Java version: 1.4 in: /home/jens/sdk1.4/jre
    Detected OS: Linux
    parsing buildfile /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build.xml with URI = file:/home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build.xml
    Project base dir set to: /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1
    [property] Loading /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build.properties
    [property] Unable to find property file: /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build.properties
    [property] Loading /home/jens/build.properties
    Build sequence for target `install' is [init, prepare, build, install]
    Complete build sequence is [init, prepare, build, install, reload, package, deploy, remove, list, undeploy]
    init:
    prepare:
    build:
    [javac] cart/ShoppingCart.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/cart/ShoppingCart.class is up to date.
    [javac] cart/ShoppingCartItem.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/cart/ShoppingCartItem.class is up to date.
    [javac] util/Currency.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/util/Currency.class is up to date.
    [javac] util/Counter.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/util/Counter.class is up to date.
    [javac] messages/BookstoreMessages.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/messages/BookstoreMessages.class is up to date.
    [javac] messages/BookstoreMessages_es.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/messages/BookstoreMessages_es.class is up to date.
    [javac] database/BookDB.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/database/BookDB.class is up to date.
    [javac] database/BookDetails.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/database/BookDetails.class is up to date.
    [javac] exception/BookNotFoundException.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/exception/BookNotFoundException.class is up to date.
    [javac] exception/BooksNotFoundException.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/exception/BooksNotFoundException.class is up to date.
    [javac] exception/OrderException.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/exception/OrderException.class is up to date.
    [javac] CatalogServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/CatalogServlet.class is up to date.
    [javac] BookDetailsServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/BookDetailsServlet.class is up to date.
    [javac] filters/HitCounterFilter.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/filters/HitCounterFilter.class is up to date.
    [javac] filters/OrderFilter.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/filters/OrderFilter.class is up to date.
    [javac] filters/CharResponseWrapper.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/filters/CharResponseWrapper.class is up to date.
    [javac] ReceiptServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/ReceiptServlet.class is up to date.
    [javac] listeners/ContextListener.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/listeners/ContextListener.class is up to date.
    [javac] BannerServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/BannerServlet.class is up to date.
    [javac] BookStoreServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/BookStoreServlet.class is up to date.
    [javac] ShowCartServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/ShowCartServlet.class is up to date.
    [javac] CashierServlet.java omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/classes/CashierServlet.class is up to date.
    [copy] web.xml omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/WEB-INF/web.xml is up to date.
    [copy] duke.books.gif omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/duke.books.gif is up to date.
    [copy] errorpage.html omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/errorpage.html is up to date.
    [copy] context.xml omitted as /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build/META-INF/context.xml is up to date.
    install:
    [install] FAIL - Encountered exception java.io.IOException: java.lang.reflect.InvocationTargetException
    BUILD FAILED
    /home/jens/jwsdp-1_0_01/docs/tutorial/examples/web/bookstore1/build.xml:91: FAIL - Encountered exception java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:278)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:171)
    at org.apache.catalina.ant.InstallTask.execute(InstallTask.java:157)
    at org.apache.tools.ant.Task.perform(Task.java:217)
    at org.apache.tools.ant.Target.execute(Target.java:184)
    at org.apache.tools.ant.Target.performTasks(Target.java:202)
    at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    at org.apache.tools.ant.Main.runBuild(Main.java:454)
    at org.apache.tools.ant.Main.start(Main.java:153)
    at org.apache.tools.ant.Main.main(Main.java:176)
    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:324)
    at com.sun.launcher.Launcher.main(Launcher.java:208)
    --- Nested Exception ---
    FAIL - Encountered exception java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:274)
    at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalinaTask.java:171)
    at org.apache.catalina.ant.InstallTask.execute(InstallTask.java:157)
    at org.apache.tools.ant.Task.perform(Task.java:217)
    at org.apache.tools.ant.Target.execute(Target.java:184)
    at org.apache.tools.ant.Target.performTasks(Target.java:202)
    at org.apache.tools.ant.Project.executeTarget(Project.java:601)
    at org.apache.tools.ant.Project.executeTargets(Project.java:560)
    at org.apache.tools.ant.Main.runBuild(Main.java:454)
    at org.apache.tools.ant.Main.start(Main.java:153)
    at org.apache.tools.ant.Main.main(Main.java:176)
    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:324)
    at com.sun.launcher.Launcher.main(Launcher.java:208)

    Unable to load the launcher file index. Invalid file type in file index.
    what is wrong here? ive downloaded file for 3 hours and this is what i get?

Maybe you are looking for

  • JDesktopPane & JToolBar

    Hello, I'm trying to put a JToolBar and a JPanel (to represent a status bar) to my JDesktopPane, but it doesn't work. So I tried several solutions : - one time the JToolBar appears but the 2 JInternalFrames don't work perfectly : when you click on th

  • May I know if IOS 4.2.1 is the latest software update for Ipod touch 2nd generation?

    I own a Ipod touch 2nd gen. I realise that more and more apps are unavailable for my Ipod and it cant be updated to IOS 5. May I know if IOS 4.2.1 is the latest update for Ipod 2nd gen?

  • Conversion the land1 field

    Hi, I want to convert the land1 values 'us' to 'US'. These values in a internal table so please tell me how to do it. Which function module i can use for this. I already search for conver routine but there is no conversio routine for the field land1

  • Persistent global application properties

    Hi all, i would like to provide some global persistent properties for arbitrary applications (Web Dynpro, J2EE applications, whatever), which should be changeable at runtime by the applications themselves and should be consistent for the whole cluste

  • I can not play the sound?

    I can not play or hear the sound.Though side switch indicator moves .