percivalbragg
Programmer
I am writing my first web service using weblogic 8.1 and eclipse 3.2. When I run the ant build for local deployment on my box I get the following error. The input parameter to the methods flagged is java.util.Date, java.util.Calendar is not used anywhere in the code.
I know Date has been deprecated but the build is trying to force java.util.Calendar. Can anyone explain what in my environment is causing this. JDK 1.4 is being used.
Any help would be greatly appreciated.
Buildfile: D:\workspace\WebSTP\CPWebService\build.xml
clean:
[delete] Deleting directory D:\workspace\WebSTP\CPWebService\build\ant-temp
[mkdir] Created dir: D:\workspace\WebSTP\CPWebService\build\ant-temp
[mkdir] Created dir: D:\workspace\WebSTP\CPWebService\build\ant-temp\classes
update-dependencies:
compile:
[javac] Compiling 9 source files to D:\workspace\WebSTP\CPWebService\build\ant-temp\classes
make-war-file:
[autotype] Autotyping for javaComponents com.bnym.cpws.server.connector.CPWebserviceConnector
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:309: setEffectiveDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setEffectiveDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:330: setWaiverExpiryDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setWaiverExpiryDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:336: setWaiverUpdatedDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setWaiverUpdatedDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] 3 errors
[autotype] java.io.IOException: Compiler failed executable.exec
[autotype] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[autotype] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:564)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:364)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:341)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[autotype] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[autotype] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[autotype] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[autotype] --------------- nested within: ------------------
[autotype] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[autotype] [java.io.IOException: Compiler failed executable.exec]
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:570)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:364)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:341)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[autotype] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[autotype] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[autotype] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
BUILD FAILED
D:\workspace\WebSTP\CPWebService\build.xml:131: weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[java.io.IOException: Compiler failed executable.exec]]
I know Date has been deprecated but the build is trying to force java.util.Calendar. Can anyone explain what in my environment is causing this. JDK 1.4 is being used.
Any help would be greatly appreciated.
Buildfile: D:\workspace\WebSTP\CPWebService\build.xml
clean:
[delete] Deleting directory D:\workspace\WebSTP\CPWebService\build\ant-temp
[mkdir] Created dir: D:\workspace\WebSTP\CPWebService\build\ant-temp
[mkdir] Created dir: D:\workspace\WebSTP\CPWebService\build\ant-temp\classes
update-dependencies:
compile:
[javac] Compiling 9 source files to D:\workspace\WebSTP\CPWebService\build\ant-temp\classes
make-war-file:
[autotype] Autotyping for javaComponents com.bnym.cpws.server.connector.CPWebserviceConnector
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:309: setEffectiveDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setEffectiveDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:330: setWaiverExpiryDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setWaiverExpiryDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] D:\workspace\WebSTP\CPWebService\build\ant-temp\classes\com\bnym\cpws\server\holders\WebSTPCPAccountDataCodec.java:336: setWaiverUpdatedDate(java.util.Date) in com.bnym.cpws.server.valueobject.WebSTPCPAccountData cannot be applied to (java.util.Calendar)
[autotype] my_obj.setWaiverUpdatedDate((java.util.Calendar)setter_arg);
[autotype] ^
[autotype] 3 errors
[autotype] java.io.IOException: Compiler failed executable.exec
[autotype] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[autotype] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:564)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:364)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:341)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[autotype] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[autotype] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[autotype] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
[autotype] --------------- nested within: ------------------
[autotype] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[autotype] [java.io.IOException: Compiler failed executable.exec]
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Compiler.java:570)
[autotype] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:167)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)
[autotype] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)
[autotype] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.doTypeMapping(Java2SchemaImpl.java:267)
[autotype] at weblogic.webservice.tools.build.internal.Java2SchemaImpl.run(Java2SchemaImpl.java:167)
[autotype] at weblogic.webservice.tools.build.internal.Component2SchemaImpl.run(Component2SchemaImpl.java:151)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.doComponent2Schema(JavaSchema.java:365)
[autotype] at weblogic.ant.taskdefs.webservices.javaschema.JavaSchema.execute(JavaSchema.java:172)
[autotype] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[autotype] at org.apache.tools.ant.Task.perform(Task.java:364)
[autotype] at org.apache.tools.ant.Target.execute(Target.java:341)
[autotype] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[autotype] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[autotype] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[autotype] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[autotype] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[autotype] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[autotype] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
BUILD FAILED
D:\workspace\WebSTP\CPWebService\build.xml:131: weblogic.webservice.tools.build.WSBuildException: Failed to do type mapping - with nested exception:
[weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[java.io.IOException: Compiler failed executable.exec]]