I think my answer is not going to be very useful, but try it, if you want: compile with a ant target, with fork=true, and include every pathelement you think you need. I have a problem with classpaths, and I find this useful.
Pedro Nevado Lonja Soluciones -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 26 de marzo de 2003 17:01 Para: [EMAIL PROTECTED] Asunto: Re: Java compiler error "cannot resolve symbol" for WSDL2JAVA automatic generated classes Sreekant, that's what I did too but without success.. Any idea? Geert Sreekant Thirunagari wrote: > Try to give all the files in single line .. like > javac -classpath your-path-to-jars *.java > > [EMAIL PROTECTED] wrote: > > > Since I have no response or hint seen, I repost this mail. Initially I've sent it by accident to axis-dev which was not the purpose. Hope > > somebode can help me out of this. > > > > Geert Martens > > > > Geert MARTENS wrote: > > > > > Hi, > > > > > > I get all the time compiler error "cannot resolve symbol" for > > > java classes automatic generated from a WSDL file. The automatic > > > generated classes are all put in a directory to act as a package. Some > > > classes refer to each other and it seems(?) this is not acceptable by my > > > Java compiler. > > > I consulted some Java specialists inside Alcatel and they > > > confirmed me that so called "cross referencing" of classes in a package > > > is allowed........ but nobody can get me out of this after some weeks of > > > headache..... > > > > > > I give you the commandline I used to generate (automatically) the > > > classes from my *.WSDL file and zip my Java package directory : > > > > > > I only succeeded in compiling the class ERBLData.java > > > > > > When compiling ERBLTable.java I get "cannot resolve symbol" for > > > class COMQroutingPortType. > > > When I compile COMQroutingPortType.java I get the error "cannot resolve > > > symbol" to ERBLTable + some other errors too. > > > > > > Despite the fact that the classes are put in one and the same directory > > > on my PC, it seems (for what reason? that's why I consult you) that the > > > compiler cannot localise the other classes..... > > > > > > java -cp > > > axis.jar;axis-ant.jar;saaj.jar;jaxrpc.jar;wsdl4j.jar;log4j-1.2.4.jar;commons -discovery.jar;commons-logging.jar;xmlParserAPIs.jar;xercesImpl.jar;. > > > > > > org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true > > > COMQrouting.wsdl > > > > > > All .jar files + the COMQrouting.wsdl are put under 1 directory on my > > > PC. The directory is : > > > C:\martensg\Xml-Axis\axis-1_1beta\lib > > > > > > I must say that 2 .jar files from my command line are not extracted in > > > the lib directory after installation of Axis on my PC. The 2 .jar files > > > are : xmlParserAPIs.jar;xercesImpl.jar > > > > > > I start following compiler sequence in the directory > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting : > > > > > > C:\martensg\Xml-Axis\axis-1_1beta>cd comqrouting > > > > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting>javac ERBLData.java > > > > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting>javac ERBLTable.java > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting\COMQrouting.java:15: > > > cannot resolv > > > e symbol > > > symbol : class COMQroutingPortType > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.COMQroutingPortType getCOMQroutingPort() throws > > > javax.xml > > > .rpc.ServiceException; > > > ^ > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting\COMQrouting.java:17: > > > cannot resolv > > > e symbol > > > symbol : class COMQroutingPortType > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.COMQroutingPortType > > > getCOMQroutingPort(java.net.URL portA > > > ddress) throws javax.xml.rpc.ServiceException; > > > ^ > > > ERBLTable.java:11: cannot resolve symbol > > > symbol : class ERBLData > > > location: interface COMQrouting.COMQrouting > > > private COMQrouting.ERBLData[] item; > > > ^ > > > ERBLTable.java:16: cannot resolve symbol > > > symbol : class ERBLData > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.ERBLData[] getItem() { > > > ^ > > > ERBLTable.java:20: cannot resolve symbol > > > symbol : class ERBLData > > > location: interface COMQrouting.COMQrouting > > > public void setItem(COMQrouting.ERBLData[] item) { > > > ^ > > > ERBLTable.java:24: cannot resolve symbol > > > symbol : class ERBLData > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.ERBLData getItem(int i) { > > > ^ > > > ERBLTable.java:28: cannot resolve symbol > > > symbol : class ERBLData > > > location: interface COMQrouting.COMQrouting > > > public void setItem(int i, COMQrouting.ERBLData value) { > > > ^ > > > 7 errors > > > > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting>javac > > > COMQroutingPortType.java > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting\COMQrouting.java:15: > > > cannot resolv > > > e symbol > > > symbol : class COMQroutingPortType > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.COMQroutingPortType getCOMQroutingPort() throws > > > javax.xml > > > .rpc.ServiceException; > > > ^ > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting\COMQrouting.java:17: > > > cannot resolv > > > e symbol > > > symbol : class COMQroutingPortType > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.COMQroutingPortType > > > getCOMQroutingPort(java.net.URL portA > > > ddress) throws javax.xml.rpc.ServiceException; > > > ^ > > > COMQroutingPortType.java:13: cannot resolve symbol > > > symbol : class ERBLTable > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.ERBLTable getERBLCOMQData() throws > > > java.rmi.RemoteExcepti > > > on; > > > ^ > > > COMQroutingPortType.java:16: cannot resolve symbol > > > symbol : class ERBLSingle > > > location: interface COMQrouting.COMQrouting > > > public int putERBLCOMQData(COMQrouting.ERBLSingle ERBLCOMQData) > > > throws java. > > > rmi.RemoteException; > > > ^ > > > COMQroutingPortType.java:19: cannot resolve symbol > > > symbol : class ESRBTable > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.ESRBTable getESRBCOMQData() throws > > > java.rmi.RemoteExcepti > > > on; > > > ^ > > > COMQroutingPortType.java:22: cannot resolve symbol > > > symbol : class ESRBSingle > > > location: interface COMQrouting.COMQrouting > > > public int putESRBCOMQData(COMQrouting.ESRBSingle ESRBCOMQData) > > > throws java. > > > rmi.RemoteException; > > > ^ > > > COMQroutingPortType.java:25: cannot resolve symbol > > > symbol : class NamePwdArray > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.SoapArray getPersonData(COMQrouting.NamePwdArray > > > input) t > > > hrows java.rmi.RemoteException; > > > ^ > > > COMQroutingPortType.java:25: cannot resolve symbol > > > symbol : class SoapArray > > > location: interface COMQrouting.COMQrouting > > > public COMQrouting.SoapArray getPersonData(COMQrouting.NamePwdArray > > > input) t > > > hrows java.rmi.RemoteException; > > > ^ > > > 8 errors > > > > > > C:\martensg\Xml-Axis\axis-1_1beta\COMQrouting> > > > > > > Hope you can help me out of this situation. > > > > > > Best Regards > > > > > ------------------------------------------------------------------------ > > > Name: COMQrouting.wsdl > > > COMQrouting.wsdl Type: BizTalk Schema (text/xml) > > > Encoding: 7bit > > > > > > Name: COMQrouting.zip > > > COMQrouting.zip Type: Zip Compressed Data (application/x-zip-compressed) > > > Encoding: base64
