Import app to svn when run app package weblogic.xml.process does not exist
Hi,
i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
Error(16,28): package weblogic.xml.process does not exist
Error(6,25): package weblogic.security does not exist
Error(8,34): package weblogic.security.services does not exist
Error(9,33): package weblogic.servlet.security does not exist
Error(39,36): cannot find class SimpleCallbackHandler
Error(41,26): cannot find variable Authentication
Error(42,6): cannot find variable ServletAuthentication
any ideas??
thanks.
Hi,
i am versioning my adf application to a server with subversion, the initial import of the application works ok, but when i tried to run it, it does not found all weblogic classes.....
Error(16,28): package weblogic.xml.process does not exist
Error(6,25): package weblogic.security does not exist
Error(8,34): package weblogic.security.services does not exist
Error(9,33): package weblogic.servlet.security does not exist
Error(39,36): cannot find class SimpleCallbackHandler
Error(41,26): cannot find variable Authentication
Error(42,6): cannot find variable ServletAuthentication
any ideas??
thanks.
Similar Messages
-
"package javax.xml .rpc does not exist" error when compiling client jar
When I try to compile the web services client jar with either the clientgen or the <client> element of servicegen I get the following error "package weblogic.webservice.core.rpc does not exist"
Here is the error output
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:10: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:9: package javax.xml.rpc does not exist
[servicegen] public interface OSHService extends javax.xml.rpc.Service{
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:11: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext context();
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:13: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext joinContext()
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:14: package weblogic.webservice.context does not exist
[servicegen] throws weblogic.webservice.context.ContextNotFoundException;
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:16: package javax.xml.rpc does not exist
[servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort() throws javax.xml.rpc.ServiceException;
[servicegen]
^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHService.java:18: package javax.xml.rpc does not exist
[servicegen] com.onexchange.tools.osh.client.OSHServicePort getOSHServicePort(String username, String password) throws javax.xml.rpc.ServiceException;
[servicegen]
^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.StubImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:12: package weblogic.webservice does not exist
[servicegen] public OSHServicePort_Stub( weblogic.webservice.Port _port ){
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:9: com.onexchange.tools.osh.client.OSHService_Impl should be declared abstract; it does not define context() in com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] public class OSHService_Impl
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_clie
nt.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:40: cannot
resolve symbol
[servicegen] symbol : method _getPort (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] new com.onexchange.tools.osh.client.OSHServicePort_Stub( _g
etPort( "OSHServicePort" ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHService_Impl.java:49: cannot
resolve symbol
[servicegen] symbol : method _setUser (java.lang.String,java.lang.String,com.on
exchange.tools.osh.client.OSHServicePort)
[servicegen] location: class com.onexchange.tools.osh.client.OSHService_Impl
[servicegen] _setUser( username, password, getOSHServicePort() );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:24: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:25: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string0", wrap( string0 ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:27: ca
nnot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] java.lang.Object result = invoke( "login", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:29: pa
ckage javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:31: pa
ckage javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:44: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:45: ca
nnot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] args.put( "string0", wrap( string0 ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:47: ca
nnot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class com.onexchange.tools.osh.client.OSHServicePort_Stub
[servicegen] java.lang.Object result = invoke( "oshRequest", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:49: pa
ckage javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\fkhan\Local Settings\Temp\OSHService_client.jar-610368643\com\onexchange\tools\osh\client\OSHServicePort_Stub.java:51: pa
ckage javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] 22 errors
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:470)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:329)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:337)
[servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
leFiles(CompilerHelper.java:80)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
eStubs(ClientGenImpl.java:608)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
teStub(ClientGenImpl.java:553)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromEAR(ClientGenImpl.java:502)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:348)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.g
enerateClient(ServiceGenTask.java:597)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.e
xecute(ServiceGenTask.java:195)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:341)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[servicegen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[servicegen] at org.apache.tools.ant.Main.start(Main.java:196)
[servicegen] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
Below is the -debug from the ant task immediately following:
<target name="web-service" depends="osh_bean_jar">
<servicegen
destEar="${build}/osh_service"
warName="osh_service.war"
contextURI="web_services" >
<service
ejbJar="${dist}/osh_bean.jar"
targetNamespace="http://www.bea.com/webservices/basic/statelesSession"
serviceName="OSHService"
serviceURI="/OSHService"
generateTypes="True"
expandMethods="True"
style="rpc">
<client
packageName="com.onexchange.tools.osh.client" />
</service>
</servicegen>
</target>
Apache Ant version 1.5.3 compiled on August 13 2003
Buildfile: \onexv3.x\src\antfile\osh.xml
Detected Java version: 1.4 in: C:\bea\JDK141~1\jre
Detected OS: Windows 2000
+User task: propertyfile org.apache.tools.ant.taskdefs.optional.PropertyFile
+User task: vsscheckin org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKIN
+User task: sql org.apache.tools.ant.taskdefs.SQLExec
+User task: cvspass org.apache.tools.ant.taskdefs.CVSPass
+User task: p4reopen org.apache.tools.ant.taskdefs.optional.perforce.P4Reopen
+User task: csc org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
+User task: dirname org.apache.tools.ant.taskdefs.Dirname
+User task: wlrun org.apache.tools.ant.taskdefs.optional.ejb.WLRun
+User task: servicegen weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask
+User task: p4label org.apache.tools.ant.taskdefs.optional.perforce.P4Label
+User task: p4revert org.apache.tools.ant.taskdefs.optional.perforce.P4Revert
+User task: replaceregexp org.apache.tools.ant.taskdefs.optional.ReplaceRegExp
+User task: ddcreate weblogic.ant.taskdefs.build.DDCreateTask
+User task: get org.apache.tools.ant.taskdefs.Get
+User task: jjtree org.apache.tools.ant.taskdefs.optional.javacc.JJTree
+User task: sleep org.apache.tools.ant.taskdefs.Sleep
+User task: jarlib-display org.apache.tools.ant.taskdefs.optional.extension.JarLibDisplayTask
+User task: dependset org.apache.tools.ant.taskdefs.DependSet
+User task: zip org.apache.tools.ant.taskdefs.Zip
+User task: patch org.apache.tools.ant.taskdefs.Patch
+User task: jspc weblogic.ant.taskdefs.j2ee.Jspc
+User task: style org.apache.tools.ant.taskdefs.XSLTProcess
+User task: test org.apache.tools.ant.taskdefs.optional.Test
+User task: tstamp org.apache.tools.ant.taskdefs.Tstamp
+User task: unwar org.apache.tools.ant.taskdefs.Expand
+User task: vsshistory org.apache.tools.ant.taskdefs.optional.vss.MSVSSHISTORY
+User task: icontract org.apache.tools.ant.taskdefs.optional.IContract
+User task: cvschangelog org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask
+User task: p4submit org.apache.tools.ant.taskdefs.optional.perforce.P4Submit
+User task: ccmcheckin org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckin
+User task: p4change org.apache.tools.ant.taskdefs.optional.perforce.P4Change
+User task: bzip2 org.apache.tools.ant.taskdefs.BZip2
+User task: wspackage weblogic.ant.taskdefs.webservices.wspackage.WSPackage
+User task: p4delete org.apache.tools.ant.taskdefs.optional.perforce.P4Delete
+User task: vssadd org.apache.tools.ant.taskdefs.optional.vss.MSVSSADD
+User task: javadoc org.apache.tools.ant.taskdefs.Javadoc
+User task: translate org.apache.tools.ant.taskdefs.optional.i18n.Translate
+User task: signjar org.apache.tools.ant.taskdefs.SignJar
+User task: vajload org.apache.tools.ant.taskdefs.optional.ide.VAJLoadProjects
+User task: jarlib-available org.apache.tools.ant.taskdefs.optional.extension.JarLibAvailableTask
+User task: wsdd-merge weblogic.ant.taskdefs.webservices.autotype.DDMerge
+User task: WsdlToDotnet org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
+User task: buildnumber org.apache.tools.ant.taskdefs.BuildNumber
+User task: jpcovmerge org.apache.tools.ant.taskdefs.optional.sitraka.CovMerge
+User task: compliance weblogic.ant.taskdefs.webservices.compliance.Compliance
+User task: ejbjar org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
Could not load class (weblogic.ant.taskdefs.perforce.P4Changes) for task p4changes
+User task: war org.apache.tools.ant.taskdefs.War
Could not load a dependent class (com/starbase/starteam/Item) for task stlist
+User task: rename org.apache.tools.ant.taskdefs.Rename
+User task: sequential org.apache.tools.ant.taskdefs.Sequential
+User task: serverdeploy org.apache.tools.ant.taskdefs.optional.j2ee.ServerDeploy
+User task: wsdlgen weblogic.ant.taskdefs.webservices.wsdlgen.WSDLGen
+User task: property org.apache.tools.ant.taskdefs.Property
+User task: move org.apache.tools.ant.taskdefs.Move
+User task: copydir org.apache.tools.ant.taskdefs.Copydir
+User task: cccheckin org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
+User task: wljspc org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
+User task: fixcrlf org.apache.tools.ant.taskdefs.FixCRLF
Could not load a dependent class (com/oroinc/net/SocketClient) for task telnet
+User task: sosget org.apache.tools.ant.taskdefs.optional.sos.SOSGet
Could not load class (weblogic.ant.taskdefs.perforce.P4VersionString) for task p4versionstring
+User task: pathconvert org.apache.tools.ant.taskdefs.PathConvert
+User task: autotype weblogic.ant.taskdefs.webservices.javaschema.JavaSchema
+User task: record org.apache.tools.ant.taskdefs.Recorder
+User task: p4sync org.apache.tools.ant.taskdefs.optional.perforce.P4Sync
+User task: exec org.apache.tools.ant.taskdefs.ExecTask
+User task: p4edit org.apache.tools.ant.taskdefs.optional.perforce.P4Edit
+User task: manifest org.apache.tools.ant.taskdefs.ManifestTask
+User task: maudit org.apache.tools.ant.taskdefs.optional.metamata.MAudit
+User task: antlr org.apache.tools.ant.taskdefs.optional.ANTLR
+User task: netrexxc org.apache.tools.ant.taskdefs.optional.NetRexxC
Could not load a dependent class (com/oroinc/net/ftp/FTP) for task ftp
+User task: jpcovreport org.apache.tools.ant.taskdefs.optional.sitraka.CovReport
+User task: wsdl2service weblogic.ant.taskdefs.webservices.wsdl2service.WSDL2Service
+User task: execon org.apache.tools.ant.taskdefs.ExecuteOn
+User task: ccmcheckout org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckout
+User task: ant org.apache.tools.ant.taskdefs.Ant
+User task: xmlvalidate org.apache.tools.ant.taskdefs.optional.XMLValidateTask
+User task: xslt org.apache.tools.ant.taskdefs.XSLTProcess
+User task: iplanet-ejbc org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbcTask
+User task: ccmcheckintask org.apache.tools.ant.taskdefs.optional.ccm.CCMCheckinDefault
+User task: gzip org.apache.tools.ant.taskdefs.GZip
+User task: native2ascii org.apache.tools.ant.taskdefs.optional.Native2Ascii
+User task: starteam org.apache.tools.ant.taskdefs.optional.scm.AntStarTeamCheckOut
+User task: ear org.apache.tools.ant.taskdefs.Ear
+User task: input org.apache.tools.ant.taskdefs.Input
+User task: wlpath weblogic.ant.taskdefs.WLPath
+User task: pointbase weblogic.ant.taskdefs.pointbase.PointBase
+User task: rmic weblogic.ant.taskdefs.j2ee.Rmic
+User task: checksum org.apache.tools.ant.taskdefs.Checksum
+User task: mail org.apache.tools.ant.taskdefs.email.EmailTask
+User task: loadfile org.apache.tools.ant.taskdefs.LoadFile
+User task: wsgen weblogic.ant.taskdefs.webservices.wsgen.WSGenTask
+User task: vsscheckout org.apache.tools.ant.taskdefs.optional.vss.MSVSSCHECKOUT
+User task: stylebook org.apache.tools.ant.taskdefs.optional.StyleBook
+User task: soscheckin org.apache.tools.ant.taskdefs.optional.sos.SOSCheckin
+User task: mimemail org.apache.tools.ant.taskdefs.optional.net.MimeMail
+User task: stlabel org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel
+User task: gunzip org.apache.tools.ant.taskdefs.GUnzip
+User task: concat org.apache.tools.ant.taskdefs.Concat
+User task: cab org.apache.tools.ant.taskdefs.optional.Cab
+User task: touch org.apache.tools.ant.taskdefs.Touch
+User task: parallel org.apache.tools.ant.taskdefs.Parallel
+User task: splash org.apache.tools.ant.taskdefs.optional.splash.SplashTask
+User task: antcall org.apache.tools.ant.taskdefs.CallTarget
Could not load class (weblogic.ant.taskdefs.ejb.DDInit) for task ddinit
+User task: cccheckout org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
+User task: typedef org.apache.tools.ant.taskdefs.Typedef
+User task: p4have org.apache.tools.ant.taskdefs.optional.perforce.P4Have
+User task: filter org.apache.tools.ant.taskdefs.Filter
+User task: xmlproperty org.apache.tools.ant.taskdefs.XmlProperty
Could not load a dependent class (jdepend/xmlui/JDepend) for task jdepend
+User task: copy org.apache.tools.ant.taskdefs.Copy
+User task: clientgen weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask
+User task: createidl weblogic.ant.taskdefs.iiop.CppIdlSetup
+User task: antstructure org.apache.tools.ant.taskdefs.AntStructure
Could not load a dependent class (com/ibm/bsf/BSFException) for task script
+User task: ccmcreatetask org.apache.tools.ant.taskdefs.optional.ccm.CCMCreateTask
+User task: rpm org.apache.tools.ant.taskdefs.optional.Rpm
+User task: delete org.apache.tools.ant.taskdefs.Delete
+User task: replace org.apache.tools.ant.taskdefs.Replace
+User task: mmetrics org.apache.tools.ant.taskdefs.optional.metamata.MMetrics
+User task: waitfor org.apache.tools.ant.taskdefs.WaitFor
+User task: untar org.apache.tools.ant.taskdefs.Untar
+User task: loadproperties org.apache.tools.ant.taskdefs.LoadProperties
+User task: wldeploy weblogic.ant.taskdefs.management.WLDeploy
+User task: available org.apache.tools.ant.taskdefs.Available
+User task: echoproperties org.apache.tools.ant.taskdefs.optional.EchoProperties
Could not load a dependent class (junit/framework/TestListener) for task junit
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckin
+User task: vajexport org.apache.tools.ant.taskdefs.optional.ide.VAJExport
Could not load a dependent class (com/starbase/starteam/Item) for task stcheckout
+User task: bunzip2 org.apache.tools.ant.taskdefs.BUnzip2
+User task: copyfile org.apache.tools.ant.taskdefs.Copyfile
+User task: wlserver weblogic.ant.taskdefs.management.WLServer
+User task: vsscreate org.apache.tools.ant.taskdefs.optional.vss.MSVSSCREATE
+User task: wlconfig weblogic.ant.taskdefs.management.WLConfig
+User task: ejbc weblogic.ant.taskdefs.j2ee.Ejbc
+User task: unjar org.apache.tools.ant.taskdefs.Expand
+User task: wsdltodotnet org.apache.tools.ant.taskdefs.optional.dotnet.WsdlToDotnet
+User task: wlcompile weblogic.ant.taskdefs.build.WLCompileTask
+User task: mkdir org.apache.tools.ant.taskdefs.Mkdir
+User task: cvs org.apache.tools.ant.taskdefs.Cvs
+User task: condition org.apache.tools.ant.taskdefs.ConditionTask
+User task: tempfile org.apache.tools.ant.taskdefs.TempFile
+User task: junitreport org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator
+User task: taskdef org.apache.tools.ant.taskdefs.Taskdef
+User task: echo org.apache.tools.ant.taskdefs.Echo
+User task: ccupdate org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
+User task: java org.apache.tools.ant.taskdefs.Java
+User task: vsslabel org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
+User task: renameext org.apache.tools.ant.taskdefs.optional.RenameExtensions
+User task: basename org.apache.tools.ant.taskdefs.Basename
+User task: javadoc2 org.apache.tools.ant.taskdefs.Javadoc
+User task: tar org.apache.tools.ant.taskdefs.Tar
+User task: vsscp org.apache.tools.ant.taskdefs.optional.vss.MSVSSCP
+User task: vajimport org.apache.tools.ant.taskdefs.optional.ide.VAJImport
+User task: setproxy org.apache.tools.ant.taskdefs.optional.net.SetProxy
+User task: p4counter org.apache.tools.ant.taskdefs.optional.perforce.P4Counter
+User task: wlstop org.apache.tools.ant.taskdefs.optional.ejb.WLStop
+User task: ilasm org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
+User task: soscheckout org.apache.tools.ant.taskdefs.optional.sos.SOSCheckout
+User task: apply org.apache.tools.ant.taskdefs.Transform
+User task: ccuncheckout org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
+User task: jarlib-resolve org.apache.tools.ant.taskdefs.optional.extension.JarLibResolveTask
+User task: jlink org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
+User task: cvstagdiff org.apache.tools.ant.taskdefs.cvslib.CvsTagDiff
+User task: javacc org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
+User task: chmod org.apache.tools.ant.taskdefs.Chmod
+User task: pvcs org.apache.tools.ant.taskdefs.optional.pvcs.Pvcs
+User task: jarlib-manifest org.apache.tools.ant.taskdefs.optional.extension.JarLibManifestTask
+User task: jar org.apache.tools.ant.taskdefs.Jar
+User task: sound org.apache.tools.ant.taskdefs.optional.sound.SoundTask
+User task: wlappc weblogic.ant.taskdefs.j2ee.Appc
+User task: mparse org.apache.tools.ant.taskdefs.optional.metamata.MParse
+User task: blgenclient org.apache.tools.ant.taskdefs.optional.ejb.BorlandGenerateClient
+User task: uptodate org.apache.tools.ant.taskdefs.UpToDate
+User task: genkey org.apache.tools.ant.taskdefs.GenerateKey
+User task: javah org.apache.tools.ant.taskdefs.optional.Javah
+User task: ccmreconfigure org.apache.tools.ant.taskdefs.optional.ccm.CCMReconfigure
+User task: fail org.apache.tools.ant.taskdefs.Exit
+User task: unzip org.apache.tools.ant.taskdefs.Expand
+User task: javac org.apache.tools.ant.taskdefs.Javac
+User task: source2wsdd weblogic.ant.taskdefs.webservices.autotype.JavaSource2DD
+User task: p4add org.apache.tools.ant.taskdefs.optional.perforce.P4Add
+User task: jpcoverage org.apache.tools.ant.taskdefs.optional.sitraka.Coverage
+User task: soslabel org.apache.tools.ant.taskdefs.optional.sos.SOSLabel
+User task: depend org.apache.tools.ant.taskdefs.optional.depend.Depend
+User task: wlpackage weblogic.ant.taskdefs.build.WLPackageTask
+User task: vssget org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
+User task: deltree org.apache.tools.ant.taskdefs.Deltree
+User task: ddcreator org.apache.tools.ant.taskdefs.optional.ejb.DDCreator
+User datatype: patternset org.apache.tools.ant.types.PatternSet
+User datatype: filterset org.apache.tools.ant.types.FilterSet
+User datatype: libfileset org.apache.tools.ant.taskdefs.optional.extension.LibFileSet
+User datatype: filterreader org.apache.tools.ant.types.AntFilterReader
+User datatype: extension org.apache.tools.ant.taskdefs.optional.extension.ExtensionAdapter
+User datatype: fileset org.apache.tools.ant.types.FileSet
+User datatype: dirset org.apache.tools.ant.types.DirSet
+User datatype: filelist org.apache.tools.ant.types.FileList
+User datatype: filterchain org.apache.tools.ant.types.FilterChain
+User datatype: path org.apache.tools.ant.types.Path
+User datatype: classfileset org.apache.tools.ant.types.optional.depend.ClassfileSet
+User datatype: description org.apache.tools.ant.types.Description
+User datatype: xmlcatalog org.apache.tools.ant.types.XMLCatalog
+User datatype: selector org.apache.tools.ant.types.selectors.SelectSelector
+User datatype: mapper org.apache.tools.ant.types.Mapper
+User datatype: substitution org.apache.tools.ant.types.Substitution
+User datatype: extensionSet org.apache.tools.ant.taskdefs.optional.extension.ExtensionSet
+User datatype: regexp org.apache.tools.ant.types.RegularExpression
Setting ro project property: ant.version -> Apache Ant version 1.5.3 compiled on August 13 2003
Setting ro project property: ant.file -> C:\onexv3.x\src\antfile\osh.xml
parsing buildfile \onexv3.x\src\antfile\osh.xml with URI = file:C:/onexv3.x/src/antfile/osh.xml
Setting ro project property: ant.project.name -> osh
Adding reference: osh -> org.apache.tools.ant.Project@12ad19e
Project base dir set to: C:\onexv3.x\src\antfile
resolving systemId: file:properties.xml
+Task: property
[property] Loading Environment env.
Setting project property: env.SYSTEMROOT -> C:\WINNT
Setting project property: env.ONEX_WL_IP -> localhost
Setting project property: env.ORACLE_HOME -> /oracle/ora92
Setting project property: env.WEBROOT -> /weblogic/weblogic81/config/onexdomain-v3x/applications/onexchange
Setting project property: env.PROMPT -> $P$G
Setting project property: env.MY_PASSWORD -> qa1
Setting project property: env.JAVA_OPTIONS -> -Xverify:none
Setting project property: env.POINTBASE_TOOLS -> C:\weblogic\WEBLOG~1\common\eval\pointbase\lib\pbtools44.jar
Setting project property: env.ONEX_CONFIG -> /onexv3.x/ops/config/config_dev-v2.x.txt
Setting project property: env.PWD -> /weblogic/weblogic81/server/bin
Setting project property: env.COMPUTERNAME -> FKHAN2
Setting project property: env.JSPWD -> /weblogic/weblogic81/config/onexdomain-v3x/classfiles
Setting project property: env.MAKE_MODE -> UNIX
Setting project property: env.ALLUSERSPROFILE -> C:\Documents and Settings\All Users
Setting project property: env.h -> /onexv3.x
Setting project property: env.SERVLET_CLASSES -> /weblogic/weblogic81/config/onexdomain-v3x/servletclasses
Setting project property: env.HOMEPATH -> \Documents and Settings\fkhan
Setting project property: env.ONEX_NOTIFY -> 1
Setting project property: env.ONEX -> /onexv3.x
Setting project property: env.ONEX_TQREADER -> 1
Setting project property: env.JDK_CLASSES -> /bea/jdk141_05/lib/rt.jar
Setting project property: env._ -> ./ant.bat
Setting project property: env.EXT -> .60
Setting project property: env.SHELL -> /bin/sh
Setting project property: env.Z -> ;
Setting project property: env.X -> 1
Setting project property: env.MY_NAME -> qa1
Setting project property: env.ONEX_AUDIT -> 1
Setting project property: env.MY_DW_DB_SERVICE -> qa
Setting project property: env.PATH -> C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;C:\weblogic\WEBLOG~1\server\bin;C:\bea\JDK141~1\jre\bin;C:\bea\JDK141~1\bin;.;C:\onexv3.x\ops\scripts;C:\onexv3.x\scripts;C:\onexv3.x\3rdparty\ant\bin;C:\bea\jdk141_05\bin;C:\onexv3.x\scripts\singledb;C:\Oracle\Ora9\bin;C:\cygnus\CYGWIN~1\H-I586~1\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Perforce;C:\cygwin\bin;C:\putty;C:\weblogic\WEBLOG~1\server\bin\oci920_8
Setting project property: env.MY_INSTANCE -> qa
Setting project property: env.POINTBASE_HOME -> C:\weblogic\WEBLOG~1\common\eval\pointbase
Setting project property: env.WINDIR -> C:\WINNT
Setting project property: env.ONEX_WL_HOME -> /weblogic/weblogic81
Setting project property: env.ONEX_TRADING -> 1
Setting project property: env.HOSTTYPE -> i586
Setting project property: env.J -> /onexv3.x/jars
Setting project property: env.PROCESSOR_IDENTIFIER -> x86 Family 6 Model 8 Stepping 3, GenuineIntel
Setting project property: env.JAVA_VENDOR -> Sun
Setting project property: env.TEMP -> C:\DOCUME~1\fkhan\LOCALS~1\Temp
Setting project property: env.ONEX_JAVA_HOME -> /bea/jdk141_05
SettiCan somebody tell me how to run the webservices in weblogic samples,when i run this(build.xml)i get the following error.
=========================================================Buildfile: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml
clean:
[delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
[delete] Deleting directory E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
compile:
[mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
[mkdir] Created dir: E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\client
[javac] Compiling 1 source file to E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build
ear:
[servicegen] Generating service "HelloWorld" ...
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:9: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.StubImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:12: package weblogic.webservice does not exist
[servicegen] public HelloWorldPort_Stub( weblogic.webservice.Port _port ){
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:9: package javax.xml.rpc does not exist
[servicegen] public interface HelloWorld extends javax.xml.rpc.Service{
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:11: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext context();
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:13: package weblogic.webservice.context does not exist
[servicegen] weblogic.webservice.context.WebServiceContext joinContext()
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:14: package weblogic.webservice.context does not exist
[servicegen] throws weblogic.webservice.context.ContextNotFoundException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:16: package javax.xml.rpc does not exist
[servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort() throws javax.xml.rpc.ServiceException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld.java:18: package javax.xml.rpc does not exist
[servicegen] examples.webservices.basic.javaclass.HelloWorldPort getHelloWorldPort(String username, String password) throws javax.xml.rpc.ServiceException;
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:10: package weblogic.webservice.core.rpc does not exist
[servicegen] extends weblogic.webservice.core.rpc.ServiceImpl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:24: cannot resolve symbol
[servicegen] symbol : method _wrap (int)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] args.put( "intVal", wrap( intVal ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:25: cannot resolve symbol
[servicegen] symbol : method _wrap (java.lang.String)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] args.put( "string", wrap( string ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:27: cannot resolve symbol
[servicegen] symbol : method _invoke (java.lang.String,java.util.HashMap)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorldPort_Stub
[servicegen] java.lang.Object result = invoke( "sayHello", _args );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:29: package javax.xml.rpc does not exist
[servicegen] } catch (javax.xml.rpc.JAXRPCException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorldPort_Stub.java:31: package javax.xml.rpc.soap does not exist
[servicegen] } catch (javax.xml.rpc.soap.SOAPFaultException e) {
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:9: examples.webservices.basic.javaclass.HelloWorld_Impl is not abstract and does not override abstract method joinContext() in examples.webservices.basic.javaclass.HelloWorld
[servicegen] public class HelloWorld_Impl
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:40: cannot resolve symbol
[servicegen] symbol : method _getPort (java.lang.String)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
[servicegen] new examples.webservices.basic.javaclass.HelloWorldPort_Stub( _getPort( "HelloWorldPort" ) );
[servicegen] ^
[servicegen] C:\Documents and Settings\ramchandra_rapolu\Local Settings\Temp\HelloWorld_javaclass_client.jar-990169626\examples\webservices\basic\javaclass\HelloWorld_Impl.java:49: cannot resolve symbol
[servicegen] symbol : method _setUser (java.lang.String,java.lang.String,examples.webservices.basic.javaclass.HelloWorldPort)
[servicegen] location: class examples.webservices.basic.javaclass.HelloWorld_Impl
[servicegen] _setUser( username, password, getHelloWorldPort() );
[servicegen] ^
[servicegen] 17 errors
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:469)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
[servicegen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromEAR(ClientGenImpl.java:521)
[servicegen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:345)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateClient(ServiceGenTask.java:597)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:195)
[servicegen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[servicegen] at org.apache.tools.ant.Task.perform(Task.java:364)
[servicegen] at org.apache.tools.ant.Target.execute(Target.java:341)
[servicegen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[servicegen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[servicegen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[servicegen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
BUILD FAILED
E:\eclipse\Workspace\WS\examples\webservices\basic\javaclass\build.xml:42: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
[java.io.IOException: Compiler failed executable.exec]
Total time: 29 seconds -
Package javax.xml.rpc does not exist
Hi, I'm sure this is probably a basic error, which one of you Java gurus can solve instantly. I haven't used Java since 2001 and my development machine didn't even have a JDK installed until this morning!
I'm trying to create a Java client for my web service, it's COM/ASP on IIS before you ask how I did it without using Java...
Basically, I've installed J2SE v1.4.2_02, and also WSDP jwsdp-1.3, and I'm using the tutorial example at:
http://java.sun.com/webservices/docs/1.3/tutorial/doc/JAXRPC5.html#wp79973 to create a dynamic proxy client. I assume this is what I need to do to access an existing web service?
I've copied and pasted the code into my editor and saved it as HelloClient.java. I will change the URL/URI, service name, port, etc. later on.
Now, at the cmd prompt...
D:\source\DCIS\sdk\java\dynamicproxy>javac HelloClient.java
HelloClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
HelloClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
HelloClient.java:6: package javax.xml.namespace does not exist
import javax.xml.namespace.QName;
^
HelloClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
I expect this is something to do with environment variables:
PATH=C:\WINNT\system32;
C:\WINNT;C:\WINNT\System32\Wbem;
C:\Program Files\Microsoft SDK\Bin\.;
C:\Program Files\Microsoft SDK\Bin\WinNT\.;
d:\j2sdk1.4.2_02\bin\;
d:\jwsdp-1.3\jwsdp-shared\bin\;
d:\jwsdp-1.3\apache-ant\bin\
CLASSPATH=.;
Is there something I need to set in my classpath for this?
I know the tutorial suggests using Ant to build the example, but as far as I can tell that uses Tomcat, and I only want to build a client application! There must be a way to get around this...
TIA for any help you give me!Hi,
I am getting this error message when i try to create the webservice client.
D:\Sun\AppServer\apps\dynamic-proxy>javac -classpath build -d build MathClient.java
MathClient.java:4: package javax.xml.rpc does not exist
import javax.xml.rpc.Service;
^
MathClient.java:5: package javax.xml.rpc does not exist
import javax.xml.rpc.JAXRPCException;
^
MathClient.java:7: package javax.xml.rpc does not exist
import javax.xml.rpc.ServiceFactory;
^
MathClient.java:8: cannot find symbol
symbol : class FirstIF
location: package dynamicproxy
import dynamicproxy.FirstIF;
^
MathClient.java:23: cannot find symbol
symbol : class ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:23: cannot find symbol
symbol : variable ServiceFactory
location: class dynamicproxy.MathClient
ServiceFactory serviceFactory = ServiceFactory.newInstance();
^
MathClient.java:26: cannot find symbol
symbol : class Service
location: class dynamicproxy.MathClient
Service mathService = serviceFactory.createService(url,
^
7 errors
After looking at your response to add the classpath to this jar file.
jaxrpc-spi.jar.
But when i looked into my folder found that missing this jar file.
where i can i download this file?
I would like to know the error message that i have got is because of this missing file?
Please guide me on this issue.
Thanks! -
"package java.xml.registry does not exist" error in NetBeans
Hi all
I'm using netbeans for developing webservices and and have to use JAXR. I have downloaded and installed jwsdp1.5.
When I view the source code for the JAXR sample java files that accompany the java EE tutorial in the NetBeans IDE Source Editor, I get the error : package java.xml.registry does not exist.
However, the release note for NetBeans says that it supports JAXR.
Also, when I compile and run the same files using DOS and the ant command, the files work.
Can someone please tell me what to do and how to work on JAXR clients in NetBeans because the Help files don't have any documentation on it nor does the NeBeans Field Guide?Do you have the jaxrpc-api.jar and jaxprc-ri.jar in your classpath?
They are in <wspack1.1 installation>/jaxrpc-1.0.2/lib
Regards,
Bhakti -
Package javax.xml.messaging does not exist
Hi,
I have installed the Web Services Developer Pack (Version 1.1), and added the jaxm-api, jaxm-runtime, saaj-ri, and saaj-api jars to my classpath. I also added C:\jwsdp-1.1\bin to my path, and copied the jar files from C:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed to the \jre\lib\endorsed folder within my java home directory as specified.
However, I get the following error when trying to compile my program:
"package javax.xml.messaging does not exist"
import javax.xml.messaging.*;
import javax.xml.soap.*;
public class CAServlet
extends JAXMServlet
implements ReqRespListener {
Do you have any ideas on why this may be happening? Any help would be greatly appreciated.
Thanks,
ChrisHi,
The jar file jaxm-api.jar contains the package javax.xml.messaging.
Make sure you have correctly set it to your classapth.
-Amol -
Package javax.xml.parsers does not exist
When I compile the sample program for xml, DOMEcho.java, or any other xml java program, I get errors on the import statements.
For all the import statements within java.xml.* I get an error message such as: package javax.xml.parsers does not exist.
I have my path and classpath variables set as follows.
REM Java initialization
SET PATH=c:\Documents and settings\User\jwsdp-1_0_01\bin;c:\j2sdkee1.3.1\bin;c:\jdk1.3.1_01\bin;%PATH%
SET JAVA_HOME=c:\j2sdkee1.3.1_01
SET JAVA_XML_PACK_HOME=c:\java_xml
SET JAXM_HOME=c:\java_xml\java_xml_pack-summer-02_01\jaxm-1.1_01
SET JAXP_HOME=c:\java_xml\java_xml_pack-summer-02_01\jaxp-1.2_01
SET JAXR_HOME=c:\java_xml\java_xml_pack-summer-02_01\jaxr-1.0_02
SET JAXRPC_HOME=c:\java_xml\java_xml_pack-summer-02_01\jaxrpc-1.0_01
SET CLASSPATH=c:\Documents and settings\User\jwsdp-1_0_01\bin;c:\Documents and settings\User\jwsdp-1_0_01
SET CLASSPATH=%CLASSPATH%;c:\jdk1.3.1_01\bin;c:\jdk1.3.1;
SET CLASSPATH=%CLASSPATH%;c:\java_xml\java_xml_pack-summer-02_01\jaxm-1.1_01;
SET CLASSPATH=%CLASSPATH%;c:\java_xml\java_xml_pack-summer-02_01\jaxp-1.2_01;
SET CLASSPATH=%CLASSPATH%;c:\java_xml\java_xml_pack-summer-02_01\jaxr-1.0_02;
SET CLASSPATH=%CLASSPATH%;c:\java_xml\java_xml_pack-summer-02_01\jaxrpc-1.0_01
Any ideas?Now that the first program compiled I tried another sample program:
StandAlone.java and
got the same errors.
* $Id: StandAlone.java,v 1.10 2002/04/06 00:47:31 mode Exp $
* $Revision: 1.10 $
* $Date: 2002/04/06 00:47:31 $
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
This program starts with...
import java.io.*;
import javax.xml.soap.*;
import java.net.URL;
import javax.mail.internet.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import org.dom4j.*;
* A StandAlone JAXM Client.
public class StandAlone { -
Package javax.xml.soap does not exist
I have created a UDDI publish client where i am trying to publish a service.
But when i try to compile my code it gives me the following error:
package javax.xml.soap does not exist
I know i am missing some jar in my classpath. But i don't know which one. I have tried soap.jar, jaxm-api.jar, jaxm-runtime.jar, but of no success.
Can anybody tell me which jar am i missing.
Regards
RishiI tried "Request.java" (get it neer sun tutorial pages) inside windows environnement, and i got the same error !!!
Request.java:4: package javax.xml.soap does not exist
import javax.xml.soap.*;
^
1 error
(javac -classpath .;%JAVA_HOME%\lib;%JWSDP_HOME%\common\lib\mail.jar;%JWSDP_HOME%\common\lib\activation.jar;%JWSDP_HOME%\common\lib\jaxm-api.jar Request.java )
... But when i used the same command under linux it works well !
(try this sample Request.java to see difference...)
// Request.java
// (c) Sun , 2002
import java.io.*;
import java.util.*;
import javax.xml.soap.*;
import javax.xml.messaging.*;
public class Request {
public static void main(String[] args) -
Package javax.servlet.http does not exist
Hello All,
A few problems here
1. My classpath doesnt seem to work.:
.;"C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
2. As a result, i get many errors in my simple code, but there are still a few that are not related to javac not recognizing the servlet api.
I also tried setting the classpath at the command line (event hough its temporary)
set classpath="C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\servlet-api.jar"
but the servlet package is still not recognized
I have 2 classes, one to read the database connection details from a file and another class, my servlet.
Servlet Code:
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class CustomQuery extends HttpServlet
public void init() throws ServletException
EstablishDBConnetion.establishConnection();
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
response.setContentType("text/html");
PrintWriter printer = new response.getWriter();
String title = "Result from custom query";
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
ResultSet rs = stmt.executeQuery("select customerID from customer");
while(rs.next())
printer.println("<html> <head><title>" + title + "</title><br><br><table border=\"0\"> <tr><td>" + rs.getString(1));
rs.close();
stmt.close();
EstablishDBConnetion.establishConnection.con.close();
Database connection code
import java.io.*;
import java.sql.*;
import java.util.StringTokenizer;
class EstablishDBConnetion
public static void establishConnection()
try
String dbDriver = "";
String dbUrl = "";
String dbName = "";
String dbUser = "";
String dbPassword = "";
String newLine = "";
BufferedReader fileRead = new BufferedReader(new FileReader("connection.txt"));
boolean readerStatus = fileRead.ready();
newLine = fileRead.readLine();
while (readerStatus)
StringTokenizer st = new StringTokenizer(newLine, ",");
while (st.hasMoreTokens())
dbDriver = st.nextToken();
dbUrl = st.nextToken();
dbName = st.nextToken();
dbUser = st.nextToken();
dbPassword = st.nextToken();
readerStatus = fileRead.ready();
Class.forName(dbDriver);
String url = dbUrl + dbName;
System.out.print(url);
Connection con = DriverManager.getConnection(url, dbUser, dbPassword);
catch (IOException e)
System.out.println("IO exception in establishConnection()");
e.printStackTrace();
catch (java.lang.Exception ex)
System.out.println("General exception in establishConnection()");
ex.printStackTrace();
public static void main(String[] args)
//EstablishDBConnetion edbc = new EstablishDBConnetion();
establishConnection();
}also, full error list below
CustomQuery.java:4: package javax.servlet does not exist
import javax.servlet.*;
^
CustomQuery.java:5: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
CustomQuery.java:7: cannot find symbol
symbol: class HttpServlet
public class CustomQuery extends HttpServlet
^
CustomQuery.java:10: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void init() throws ServletException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletRequest
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class HttpServletResponse
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:16: cannot find symbol
symbol : class ServletException
location: class CustomQuery
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
^
CustomQuery.java:19: package response does not exist
PrintWriter printer = new response.getWriter();
^
CustomQuery.java:24: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
Statement stmt = EstablishDBConnetion.establishConnection.con.createStatement();
^
CustomQuery.java:39: cannot find symbol
symbol : variable establishConnection
location: class EstablishDBConnetion
EstablishDBConnetion.establishConnection.con.close();
^
10 errors
I appreciate your help
Message was edited by:
paulchwd
null
Message was edited by:
paulchwdThe library is in tomcat/common/lib, not in tomcat/lib.
-
Sorry that I write again about this problem, but I can't manage with it.
When I'm trying to compile the program (Assigment.java) from book code appears an error:
D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not exist
import com.bruceeckel.simpletest.*;
It's not easy!! :(
I have SDk in c:\j2sdk1.4.2_05\
my projects are in d:\java
and the source code from the book: d:\java\code\
i copied the whole catalog com\bruceeckel\ into c:\j2sdk1.4.2_05\
I JCreator in options->JDK Profiles->j2sdk1.4.2_05(edit)->sources I added path c:\j2sdk1.4.2_05
And I don't know what else??
Please Help Me!!Edna's #1 rule for Java Newbies... Never
ever use an IDE
Now you have introduced a new variable to the problem.
Assuming com.bruceeckel is in some jar file called
bruce.jar (I like that), just add the the following
to you class path
<path to bruce.jar>/bruce.jarI take it that you are working through Bruce Eckel's Thinking in Java book ( or online )... I checked it out myself not to long ago, and following the instructions, found that I had to do somethings prior to using his code samples and exercises...
One is to download his source code at http://mindview.net/Books/TIJ/#SourceCode
Two, when you read the page, it tell you that you need to compile the downloaded source code to run the examples in the book... follow the directions given in the above link...
Once its all compiled, then it will be ready for use, well after you set the classpath as per instructions...
and leave the IDE alone for now, once you get a better understanding of Java, then you can take the time to learn how to use the IDE, but for now, it will probable just confuse you more... But that only my opinion...
Any way, download, compile, set the classpath and your on your way...
- MaxxDmg...
- ' He who never sleeps... ' -
Windows Server 2008R2 running Remote Desktop Services reports printer process does not exist when installing PDF printer, And when Installing network printers from the domain controller it reports it cannot connect to printer. I can ping all
network devices. I can connect to the internet.
On boot I get a netlogon 5719 error followed by service control manager errors 7023,7001 and a group policy error 1129.
Clients can connect to the remote application and RDP operates to connect to the server internally and externally.
The domain controller is another server 2008r2 box. I have scoured the internet but have not found any solutions that work yet.Hi,
After referring to your post, it can be identified that the issue which you are facing is mostly due to some network issue in your environment. Please recheck your network connection issue between computer and domain controller.
Can you able to ping with IP address and also with fully qualified name of a domain controller in the users' and computers' domain. If it fails states that name resolution issue with computer and domain controller. Are you using MS DHCP Relay agent then there’s
available Hotfix for the particular Event ID. Please go through this KB 2459530 to fix the error event ID.
As per the net logon error 5719 which you are facing states that the client component of Netlogon was unable to locate a DC for the domain it was trying to perform an operation against. Below is one of the reason. If this is being logged on a DC and the event
refers to the DC's own domain, something might be preventing the client component of Netlogon from starting a network session (to itself or to another DC in the domain). The following event 7001 & 7023 states start & stop operation service. Please
go through beneath article for more details.
1. Event ID 5719 is logged when you start a computer
2. Netlogon 5719 and the Disappearing Domain [Controller]
3. Event ID 1129 — Microsoft-Windows-GroupPolicy
Hope it helps!
Regards. -
I imported a video and when I play it back, the audio does not match the video. When I view the tape in my camera it looks fine. I've tried imported twice and each time it doesn't match. What can I do to fix this?
The default settings mostly likely use an audio sample rate of 32k. This doesn't work probably in FCP. You're probably better off capturing the tape in iMovie.
-
Package javax.microedition.midlet does not exist
Hi:
I am trying to run the Currency Converter MIDlet. I am using SUnONE4. I have got all the updates for the SUN ONE. When I compile the Converter directory.. i get the following errors.. which indicate that it can't find the javax.micoredition..packages.
converter/ConverterMIDlet.java [11:1] package javax.microedition.midlet does not exist
import javax.microedition.midlet.*;
^
converter/ConverterMIDlet.java [12:1] package javax.microedition.lcdui does not exist
import javax.microedition.lcdui.*;
^
converter/ConverterMIDlet.java [13:1] package javax.microedition.rms does not exist
import javax.microedition.rms.*;
I havem't downloaded the J2ME since i presume that i don't need it since i have updated SunONe. There inside the SUNone i can see under the Device Emulator registory the J2ME wireless toolkit.
Can anyon ehelp please.make sure you have the microedition classes are in your classpath
--Senthil -
Package org.apache.soap does not exist
Hi,
I'm trying to deploy a webservice made out of stateless session bean.
When i run the service by invoking its method through browser then I get an exception as
Servlet error: Cannot generate Class:
package org.apache.soap does not exist
import org.apache.soap.Header;
-- It seems that the oc4j is not loading soap.jar under soap/lib
But when I add soap.jar to WEB-INF/lib then I get an exception as
java.lang.LinkageError: Class org/apache/soap/rpc/SOAPContext violates loader constraints
Which means soap.jar is loaded previosuly
The required classes are present in soap.jar
Can you please help me on this
Regards
~AnilYippee... problem solved... classpath setting problem
-
Package org.jdesktop.layout does not exist?
I have created a project in Netbeans using the Java Project with Existing Ant Script and am trying to use the Netbeans GUI interface to develop my project, but even though I have created a folder that contains the swing-layout-1.0.3.jar and I no longer get the errors in my java file, I cannot built the project. I get the error: package org.jdesktop.layout does not exist.
In my java code, I can make an import statement, and Netbeans gives no errors. I can start typing "org. " and Netbeans suggests the classes, so clearly the org.jdesktop.layout does exist and is available to the code. So why am I getting this error, and how can I correct it?
Thanks in advance,
Chris Couloni could compile it properly by givin the path to the swing-layout-1.0.3.jar file in classpath. but i'm not able to run it now. i get the following error.
Exception in thread "main" java.lang.NoClassDefFoundError: CMSUI (wrong name: my
/cmsui/CMSUI)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
thanks -
Netbeans 5.0 beta: package org.jdesktop.layout does not exist
This is a newbie question. I'm running netbeans 5.0 beta and put together a UI with the nice UI builder in netbeans. When I go to compile I get "package org.jdesktop.layout does not exist". I've updated my class path via the netbeans libaryar manager to include the jars swing-layout-0.7.jar and org-jdesktop-layout.jar but it is still not finding the class. What am I missing? Thanks!
Do you get this error when selecting "run" from within NetBeans?
When I create a project using Netbeans 5.0 beta using the form designer NetBeans automatically adds swing-layout-0.7.jar to the list of libraries in the libraries node in the project window. I didn't do anything fancy.
Do you get this error if you create another project?
it works fine for me.
Maybe you are looking for
-
I accidentally reduced the size of my window. How do I get it to fill the entire computer screen?
-
I have a function which splits records divided by a comma (v_delimiter = chr(44)) and assigns each record split to a v_line: FUNCTION devide (v_Str IN OUT VARCHAR2, v_Delimiter VARCHAR2) RETURN l_Data IS l_n NUMBER; BEGIN v_Line.DELETE;
-
I have already set up and selected sharing in the system preferences but keep getting the error that the server may not exist? I'm not sure if I've done this right? I'm completely not computer savvy and would appreciate any and all step by step guid
-
Hi, Has anyone been successful in linking up workshop 8.1 with CVS. I get this weird message when I try. I am using the pserver option. add starting... Usage: cvs add [-k rcs-kflag] [-m message] files... -k Use "rcs-kflag" to add the file wi
-
Trying to Import data from Microsoft Access in POWERPIVOT
Hello, I am trying to import data from Microsoft Access into Powerpivot. In my Access database I have several query's. When I go to the Table Import Wizard in powerpivot, I only see one source table. Why can't I see the other query's? Thanks in advan