Problem generating webservice with xdoclet
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Christopher_mangiapane
Posted On:   Friday, October 27, 2006 09:50 AM

I am trying to generate webservices from ejb stateless session beans. I am using xdoclet-1.2.3 and deploying to weblogic server 8.1. I have successfully built my ejb using xdoclet. I also succeeded in generating the webservice. I cannot get the we client to generate. Here is the error: [servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom sbliusawallstreetutilsfilterPageCodec.java:15: package language_builtins.util does not exist [servicegen] extends language_builtins.util.ArrayListCodec [servicegen] ^ [servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom    More>>

I am trying to generate webservices from ejb stateless session beans. I am using xdoclet-1.2.3 and deploying to weblogic server 8.1. I have successfully built my ejb using xdoclet. I also succeeded in generating the webservice. I cannot get the we client to generate.

Here is the error:

[servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom
sbliusawallstreetutilsfilterPageCodec.java:15: package language_builtins.util does not exist
[servicegen] extends language_builtins.util.ArrayListCodec
[servicegen] ^
[servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom
sbliusawallstreetutilsfilterPageCodec.java:86: cannot resolve symbol
[servicegen] symbol : method serialize_internal (java.lang.Object,weblogic.xml.stream.XMLName,weblogic.xml.stream.XMLOu
tputStream,weblogic.xml.schema.binding.SerializationContext)
[servicegen] location: class com.sbliusa.wallstreet.utils.filter.PageCodec
[servicegen] serialize_internal(obj, name, writer, context);
[servicegen] ^
[servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom
sbliusawallstreetutilsfilterPageCodec.java:111: cannot resolve symbol
[servicegen] symbol : variable super
[servicegen] location: class com.sbliusa.wallstreet.utils.filter.PageCodec
[servicegen] if (idx < _SUPER_PROP_COUNT) return super.invokeGetter(my_obj,idx);
[servicegen] ^
[servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom
sbliusawallstreetutilsfilterPageCodec.java:123: cannot resolve symbol
[servicegen] symbol : variable super
[servicegen] location: class com.sbliusa.wallstreet.utils.filter.PageCodec
[servicegen] super.invokeSetter(my_obj,idx,setter_arg);
[servicegen] ^
[servicegen] C:Documents and SettingsmangiachLocal SettingsTempAccountManagerWS.war-1467772305WEB-INFclassescom
sbliusawallstreetutilsfilterPageCodec.java:140: cannot resolve symbol
[servicegen] symbol : variable super
[servicegen] location: class com.sbliusa.wallstreet.utils.filter.PageCodec
[servicegen] if (idx < _SUPER_PROP_COUNT) return super.getPropertyInfo(idx);
[servicegen] ^
[servicegen] 5 errors
[servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Lweblogic.webservice.dd.Co
mponentIntrospector;Lweblogic.xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:142)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run()V(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(Ljava.io.File;Ljava.lang.Str
ing;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)Lweblogic.ant.taskdefs.webservices.autotype.AutoTyper;(Servic
eGenTask.java:369)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(Lweblogic.webservice.util
.WebServiceEarFile;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)V(ServiceGenTask.java:313)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute()V(ServiceGenTask.java:181)
[servicegen] at org.apache.tools.ant.Task.perform()V(Task.java:341)
[servicegen] at org.apache.tools.ant.Target.execute()V(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks()V(Target.java:336)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1339)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:1255)
[servicegen] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:609)
[servicegen] at org.apache.tools.ant.Main.start([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Ma
in.java:196)
[servicegen] at org.apache.tools.ant.Main.main([Ljava.lang.String;)V(Main.java:235)
[servicegen] Caused by: weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested excep
tion:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Lweblogic.utils.Getopt2;Ljava.u
til.List;)V(Compiler.java:567)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Lweblogic.xml.schema.model.util.SchemaM
ap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Z)V(Compiler.java:167)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:89)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:102)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping([Ljava.lang.Class;)V(TypeMappi
ngBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping([Ljava.lang.Class;Lweblogic.
xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Lweblogic.webservice.dd.Co
mponentIntrospector;Lweblogic.xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:138)
[servicegen] ... 12 more
[servicegen] --- Nested Exception ---
[servicegen] java.io.IOException: Compiler failed executable.exec
[servicegen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Ljava.util.List;)V(CompilerInvoker.java:470)

[servicegen] at weblogic.utils.compiler.CompilerInvoker.compile(Ljava.util.List;)V(CompilerInvoker.java:329)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Lweblogic.utils.Getopt2;Ljava.u
til.List;)V(Compiler.java:561)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Lweblogic.xml.schema.model.util.SchemaM
ap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Z)V(Compiler.java:167)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:89)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:102)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping([Ljava.lang.Class;)V(TypeMappi
ngBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping([Ljava.lang.Class;Lweblogic.
xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Lweblogic.webservice.dd.Co
mponentIntrospector;Lweblogic.xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:138)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run()V(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(Ljava.io.File;Ljava.lang.Str
ing;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)Lweblogic.ant.taskdefs.webservices.autotype.AutoTyper;(Servic
eGenTask.java:369)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(Lweblogic.webservice.util
.WebServiceEarFile;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)V(ServiceGenTask.java:313)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute()V(ServiceGenTask.java:181)
[servicegen] at org.apache.tools.ant.Task.perform()V(Task.java:341)
[servicegen] at org.apache.tools.ant.Target.execute()V(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks()V(Target.java:336)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1339)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:1255)
[servicegen] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:609)
[servicegen] at org.apache.tools.ant.Main.start([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Ma
in.java:196)
[servicegen] at org.apache.tools.ant.Main.main([Ljava.lang.String;)V(Main.java:235)
[servicegen] --------------- nested within: ------------------
[servicegen] weblogic.xml.schema.binding.BindingException: ERROR: during code compilation - with nested exception:
[servicegen] [java.io.IOException: Compiler failed executable.exec]
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.invoke_compiler(Lweblogic.utils.Getopt2;Ljava.u
til.List;)V(Compiler.java:567)
[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Lweblogic.xml.schema.model.util.SchemaM
ap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Z)V(Compiler.java:167)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;[Lweblogic.xml.stream.XMLName;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:89)
[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(Lweblogic.xml.schema.model.util.S
chemaMap;[Ljava.lang.Class;Ljava.util.List;Z)V(XSDTypeMappingBuilder.java:102)
[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping([Ljava.lang.Class;)V(TypeMappi
ngBuilderBase.java:180)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping([Ljava.lang.Class;Lweblogic.
xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:88)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(Lweblogic.webservice.dd.Co
mponentIntrospector;Lweblogic.xml.schema.binding.TypeMappingBuilder;)V(ComponentAutoTyper.java:138)
[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run()V(EJBAutoTyper.java:115)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(Ljava.io.File;Ljava.lang.Str
ing;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)Lweblogic.ant.taskdefs.webservices.autotype.AutoTyper;(Servic
eGenTask.java:369)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(Lweblogic.webservice.util
.WebServiceEarFile;Lweblogic.ant.taskdefs.webservices.servicegen.Service;)V(ServiceGenTask.java:313)
[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute()V(ServiceGenTask.java:181)
[servicegen] at org.apache.tools.ant.Task.perform()V(Task.java:341)
[servicegen] at org.apache.tools.ant.Target.execute()V(Target.java:309)
[servicegen] at org.apache.tools.ant.Target.performTasks()V(Target.java:336)
[servicegen] at org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1339)
[servicegen] at org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:1255)
[servicegen] at org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:609)
[servicegen] at org.apache.tools.ant.Main.start([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Ma
in.java:196)
[servicegen] at org.apache.tools.ant.Main.main([Ljava.lang.String;)V(Main.java:235)

BUILD FAILED
file:C:/eclipseWTP/workspace/XDocletTest/XDocletTest/build.xml:537: weblogic.xml.schema.binding.BindingException: ERROR:
during code compilation - with nested exception:
[java.io.IOException: Compiler failed executable.exec]


Here is my build file:



simple example build file











































































































































































destdir="${build.classes}"
fork="${compile.fork}"
executable="${compile.executable}"
compiler="${compile.compiler}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
sourcepath="">






























excludedtags="@version,@author"
verbose="true"
addedtags="@xdoclet-generated at ${TODAY}">






































































































excludedtags="@version,@author"
verbose="true"
addedtags="@xdoclet-generated at ${TODAY}">











excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}"
ejbspec="2.0">

















srcdir="${build.ejb.package}" debug="on"
includes="${ManagerName}*.java"
fork="yes"
executable="${java.home.path} injavac"
compiler="javac1.4" >






































destdir="${build.ejb}"
fork="${compile.fork}"
executable="${compile.executable}"
compiler="${compile.compiler}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}">





























-->









































targetNamespace="http://localhost:7001/services"
packageName="${package-name}"
destDir="${webservice.home}"
classpathref="webservices.classpath"/>


warName="${service-name}.war"
contextURI="services"
keepGenerated="True"
overwrite="True" >







ejbJar="${build.ear}/${ejb-name}-ejb.jar"
targetNamespace="http://localhost:7001/services/${service-name}"
serviceName="${service-name}"
serviceURI="/${service-name}"
generateTypes="True"
style="rpc">


clientJarName="${service-name}-client.jar"
saveWSDL="True"
packageName="${package-name}"
useServerTypes="True" >







clientJar="${webservice.home}/${service-name}_client.jar">









-->




   <<Less

Re: Problem generating webservice with xdoclet

Posted By:   Christopher_mangiapane  
Posted On:   Monday, October 30, 2006 12:18 PM

I apologize. This is the first time I am using this forum.
I was not sure which forum was appropriate which is why I posted to both forums (Ant and xdoclet). I will also be sure to format my posts in the future.

Re: Problem generating webservice with xdoclet

Posted By:   Anonymous  
Posted On:   Monday, October 30, 2006 05:29 AM


  1. Dont crosspost (Ant-Forum + XDoclet-Forum).

  2. Format your output (
     ...)

  3. Provide a meaningful subject

About | Sitemap | Contact