Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 55856 invoked from network); 28 Apr 2006 19:26:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2006 19:26:19 -0000 Received: (qmail 95417 invoked by uid 500); 28 Apr 2006 19:26:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95338 invoked by uid 500); 28 Apr 2006 19:26:14 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 95326 invoked by uid 99); 28 Apr 2006 19:26:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 12:26:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.239.111.117] (HELO garrett.Groupwise.local) (207.239.111.117) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 12:26:12 -0700 Received: from MIAMAILDOMAIN1-MTA by garrett.Groupwise.local with Novell_GroupWise; Fri, 28 Apr 2006 15:25:51 -0400 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.5 Date: Fri, 28 Apr 2006 15:25:39 -0400 From: "Sanae Benchaaboun" To: Subject: Re: Compiling error Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part31142A23.0__=" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=__Part31142A23.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I got this now!! I added the export JAVA_HOME and Path, also sat the fork to false.. Still not working Sanae Benchaaboun Webmaster Supervisor Maryland Insurance Administration Tel: (410)468-2077 sbenchaaboun@mdinsurance.state.md.us >>> floess@mindspring.com 4/28/2006 3:20 PM >>> I looked over the documentation a little more (for wscompile) - and looked at your build.xml. I do see where you have set forking = "true" Maybe see what results you get when forking is set to false. In looking at the stack trace - I see this: at java.lang.ClassLoader.resolveClass0(java.lang.Class) *(/lib/ssa/libgcj.so.4.0.0)* As the VM is being forked...it would -appear- the forked VM is gcc-java for some reason... Try to adjust your .bashrc and/or try setting forking="false" Scot P. Floess wrote: > Check this link out: > https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html#2.1 > > And I quote: "The |wscompile| tool generates various client-side and > server-side artifacts required by the JAX-RPC runtime to develop, > deploy, and invoke a Web Service. It is available as a shell script > and a batch file in |JWSDP_HOME/jaxrpc/bin|, where |JWSDP_HOME| refers > to the directory in which the Java WSDP is installed. Although the > shell script is used below for illustration purposes, the two scripts > provide identical functionality." > > There ya go, its a shell script. I can't be for sure without further > investigation...but if it is a shell script then when the task > executes, it will spawn a shell to execute the script. When it spawns > the shell, you get a -new- environment. The new environment probably > does not have the JAVA_HOME or your Sun JDK in the path - and thus is > using the stock gcc java... > > Scot P. Floess wrote: >> What I am trying to say is this... My ~/.bashrc resembles the >> following: >> >> # .bashrc >> >> # User specific aliases and functions >> >> # Source global definitions >> if [ -f /etc/bashrc ]; then >> . /etc/bashrc >> fi >> >> ---- >> >> This is of course a stock ~/.bashrc file... >> >> I am saying, make the ~/.bashrc look something like this (I am >> guessing here on the java installation dir - so take witha grain of >> salt): >> >> # .bashrc >> >> # User specific aliases and functions >> >> # Source global definitions >> if [ -f /etc/bashrc ]; then >> . /etc/bashrc >> fi >> >> export JAVA_HOME=/opt/SUNWappserver/jdk >> export PATH=${JAVA_HOME}/bin:${PATH} >> >> >> I am guessing that wscompile task is actually shelling out to the OS >> to execute. If that happens, the new shell will execute your >> ~/.bashrc. If the above are not set, based upon your install JDK, >> its not being found in the PATH and you are getting the gcc java >> version... I will have to examine your build.xml either tonight or >> tomorrow morning...gotta go home soon and mow the lawn... >> >> Sanae Benchaaboun wrote: >>> What did you mean by putting all the export in a bashrc? Here is the >>> build.xml >>> >>> Sanae Benchaaboun >>> Webmaster Supervisor >>> Maryland Insurance Administration >>> Tel: (410)468-2077 >>> sbenchaaboun@mdinsurance.state.md.us >>> >>> ------------------------------------------------------------------------ >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> classname="com.sun.xml.rpc.tools.ant.Wscompile"> >>> >>> >>> >> description="create the build directory structure" depends="clean"> >>> >>> >>> >>> >>> >>> >>> >>> >> version="1.0" encoding="UTF-8"?> >>> >>> >> packageName="org.naic.serff.stateapi.service" /> >>> ]]> >>> >> keep="true" client="true" >>> debug="true" features="documentliteral,wsi" >>> base="${build}/jar" sourceBase="${src-gen}" >>> xPrintStackTrace="true" >>> model="${build}/jar/StateApiService_model.xml.gz" >>> verbose="false" config="${src-gen}/wsconfig.xml"> >>> >>> >>> >>> >>> >>> >>> >> depends="generate_classes"> >>> >> excludes="org/naic/serff/stateapi/service/**/*" >>> classpathref="project.classpath"> >>> >>> >>> >> classpathref="project.classpath"> >>> >>> >>> >>> >> depends="compile"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> jarfile="${dist}/TestClient.jar"/> >>> >>> >>> >>> >> classpathref="project.classpath" packagenames="org.naic.model"> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>> For additional commands, e-mail: user-help@ant.apache.org >> > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim --=__Part31142A23.0__= Content-Type: text/plain; name="compileError2.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="compileError2.txt" ant Buildfile: build.xml clean: [delete] Deleting directory /Data/Dev/StateApi_Ref/build [delete] Deleting directory /Data/Dev/StateApi_Ref/src-gen [delete] Deleting directory /Data/Dev/StateApi_Ref/dist init: [mkdir] Created dir: /Data/Dev/StateApi_Ref/build [mkdir] Created dir: /Data/Dev/StateApi_Ref/build/jar [mkdir] Created dir: /Data/Dev/StateApi_Ref/src-gen [mkdir] Created dir: /Data/Dev/StateApi_Ref/dist [mkdir] Created dir: /Data/Dev/StateApi_Ref/dist/lib generate_classes: BUILD FAILED java.lang.NoClassDefFoundError: while resolving class: com.sun.xml.rpc.tools.plugin.ToolPluginFactory at java.lang.ClassLoader.resolveClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at java.lang.Class.initializeClass() (/lib/ssa/libgcj.so.4.0.0) at _Jv_ResolvePoolEntry(java.lang.Class, int) (/lib/ssa/libgcj.so.4.0.0) at com.sun.xml.rpc.tools.wscompile.CompileTool.parseArguments(java.lang.String[]) (Unknown Source) at com.sun.xml.rpc.util.ToolBase.run(java.lang.String[]) (Unknown Source) at com.sun.xml.rpc.tools.ant.Wscompile.execute() (Unknown Source) at org.apache.tools.ant.Task.perform() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Target.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Target.performTasks() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Project.executeTarget(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Project.executeTargets(java.util.Vector) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) Caused by: java.lang.ClassNotFoundException: java.util.logging.Level at org.apache.tools.ant.AntClassLoader.findClassInComponents(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.AntClassLoader.findClass(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.AntClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/lib/ssa/libgcj.so.4.0.0) at _Jv_PrepareCompiledClass(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at _Jv_WaitForState(java.lang.Class, int) (/lib/ssa/libgcj.so.4.0.0) at java.lang.ClassLoader.linkClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at java.lang.ClassLoader.resolveClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) ...13 more Total time: 1 second java.lang.NoClassDefFoundError: while resolving class: com.sun.xml.rpc.tools.plugin.ToolPluginFactory at java.lang.ClassLoader.resolveClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at java.lang.Class.initializeClass() (/lib/ssa/libgcj.so.4.0.0) at _Jv_ResolvePoolEntry(java.lang.Class, int) (/lib/ssa/libgcj.so.4.0.0) at com.sun.xml.rpc.tools.wscompile.CompileTool.parseArguments(java.lang.String[]) (Unknown Source) at com.sun.xml.rpc.util.ToolBase.run(java.lang.String[]) (Unknown Source) at com.sun.xml.rpc.tools.ant.Wscompile.execute() (Unknown Source) at org.apache.tools.ant.Task.perform() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Target.execute() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Target.performTasks() (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Project.executeTarget(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Project.executeTargets(java.util.Vector) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.runBuild(java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.start(java.lang.String[], java.util.Properties, java.lang.ClassLoader) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.Main.main(java.lang.String[]) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) Caused by: java.lang.ClassNotFoundException: java.util.logging.Level at org.apache.tools.ant.AntClassLoader.findClassInComponents(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.AntClassLoader.findClass(java.lang.String) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at org.apache.tools.ant.AntClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/lib-org-apache-tools-ant-1.5.2.so) at _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/lib/ssa/libgcj.so.4.0.0) at _Jv_PrepareCompiledClass(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at _Jv_WaitForState(java.lang.Class, int) (/lib/ssa/libgcj.so.4.0.0) at java.lang.ClassLoader.linkClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) at java.lang.ClassLoader.resolveClass0(java.lang.Class) (/lib/ssa/libgcj.so.4.0.0) ...13 more while resolving class: com.sun.xml.rpc.tools.plugin.ToolPluginFactory --=__Part31142A23.0__= Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=__Part31142A23.0__=--