You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Frank <fg...@optonline.net> on 2005/05/17 02:53:55 UTC

jws compile problem

I have a problem that I believe to be a classpath problem (see below), 
but I have included the path to the localhost directory, even created a 
jar of the class files and still  get the error.  I can compile the file 
directory just fine.  But if  I put the class file from a normal javac 
in the jwsClasses directory the call to produce the WSDL 
(http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file not found.

Line in java code (the directory structure exists and the java code is 
compiled):

import localhost.axis.OMS_jws.*;


Running on XP
Using tomcat distributed with JWSDP 1.4
Axis 1.2


    AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java

AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode: 
 faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
 faultActor: 
 faultNode: 
 faultDetail: 
	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39: Package localhost.axis.OMS_jws not found in import.
import localhost.axis.OMS_jws.*;




Re: jws compile problem

Posted by Dan O'Neill <do...@gmail.com>.
Sorry, I didn't mean to ask that question. Was talking to someone else at 
the time! Sorry

Dan

On 5/18/05, Dan O'Neill <do...@gmail.com> wrote:
> 
> No problem...
> 
> Thanks,
> Dan
> 
> Actually, what are your imports? 
> On 5/18/05, Frank <fg...@optonline.net> wrote:
> > 
> >  
> > 
> > Dan O'Neill wrote:
> > 
> > Actually that should have been my first reply.. don't know why I was 
> > focusin on tomcat....
> > 
> > The reason i mentioned the placement of the jws is that in your first 
> > email you were just placing the class file into the jwsClasses folder. Why 
> > not put the original TLS.jws into the tomcathome\webapps\axis folder?
> > 
> > actually that's what I did initially. but when axis tried to compile it 
> > when I went to that url it failed.
> > As a work around I tired to place the manually generated class file in 
> > the classes directory, that too failed. I'm Sorry guess I did not make that 
> > clear. 
> > 
> > 
> > 
> > But if you've got it working, well done, and sorry for this curiousity!
> > 
> > Dan
> > 
> > On 5/18/05, Frank <fg...@optonline.net> wrote: 
> > > 
> > > found the problem classpath seems to not make a difference, why I 
> > > don't know. Put the classes files in axis/WEB-INF/classes and it find them. 
> > > And this is where in the Axis documentation? LOL 
> > > 
> > > 
> > > 
> > > The reason I think its tomcats classpath is that you can (I think) 
> > > compile the java without a problem normally? 
> > > 
> > > Also If that doesn't solve it try just putting the jws file straight 
> > > into the webapps/axis folder and let axis itself look after the 
> > > compiling....
> > > 
> > > That was the problem letting axis compile then. Just doing a javac on 
> > > them worked directly worked, that was the frustrating problem and was using 
> > > the same classpath
> > > 
> > > Thanks for the help 
> > > 
> > > 
> > > 
> > > Dan
> > > 
> > > On 5/17/05, Frank <fgeck@optonline.net > wrote: 
> > > > 
> > > > Well I looked at the catalina.bat file. Seems it does not use the 
> > > > CLASSPATH environment variable that is set for the system. I changed it to 
> > > > do that and restarted Tomcat but no good. Same problem. 
> > > > 
> > > > Is there a separate variable used for tomcat for it's classpath 
> > > > beyond that? like TOMCAT_CLASSPATH or something?
> > > > 
> > > > Thanks,
> > > > 
> > > > Frank 
> > > > 
> > > > Dan O'Neill wrote:
> > > > 
> > > > This is probably a stupid thing to say but have you checked tomcats 
> > > > classpath....
> > > > 
> > > > Dan
> > > > 
> > > > On 5/17/05, Frank <fgeck@optonline.net > wrote: 
> > > > > 
> > > > > I have a problem that I believe to be a classpath problem (see 
> > > > > below), but I have included the path to the localhost directory, even 
> > > > > created a jar of the class files and still get the error. I can compile the 
> > > > > file directory just fine. But if I put the class file from a normal javac in 
> > > > > the jwsClasses directory the call to produce the WSDL (
> > > > > http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file 
> > > > > not found. 
> > > > > 
> > > > > Line in java code (the directory structure exists and the java 
> > > > > code is compiled): 
> > > > > 
> > > > > import localhost.axis.OMS_jws.*;
> > > > > 
> > > > > 
> > > > > Running on XP
> > > > > Using tomcat distributed with JWSDP 1.4
> > > > > Axis 1.2
> > > > > 
> > > > > 
> > > > > AXIS error 
> > > > > 
> > > > > Sorry, something seems to have gone wrong... here are the details:
> > > > > 
> > > > > Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > > > > 
> > > > > AxisFault
> > > > >  faultCode: {
> > > > > 
> > > > > 
> > > > > http://xml.apache.org/axis/}Server.compileError
> > > > >  faultSubcode: 
> > > > >  faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > > > >  faultActor: 
> > > > >  faultNode: 
> > > > > 
> > > > >  faultDetail: 
> > > > > 
> > > > > 
> > > > > 
> > > > > 	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
> > > > > Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
> > > > > 
> > > > > SoC:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
> > > > > 
> > > > > 
> > > > >  Package localhost.axis.OMS_jws not found in import.
> > > > > import localhost.axis.OMS_jws.*;
> > > > > 
> > > > >     
> > > > >  
> > > > 
> > > > 
> > > > -- 
> > > > <html><a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82" 
> > > > <http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img 
> > > > border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/ 
> > > > 
> > > > <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html> 
> > > > 
> > > > 
> > > >   
> > > 
> > > 
> > > -- 
> > > "I swear, the next bastard that kisses the ground in front of me is 
> > > gonna get
> > > kicked in the antique chicken coops." - Cohen the Barbarian 
> > > 
> > >   
> > 
> > 
> > -- 
> > "I swear, the next bastard that kisses the ground in front of me is 
> > gonna get
> > kicked in the antique chicken coops." - Cohen the Barbarian 
> > 
> > 
> 
> 
> -- 
> "I swear, the next bastard that kisses the ground in front of me is gonna 
> get
> kicked in the antique chicken coops." - Cohen the Barbarian 
> 



-- 
"I swear, the next bastard that kisses the ground in front of me is gonna 
get
kicked in the antique chicken coops." - Cohen the Barbarian

Re: jws compile problem

Posted by Dan O'Neill <do...@gmail.com>.
No problem...

Thanks,
Dan

Actually, what are your imports? 
On 5/18/05, Frank <fg...@optonline.net> wrote:
> 
> 
> 
> Dan O'Neill wrote:
> 
> Actually that should have been my first reply.. don't know why I was 
> focusin on tomcat....
> 
> The reason i mentioned the placement of the jws is that in your first 
> email you were just placing the class file into the jwsClasses folder. Why 
> not put the original TLS.jws into the tomcathome\webapps\axis folder?
> 
> actually that's what I did initially. but when axis tried to compile it 
> when I went to that url it failed.
> As a work around I tired to place the manually generated class file in the 
> classes directory, that too failed. I'm Sorry guess I did not make that 
> clear. 
> 
> 
> 
> But if you've got it working, well done, and sorry for this curiousity!
> 
> Dan
> 
> On 5/18/05, Frank <fg...@optonline.net> wrote: 
> > 
> > found the problem classpath seems to not make a difference, why I don't 
> > know. Put the classes files in axis/WEB-INF/classes and it find them. And 
> > this is where in the Axis documentation? LOL 
> > 
> > 
> > 
> > The reason I think its tomcats classpath is that you can (I think) 
> > compile the java without a problem normally? 
> > 
> > Also If that doesn't solve it try just putting the jws file straight 
> > into the webapps/axis folder and let axis itself look after the 
> > compiling....
> > 
> > That was the problem letting axis compile then. Just doing a javac on 
> > them worked directly worked, that was the frustrating problem and was using 
> > the same classpath
> > 
> > Thanks for the help 
> > 
> > 
> > 
> > Dan
> > 
> > On 5/17/05, Frank <fg...@optonline.net> wrote: 
> > > 
> > > Well I looked at the catalina.bat file. Seems it does not use the 
> > > CLASSPATH environment variable that is set for the system. I changed it to 
> > > do that and restarted Tomcat but no good. Same problem. 
> > > 
> > > Is there a separate variable used for tomcat for it's classpath beyond 
> > > that? like TOMCAT_CLASSPATH or something?
> > > 
> > > Thanks,
> > > 
> > > Frank 
> > > 
> > > Dan O'Neill wrote:
> > > 
> > > This is probably a stupid thing to say but have you checked tomcats 
> > > classpath....
> > > 
> > > Dan
> > > 
> > > On 5/17/05, Frank <fgeck@optonline.net > wrote: 
> > > > 
> > > > I have a problem that I believe to be a classpath problem (see 
> > > > below), but I have included the path to the localhost directory, even 
> > > > created a jar of the class files and still get the error. I can compile the 
> > > > file directory just fine. But if I put the class file from a normal javac in 
> > > > the jwsClasses directory the call to produce the WSDL (
> > > > http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file not 
> > > > found. 
> > > > 
> > > > Line in java code (the directory structure exists and the java code 
> > > > is compiled): 
> > > > 
> > > > import localhost.axis.OMS_jws.*;
> > > > 
> > > > 
> > > > Running on XP
> > > > Using tomcat distributed with JWSDP 1.4
> > > > Axis 1.2
> > > > 
> > > > 
> > > > AXIS error 
> > > > 
> > > > Sorry, something seems to have gone wrong... here are the details:
> > > > 
> > > > Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > > > 
> > > > AxisFault
> > > >  faultCode: {
> > > > 
> > > > 
> > > > http://xml.apache.org/axis/}Server.compileError
> > > >  faultSubcode: 
> > > >  faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > > >  faultActor: 
> > > >  faultNode: 
> > > >  faultDetail: 
> > > > 
> > > > 
> > > > 
> > > > 	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
> > > > Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
> > > > C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
> > > > 
> > > > 
> > > >  Package localhost.axis.OMS_jws not found in import.
> > > > import localhost.axis.OMS_jws.*;
> > > > 
> > > >     
> > > >  
> > > 
> > > 
> > > -- 
> > > <html><a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82" 
> > > <http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img 
> > > border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/ 
> > > 
> > > <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html> 
> > > 
> > > 
> > >   
> > 
> > 
> > -- 
> > "I swear, the next bastard that kisses the ground in front of me is 
> > gonna get
> > kicked in the antique chicken coops." - Cohen the Barbarian 
> > 
> >   
> 
> 
> -- 
> "I swear, the next bastard that kisses the ground in front of me is gonna 
> get
> kicked in the antique chicken coops." - Cohen the Barbarian 
> 
> 


-- 
"I swear, the next bastard that kisses the ground in front of me is gonna 
get
kicked in the antique chicken coops." - Cohen the Barbarian

Re: jws compile problem

Posted by Frank <fg...@optonline.net>.

Dan O'Neill wrote:

> Actually that should have been my first reply.. don't know why I was 
> focusin on tomcat....
>
> The reason i mentioned the placement of the jws is that in your first 
> email you were just placing the class file into the jwsClasses folder. 
> Why not put the original TLS.jws into the tomcathome\webapps\axis folder?

actually that's what I did initially.  but when axis tried to compile it 
when I went to that url it failed.
As a work around I tired to place the manually generated class file in 
the classes directory, that too failed. I'm Sorry guess I did not make 
that clear.

>
>
> But if you've got it working, well done, and sorry for this curiousity!
>
> Dan
>
> On 5/18/05, Frank <fgeck@optonline.net <ma...@optonline.net>> 
> wrote:
>
>     found the problem classpath seems to not make a difference, why I
>     don't know.  Put the classes files in axis/WEB-INF/classes and it
>     find them.  And this is where in the Axis documentation? LOL
>
>>
>>
>>     The reason I think its tomcats classpath is that you can (I
>>     think) compile the java without a problem normally?
>>
>>     Also If that doesn't solve it try just putting the jws file
>>     straight into the webapps/axis folder and let axis itself look
>>     after the compiling....
>
>     That was the problem letting axis compile then.  Just doing a
>     javac on them worked directly worked, that was the frustrating
>     problem and was using the same classpath
>
>     Thanks for the help
>
>>
>>
>>     Dan
>>
>>     On 5/17/05, Frank <fgeck@optonline.net
>>     <ma...@optonline.net>> wrote:
>>
>>         Well I looked at the catalina.bat file.  Seems it does not
>>         use the CLASSPATH environment variable that is set for the
>>         system.  I changed it to  do that and restarted Tomcat but no
>>         good.  Same problem. 
>>
>>         Is there a separate variable used for tomcat for it's
>>         classpath beyond that? like TOMCAT_CLASSPATH or something?
>>
>>         Thanks,
>>
>>         Frank
>>
>>
>>         Dan O'Neill wrote:
>>
>>>         This is probably a stupid thing to say but have you checked
>>>         tomcats classpath....
>>>
>>>         Dan
>>>
>>>         On 5/17/05, Frank <fgeck@optonline.net
>>>         <ma...@optonline.net> > wrote:
>>>
>>>             I have a problem that I believe to be a classpath
>>>             problem (see below), but I have included the path to the
>>>             localhost directory, even created a jar of the class
>>>             files and still  get the error.  I can compile the file
>>>             directory just fine.  But if  I put the class file from
>>>             a normal javac in the jwsClasses directory the call to
>>>             produce the WSDL (http://kw14:8080/axis/TLS.jws?wsdl)
>>>             from the browser say's file not found.
>>>
>>>             Line in java code (the directory structure exists and
>>>             the java code is compiled):
>>>
>>>import localhost.axis.OMS_jws.*;
>>>
>>>
>>>             Running on XP
>>>             Using tomcat distributed with JWSDP 1.4
>>>             Axis 1.2
>>>
>>>
>>>                 AXIS error
>>>
>>>             Sorry, something seems to have gone wrong... here are
>>>             the details:
>>>
>>>Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>>>
>>>AxisFault
>>> faultCode: {
>>>
>>>
>>>http://xml.apache.org/axis/}Server.compileError
>>> faultSubcode: 
>>> faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>>> faultActor: 
>>> faultNode: 
>>> faultDetail: 
>>>
>>>
>>>
>>>	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
>>>Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
>>>C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
>>>
>>>
>>> Package localhost.axis.OMS_jws not found in import.
>>>import localhost.axis.OMS_jws.*;
>>>
>>>    
>>>
>>>
>>>
>>>
>>>
>>>         -- 
>>>         <html><a
>>>         href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82"
>>>         <http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img
>>>         border="0" alt="Get Firefox!" title="Get Firefox!"
>>>         src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/
>>>         <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html>
>>
>>
>>
>>
>>
>>     -- 
>>     "I swear, the next bastard that kisses the ground in front of me
>>     is gonna get
>>     kicked in the antique chicken coops."  - Cohen the Barbarian 
>
>
>
>
> -- 
> "I swear, the next bastard that kisses the ground in front of me is 
> gonna get
> kicked in the antique chicken coops."  - Cohen the Barbarian 


Re: jws compile problem

Posted by Dan O'Neill <do...@gmail.com>.
Actually that should have been my first reply.. don't know why I was focusin 
on tomcat....

The reason i mentioned the placement of the jws is that in your first email 
you were just placing the class file into the jwsClasses folder. Why not put 
the original TLS.jws into the tomcathome\webapps\axis folder?

But if you've got it working, well done, and sorry for this curiousity!

Dan

On 5/18/05, Frank <fg...@optonline.net> wrote:
> 
> found the problem classpath seems to not make a difference, why I don't 
> know. Put the classes files in axis/WEB-INF/classes and it find them. And 
> this is where in the Axis documentation? LOL 
> 
> 
> 
> The reason I think its tomcats classpath is that you can (I think) compile 
> the java without a problem normally? 
> 
> Also If that doesn't solve it try just putting the jws file straight into 
> the webapps/axis folder and let axis itself look after the compiling....
> 
> That was the problem letting axis compile then. Just doing a javac on them 
> worked directly worked, that was the frustrating problem and was using the 
> same classpath
> 
> Thanks for the help
> 
> 
> 
> Dan
> 
> On 5/17/05, Frank <fg...@optonline.net> wrote: 
> > 
> > Well I looked at the catalina.bat file. Seems it does not use the 
> > CLASSPATH environment variable that is set for the system. I changed it to 
> > do that and restarted Tomcat but no good. Same problem. 
> > 
> > Is there a separate variable used for tomcat for it's classpath beyond 
> > that? like TOMCAT_CLASSPATH or something?
> > 
> > Thanks,
> > 
> > Frank 
> > 
> > Dan O'Neill wrote:
> > 
> > This is probably a stupid thing to say but have you checked tomcats 
> > classpath....
> > 
> > Dan
> > 
> > On 5/17/05, Frank <fg...@optonline.net> wrote: 
> > > 
> > > I have a problem that I believe to be a classpath problem (see below), 
> > > but I have included the path to the localhost directory, even created a jar 
> > > of the class files and still get the error. I can compile the file directory 
> > > just fine. But if I put the class file from a normal javac in the jwsClasses 
> > > directory the call to produce the WSDL (
> > > http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file not 
> > > found. 
> > > 
> > > Line in java code (the directory structure exists and the java code is 
> > > compiled): 
> > > 
> > > import localhost.axis.OMS_jws.*;
> > > 
> > > 
> > > Running on XP
> > > Using tomcat distributed with JWSDP 1.4
> > > Axis 1.2
> > > 
> > > 
> > > AXIS error 
> > > 
> > > Sorry, something seems to have gone wrong... here are the details:
> > > 
> > > Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > > 
> > > AxisFault
> > >  faultCode: {
> > > 
> > > http://xml.apache.org/axis/}Server.compileError
> > >  faultSubcode: 
> > >  faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > >  faultActor: 
> > >  faultNode: 
> > >  faultDetail: 
> > > 
> > > 
> > > 	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
> > > Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
> > > C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
> > > 
> > >  Package localhost.axis.OMS_jws not found in import.
> > > import localhost.axis.OMS_jws.*;
> > > 
> > >     
> > >  
> > 
> > 
> > -- 
> > <html><a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82" 
> > <http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img 
> > border="0" alt="Get Firefox!" title="Get Firefox!" src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/ 
> > <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html> 
> > 
> > 
> >   
> 
> 
> -- 
> "I swear, the next bastard that kisses the ground in front of me is gonna 
> get
> kicked in the antique chicken coops." - Cohen the Barbarian 
> 
> 


-- 
"I swear, the next bastard that kisses the ground in front of me is gonna 
get
kicked in the antique chicken coops." - Cohen the Barbarian

Re: jws compile problem

Posted by Frank <fg...@optonline.net>.

Dan O'Neill wrote:

> I know this is kind of cheating but and again I don't know if it will 
> solve your problem but try putting all the axis jar files into a 
> XXXX\webapps\ROOT\WEB-INF\lib folder, where XXXX is tomcats home 
> folder. These automatically get dynamically added to the classpath 
> when tomcat is started.

found the problem classpath seems to not make a difference, why I don't 
know.  Put the classes files in axis/WEB-INF/classes and it find them.  
And this is where in the Axis documentation? LOL

>
>
> The reason I think its tomcats classpath is that you can (I think) 
> compile the java without a problem normally?
>
> Also If that doesn't solve it try just putting the jws file straight 
> into the webapps/axis folder and let axis itself look after the 
> compiling....

That was the problem letting axis compile then.  Just doing a javac on 
them worked directly worked, that was the frustrating problem and was 
using the same classpath

Thanks for the help

>
>
> Dan
>
> On 5/17/05, Frank <fgeck@optonline.net <ma...@optonline.net>> 
> wrote:
>
>     Well I looked at the catalina.bat file.  Seems it does not use the
>     CLASSPATH environment variable that is set for the system.  I
>     changed it to  do that and restarted Tomcat but no good.  Same
>     problem. 
>
>     Is there a separate variable used for tomcat for it's classpath
>     beyond that? like TOMCAT_CLASSPATH or something?
>
>     Thanks,
>
>     Frank
>
>
>     Dan O'Neill wrote:
>
>>     This is probably a stupid thing to say but have you checked
>>     tomcats classpath....
>>
>>     Dan
>>
>>     On 5/17/05, Frank <fgeck@optonline.net
>>     <ma...@optonline.net>> wrote:
>>
>>         I have a problem that I believe to be a classpath problem
>>         (see below), but I have included the path to the localhost
>>         directory, even created a jar of the class files and still 
>>         get the error.  I can compile the file directory just fine. 
>>         But if  I put the class file from a normal javac in the
>>         jwsClasses directory the call to produce the WSDL
>>         (http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's
>>         file not found.
>>
>>         Line in java code (the directory structure exists and the
>>         java code is compiled):
>>
>>import localhost.axis.OMS_jws.*;
>>
>>
>>         Running on XP
>>         Using tomcat distributed with JWSDP 1.4
>>         Axis 1.2
>>
>>
>>             AXIS error
>>
>>         Sorry, something seems to have gone wrong... here are the
>>         details:
>>
>>Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>>
>>AxisFault
>> faultCode: {
>>
>>http://xml.apache.org/axis/}Server.compileError
>> faultSubcode: 
>> faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>> faultActor: 
>> faultNode: 
>> faultDetail: 
>>
>>
>>	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
>>Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
>>C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
>>
>> Package localhost.axis.OMS_jws not found in import.
>>import localhost.axis.OMS_jws.*;
>>
>>    
>>
>>
>>
>>
>>
>>     -- 
>>     <html><a
>>     href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82"
>>     <http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img
>>     border="0" alt="Get Firefox!" title="Get Firefox!"
>>     src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/
>>     <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html>
>
>
>
>
>
> -- 
> "I swear, the next bastard that kisses the ground in front of me is 
> gonna get
> kicked in the antique chicken coops."  - Cohen the Barbarian 


Re: jws compile problem

Posted by Dan O'Neill <do...@gmail.com>.
I know this is kind of cheating but and again I don't know if it will solve 
your problem but try putting all the axis jar files into a 
XXXX\webapps\ROOT\WEB-INF\lib folder, where XXXX is tomcats home folder. 
These automatically get dynamically added to the classpath when tomcat is 
started.

The reason I think its tomcats classpath is that you can (I think) compile 
the java without a problem normally? 

Also If that doesn't solve it try just putting the jws file straight into 
the webapps/axis folder and let axis itself look after the compiling....

Dan

On 5/17/05, Frank <fg...@optonline.net> wrote:
> 
> Well I looked at the catalina.bat file. Seems it does not use the 
> CLASSPATH environment variable that is set for the system. I changed it to 
> do that and restarted Tomcat but no good. Same problem. 
> 
> Is there a separate variable used for tomcat for it's classpath beyond 
> that? like TOMCAT_CLASSPATH or something?
> 
> Thanks,
> 
> Frank
> 
> Dan O'Neill wrote:
> 
> This is probably a stupid thing to say but have you checked tomcats 
> classpath....
> 
> Dan
> 
> On 5/17/05, Frank <fg...@optonline.net> wrote: 
> > 
> > I have a problem that I believe to be a classpath problem (see below), 
> > but I have included the path to the localhost directory, even created a jar 
> > of the class files and still get the error. I can compile the file directory 
> > just fine. But if I put the class file from a normal javac in the jwsClasses 
> > directory the call to produce the WSDL (
> > http://kw14:8080/axis/TLS.jws?wsdl) from the browser say's file not 
> > found. 
> > 
> > Line in java code (the directory structure exists and the java code is 
> > compiled): 
> > 
> > import localhost.axis.OMS_jws.*;
> > 
> > 
> > Running on XP
> > Using tomcat distributed with JWSDP 1.4
> > Axis 1.2
> > 
> > 
> > AXIS error 
> > 
> > Sorry, something seems to have gone wrong... here are the details:
> > 
> > Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> > 
> > AxisFault
> >  faultCode: {
> > http://xml.apache.org/axis/}Server.compileError
> >  faultSubcode: 
> >  faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> >  faultActor: 
> >  faultNode: 
> >  faultDetail: 
> > 
> > 	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
> > Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
> > C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
> >  Package localhost.axis.OMS_jws not found in import.
> > import localhost.axis.OMS_jws.*;
> > 
> >     
> >  
> 
> 
> -- 
> <html><a href="
> http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82"<http://www.spreadfirefox.com/?q=affiliates&id=0&t=82%22>><img 
> border="0" alt="Get Firefox!" title="Get Firefox!" src="
> http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/<http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html> 
> 
> 
> 


-- 
"I swear, the next bastard that kisses the ground in front of me is gonna 
get
kicked in the antique chicken coops." - Cohen the Barbarian

Re: jws compile problem

Posted by Frank <fg...@optonline.net>.
Well I looked at the catalina.bat file.  Seems it does not use the 
CLASSPATH environment variable that is set for the system.  I changed it 
to  do that and restarted Tomcat but no good.  Same problem. 

Is there a separate variable used for tomcat for it's classpath beyond 
that? like TOMCAT_CLASSPATH or something?

Thanks,

Frank

Dan O'Neill wrote:

> This is probably a stupid thing to say but have you checked tomcats 
> classpath....
>
> Dan
>
> On 5/17/05, Frank <fgeck@optonline.net <ma...@optonline.net>> 
> wrote:
>
>     I have a problem that I believe to be a classpath problem (see
>     below), but I have included the path to the localhost directory,
>     even created a jar of the class files and still  get the error.  I
>     can compile the file directory just fine.  But if  I put the class
>     file from a normal javac in the jwsClasses directory the call to
>     produce the WSDL (http://kw14:8080/axis/TLS.jws?wsdl) from the
>     browser say's file not found.
>
>     Line in java code (the directory structure exists and the java
>     code is compiled):
>
>import localhost.axis.OMS_jws.*;
>
>
>     Running on XP
>     Using tomcat distributed with JWSDP 1.4
>     Axis 1.2
>
>
>         AXIS error
>
>     Sorry, something seems to have gone wrong... here are the details:
>
>Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>
>AxisFault
> faultCode: {
>http://xml.apache.org/axis/}Server.compileError
> faultSubcode: 
> faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> faultActor: 
> faultNode: 
> faultDetail: 
>
>	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
>Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
>C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39:
> Package localhost.axis.OMS_jws not found in import.
>import localhost.axis.OMS_jws.*;
>
>    
>
>
>
>
>
> -- 
> <html><a 
> href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82" 
> <http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82%22>><img 
> border="0" alt="Get Firefox!" title="Get Firefox!" 
> src="http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/ 
> <http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif%22/>></a></html> 



Re: jws compile problem

Posted by Dan O'Neill <do...@gmail.com>.
This is probably a stupid thing to say but have you checked tomcats 
classpath....

Dan

On 5/17/05, Frank <fg...@optonline.net> wrote:
> 
> I have a problem that I believe to be a classpath problem (see below), but 
> I have included the path to the localhost directory, even created a jar of 
> the class files and still get the error. I can compile the file directory 
> just fine. But if I put the class file from a normal javac in the jwsClasses 
> directory the call to produce the WSDL (http://kw14:8080/axis/TLS.jws?wsdl) 
> from the browser say's file not found. 
> 
> Line in java code (the directory structure exists and the java code is 
> compiled): 
> 
> import localhost.axis.OMS_jws.*;
> 
> 
> Running on XP
> Using tomcat distributed with JWSDP 1.4
> Axis 1.2
> 
> 
> AXIS error 
> 
> Sorry, something seems to have gone wrong... here are the details:
> 
> Fault - Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
> 
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}Server.compileError
>  faultSubcode: 
>  faultString: Error while compiling:  C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java
>  faultActor: 
>  faultNode: 
>  faultDetail: 
> 	{}Errors:Error compiling C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:
> Line 0, column 0: could not parse error message:  Note: sun.tools.javac.Main has been deprecated.
> C:\tomcat-jwsdp-1.4\webapps\axis\WEB-INF\jwsClasses\TLS.java:39: Package localhost.axis.OMS_jws not found in import.
> import localhost.axis.OMS_jws.*;
> 
> 
> 


-- 
<html><a href="http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=82"><img
border="0" alt="Get Firefox!" title="Get Firefox!" src="
http://sfx-images.mozilla.org/affiliates/Buttons/80x15/white_1.gif"/
></a></html>