Can't compile client with client.jar
I am unable to compile a static client using the standard client.jar produced by
Weblogic. I am trying to do this in a minimal DOS environment as shown below:
set PATH=d:\jdk1.3.1\bin
set classpath=.;client.jar
javac OssNodeWeblogicClient.java
The compiler gives me the following error:
client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
class OssNode is public, should be declared in a file named ossNode.java
(source unavailable)
1 error
I was surprised to find two java files in client.jar (OssNode.java and OssNodeFactory.java).
These files seem to confuse javac. If I remove these files from client.jar, the
compilation completes without errors and the client runs without any problems.
Has anyone seen this problem?
Naresh,
Just a quick follow-up. I used the -verbose option with
javac and saw that when my compile failed, and I saw the same
error message that you saw, javac was pulling the .java file
from the jar file and trying to compile it. In the example I
did that worked, the javac compiler was pulling the .class file
from the jar file instead.
Basically the javac compiler will fail trying to compile
the .java file located in a jar file, probably because it can't
write the .class file to the same (compressed) location. The
reason that the javac compiler is trying to recompile the .java
file, even though the .class file is also in the jar file, is
that it has determined that the .java file is more up to date.
So two questions for WebLogic:
1) Why does WebLogic include the .java files in the jar
file?
2) Why doesn't the .java file match with the .class file?
I'll let you know if/when I hear more. Rob
"Naresh Bhatia" <[email protected]> wrote:
>
I am unable to compile a static client using the standard client.jar
produced by
Weblogic. I am trying to do this in a minimal DOS environment as shown
below:
set PATH=d:\jdk1.3.1\bin
set classpath=.;client.jar
javac OssNodeWeblogicClient.java
The compiler gives me the following error:
client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
class OssNode is public, should be declared in a file named ossNode.java
(source unavailable)
1 error
I was surprised to find two java files in client.jar (OssNode.java and
OssNodeFactory.java).
These files seem to confuse javac. If I remove these files from client.jar,
the
compilation completes without errors and the client runs without any
problems.
Has anyone seen this problem?
Similar Messages
-
Can I compiler servlet with java compiler?
Can I compiler servlet with java compiler?
Here is an example of it:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloWorldServlet extends HttpServlet
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException , IOException
response.setContentType("text/html");
PrintWriter out = response.getWriter();
StringBuffer sb = new StringBuffer();
sb.append("<html><body><h1>");
sb.append("Hello World");
sb.append("</h1></body></html>");
out.print(sb.toString());
out.close();
}Can I compiler servlet with java compiler?
yes.
just include the correct jarfiles in your classpath. -
"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 -
Can not compile php with "-with-oracle=/usr/local/oracle"
I work on Linux engine with a x86_64 architecture and use Oracle 10g 10.2.0.1 client for x86_64 linux
so - when i try to compile php with the oracle argument (-with-oracle=/usr/local/oracle) i get everytime the same error:
checking Oracle version... configure: error: Oracle needed libraries not found
I think, maybe i have a problem because configure not found my "64 bit libraries"...
Can someone help me? I am realy helpless...
thxDid you really want the obsolete "oracle" driver - why not use --with-oci8?
The user comments in http://www.php.net/oci8 have some good info on 64bit configuration. -
Wsa can't compile client in webservices_demos
I'm trying the 10g(1003) web service demo: webservices_demos\basic\stateless.
When I try to compile the web service client using either ant or command line, I got the following exception:
Exception during compile, trying again with shorter command line ||CreateProcess: javac -encoding UTF-8 -classpath .....
Does it work on Windows?
Here is my command line:
java -jar MYPATH/wsa.jar -config client-config.xml
Thanks,
WeiHi Weisu99,
Can you tell me if you have succeded to bypass this problem? I am also running into it...
Regards,
Romano -
Toplink 9.0.3 can't compile examples with Weblogic 7.0 SP4
Hi,
i want to test the Toplink Examples with Weblogic but i get compilation errors all over. Can somebody help me out ?
I use the Bea JDK 1.3.1_08 with a Weblogic 7.0 SP 4 Server. Here is the output of the compilation :
[jar] Building jar: C:\PVCS\Dimensions\ORANT\Devtools\toplink\examples\wls
70\examples\ejb\cmp20\singlebean\std_ejb20_cmp_account.jar
[java] C:\PVCS\Dimensions\ORANT\Devtools\toplink\examples\wls70\examples\ej
b\cmp20\singlebean\ejbcgen\examples\ejb\cmp20\singlebean\AccountBean_8259n1__Top
Link_CMP_2_0.java:16: examples.ejb.cmp20.singlebean.AccountBean_8259n1__TopLink_
CMP_2_0 should be declared abstract; it does not define __WL_getIsLocal() in exa
mples.ejb.cmp20.singlebean.AccountBean_8259n1__TopLink_CMP_2_0
[java] public class AccountBean_8259n1__TopLink_CMP_2_0 extends examples.ej
b.cmp20.singlebean.AccountBean implements Cloneable, TopLinkCmpEntity, WLEnterpr
iseBean {
[java] ^
[java] 1 error
[java] Exec failed .. exiting
BUILD FAILED
The jar files of the examples don't deploy either on the server.
thx,
DanielTopLink does not have anything specific to a particular JDBC driver or version built into the JAR.
TopLink 9.0.3 ships with a version of HSQL and places that version's JAR file on its classpath. If you wish to use another version you will need to edit the workbench.cmd or workbench.sh script to replace the existing HSQL JAR file with the one from the version you wish to use.
The entry that references the HSQL jar is "%TL_HOME%\HSQL\lib\hsqldb.jar".
Doug -
Compiling file with servlet.jar
Hi,
I can compile my file under the arm/pdm package fine by using this command:
javac -classpath .;.. pdm\FileName.java
but now i wrote a servlet which imports the javax.servlet directory.
So in order for the class to compile i have to give it the path of the servlet.jar file which is in this directory: c:/jdk1.3.1_07/lib/servlet.jar
The problem am having is that i can't give both the classpaths at one time in order to compile my servlet which also uses classes in the pdm directory and also from a different directory under arm.
Please help
ThanksPerhaps
javac -classpath .;..;c:\jdk1.3.1_07\lib\servlet.jar pdm\FileName.java -
Can't compile JSPs with Forte 4
I upgraded to forte 4 CE. Now I cannot compile my JSP's because they are not finding my class files.
They all worked in Forte 3 ce.
If I have class MyClass()
and try to create an instance in my JSP
MyClass mc = new MyClass()
It gives the 'cannot resolve symbol' error on MyClass object.
What happened? I haven't changed anything. I have about 10 jsps and a bunch of Classes that all worked and now don't.
I checked the product support for Forte and couldn't find anything.
If anybody else had this problem and figured it out please post your solution.
Thanks.
-chiranjpi am having the same problem using my "homemade" class with forte.
I have all of the .java and .class files and even have a .jar file but it still cannot find them
could you please give me more details on how you reached your solution?
where did you place the files so that forte found them?
any and all help is greatly appreciated.
thanks
-j -
http://edocs.bea.com/wls/docs81/webserv/assemble.html#1069475
under The Web Service Ear File package shows a client.jar included in war. Is
there a build in mechanism to retrieve this in weblogic server? Or do I need to
provide a servlet to do so?Hi Brett,
No, it is not necessary for you to write a Servlet to do this. All you need to
do is add a <client> child element to your <servicegen><service> element, in your
build.xml. Then you can access the client JAR using the following URL:
http://<host>:<port>/<war-name-without-file-extension>/<name-of-client-jar>.jar
The <client> element has a clientJarName attribute, which you can use to provide
the JAR file with a specific name. This name will be what replaces the <name-of-client-jar>.jar,
I sited above :-)
Refer to the following link, for specifics on the <client> child element:
http://edocs.bea.com/wls/docs81/webserv/anttasks.html#1100430
Regards,
Mike Wooten
"Brett" <[email protected]> wrote:
>
http://edocs.bea.com/wls/docs81/webserv/assemble.html#1069475
under The Web Service Ear File package shows a client.jar included in
war. Is
there a build in mechanism to retrieve this in weblogic server? Or do
I need to
provide a servlet to do so? -
Problems with client.jar - generated from webservices toolkit from JDK 1.1.7
We have deployed a web application using the webservices in WL 6.1 using JDK 1.3.1.
The clients were able to successfully access the servlet it generated and download
the client.jar. Unfortunately this client.jar seems to be dependent on JDK 1.2
and beyond. It seems to use java.util.Map class in the JNDI-SOAP SPI.
Is there any workaround or fix to this problem, so this jar can be used from a
JDK 1.1.7 env?.
Our objective is to use WL 6.1 EJB's from WL 4.5.1 using Webservices. Are there
any known problems with this approach (Ofcourse other than this).
Thank you.
Dora Potluri
Here is the stack trace from using the client.jar
Class not found java.lang.ClassNotFoundException: java.util.Map
[Root exception is java.lang.ClassNotFoundException: java.util.Map]javax.naming.
NamingException: Class not found java.lang.ClassNotFoundException: java.util.Map
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.naming.NamingException.<init>(Compiled Code)
at weblogic.soap.http.SoapContext.throwNamingException(Compiled Code)
at weblogic.soap.http.SoapContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at weatherEJB.WeatherBean.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled
Co
de)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.ex
ecute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Fri Sep 21 10:47:12 CDT 2001:<I> <EJB> Transaction: '1001087185816_1' rolled bac
k due to EJB exception:Yes, there is an expectation that the client jar will be run on JDK 1.3x. WLS 6.1 is certified on JDK 1.3x only. This
applies to the WebServices client as well. For details on platform support see
http://e-docs.bea.com/wls/platforms/index.html
Thanks,
Jim
Jim Rivera
Product Manager, WebLogic Server
BEA Systems, Inc.
Dora Potluri wrote:
I started testing using the client.jar generated by webservices WL 6.1 and found
that it uses reflection API interfaces that are not available til JDK 1.3. Is
there an expectation that the clients of Webservices are all going to be JDK 1.3.X.
Here is the stack trace we get.
java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
at weblogic.soap.http.SoapContext.lookup(SoapContext.java:76)
at javax.naming.InitialContext.lookup(InitialContext.java:280)
at weatherEJB.WeatherBean.getTemp(WeatherBean.java:106)
at weatherEJB.WeatherBeanEOImpl.getTemp(WeatherBeanEOImpl.java:47)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(WeatherBeanEOImpl_WLSkel.java:90)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:261)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:56)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(BasicRequestDispatcher.java:166)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code) -
Can a program compilied with 32 libraries work with Instant Client 64 bit?
We are compiling our program on IBM AIX 5L and HP-UX PA_RISC with 32 libraries (using ORACLE_HOME/lib32)
for AIX and HP-UX RISC the only available Instant Client 10gR2 is 64 bit. there is no 32 version.
can a program compilied with 32 libraries work with Instant Client 64 bit?64 bit clients can be downloaded from here: http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html
That said, Visual Studio itself is 32 bit, so if you want the developer tools to work, you'll need a 32 bit client. If you're not using the developer tools in your project and you're compiling your project for AnyCPU or x64, the 64 bit client will work. If you're compiling for x86, you need the 32 bit client. (If you want to do both, you'll need two clients installed.)
edit - Actually, it looks like in this case you might be running into a problem of needing a 32 bit client & ODBC connection. The error mesage could be misleading here as Visual Studio itself is 32 bit. Did you create the ODBC connection using control panel? If so, that's a 64 bit connection.
32 bit ones are created using c:\windows\syswow64\odbcad32.exe
Edited by: Tridus on Jan 3, 2013 3:24 PM
Edited by: Tridus on Jan 3, 2013 3:24 PM -
Can we stop the server from generating a client jar
When an EAR module is deployed, the server generates a large (a few MB) client jar inside the deployment directory. AFAIK this jar is never used for anything unless you have ACC clients. Please correct me if I'm wrong!
Recently, we've had some worrying exceptions logged, indicating that there is a problem reading this client jar, and the context indicates that the server is attempting to set up a class loader for it. Everything works fine anyway.
We have a few hundred EAR's deployed in each of our servers, and the EAR's contain on avarage about 30-40 entity beans, so you can imagine that we worry about every unnecessary resource allocation.
Also, every exception logged requires attention from the admins so we would really like to get rid of these jars if we can, and if they are in fact unnecessary.
TIA,
Gunnar GrimHello, Gunnar.
You are correct that the generated jar is for launching clients using ACC. (Historically some users have taken the generated app client jar and added it to the classpath for non-ACC clients, but this is not an officially supported use of it.)
You said that recently exceptions have been reported, which I assume means that this was not always true. It would seem that something in the environment or the applications has changed to trigger the exceptions. Identifying whatever that change has been might help identify the root cause of the new problem. Have you changed anything in the environment or the applications around the time the exceptions began appearing?
Can you post an example of one of the exceptions you are concerned about?
Also, what version of the product are you using?
- Tim -
Client Jar packing with common-ant.xml - Why is (EJ)Bean class included ?
Hi,
I'm using for all my projects the same build mechanism as in the samples.
This property
<property name="add.ejbjarclasses.to.clientjar" value="true"/> let Ant copy the EJB classes into the client jar. Fine so far.
But I've seen in my projects and in the samples, that the client jars not only contain the necessary home and remote classes, they also contain the (EJ) Bean class.
Why?
*1.)* Is this just a snugness in the ant tasks of common-ant.xml or is there good reason for this?
*2.)* Are you ignoring that or do you prevent somehow, that this not necessary class is in the client jar.
best regardsThe <empty> target list will appear whenever JDeveloper has trouble parsing the Ant XML document. In this case, it is because of the reference to the common-build.xml file. See the thread named "Building with Ant" in this forum, where this issue was recently discussed:
Re: How to bold a label ?
The end result of that discussion was that, due to a bug in JDeveloper, you need to specify the full URI to the included file. In a future release we will allow the use of relative URI's.
-Matt Hawkins, JDeveloper Team -
Where can i get adobe-forms-client.jar
Where can I get adobe-forms-client. jar file if any one know tell me...
"import com.adobe.idp.services.BLOB;" this shows error so which jar I have to include...Thanks for your reply...
But I did not find any specific forum to discuss about Superseding information of Adobe Security Bulletins. Could you please help me if you have any idea about it ?
Thanks in advance. -
In applet,how can i got the thin client jar for JMS from weblogic.jar?
who can give it to me?
and,when i used the weblogic.jar coming from weblogic 7sp2 for linux advance server
2.1 as the client jar,i still got a error message that Class (.....Stub.class)is
not found,why?What should i do?That approach is a hack and an absolute nightmare. It never worked
completely. I could not get any support for durable subscriptions etc. You
can add this (Thin JMS client) as a request for new feature (but it should
have been available long time ago).
-- Vish Magapu
"Bruce Stephens" <[email protected]> wrote in message
news:[email protected]..
Hello,
You might want to take a look at the JMS white paper and asociated
discussion for supporting thin clients: check the reference on:
http://e-docs.bea.com/wls/docs70/faq/jms.html#252418
HTHs,
Bruce
jerry8006 wrote:
who can give it to me?
and,when i used the weblogic.jar coming from weblogic 7sp2 for linux advance
server
2.1 as the client jar,i still got a error message that Class
(.....Stub.class)is
not found,why?What should i do?
Maybe you are looking for
-
Flickering finder and safari, and sound not working?
Firstly the screen froze whilst the radio was still playing. I could move the mouse cursor but not click on anything. So, I did a safe reboot and the desktop reset. Everything now responds to the mouse but Finder is flickering when scrolling and Safa
-
How do I install a JAD & associated JAR file on a ...
Hi all, I have a Nokia 6288 which I would like to install a signed application in the form of a signed JAD and accompanying JAR file. I need the JAD because it is a signed application, and I need the phone to recognise this because the application ac
-
Toast sees Two video_ts files in disc image
After the update to 6 we were getting repeated reports that dvds would not play. All were created in iMovie and burned via iDVD. We created a disc image as a workaround and burned using Toast at 4x speed, 8x Maxell DVD-R media. The problem is that th
-
Luckily I have google saved in the bookmarks menu because this is the only method I have of searching the web.
-
Generation of balance sheet with closing exchange rate
Hi all We have been using INR as the local currency and USD as the functional currency all the reports are generated in INR and USD. And as of now monthly average rate is been entered in the exchange rate table master. But for audit purpose we need