我用jbuilder9把ejb发布成web service时遇到的问题

04-03-30 Benedict

我是用的export as a web service向导来的,得到下面的错误。

我到borland的网站上按照它提供的在weblogic的步骤来做,也遇到下面的异常

达人救我啊!!!

Buildfile: servicegen.xml

servicegen:

[servicegen] Generating service "BsWs" ...

[servicegen] WARNING: ignoring bean property "errorCode" in class java.sql.SQLException: no set method found.

[servicegen] java.lang.SecurityException: Prohibited package name: java.sql

[servicegen] at java.lang.ClassLoader.defineClass(ClassLoader.java:488)

[servicegen] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

[servicegen] at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:476)

[servicegen] at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:181)

[servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)

[servicegen] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)

[servicegen] at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:223)

[servicegen] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)

[servicegen] at java.lang.Class.forName0(Native Method)

[servicegen] at java.lang.Class.forName(Class.java:217)

[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.loadClass(Compiler.java:638)

[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.addToMapping(Compiler.java:447)

[servicegen] at weblogic.xml.schema.binding.internal.codegen.Compiler.compile(Compiler.java:175)

[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:89)

[servicegen] at weblogic.xml.schema.binding.internal.XSDTypeMappingBuilder.mapClass(XSDTypeMappingBuilder.java:102)

[servicegen] at weblogic.xml.schema.binding.internal.TypeMappingBuilderBase.addMapping(TypeMappingBuilderBase.java:180)

[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.addMapping(ComponentAutoTyper.java:88)

[servicegen] at weblogic.ant.taskdefs.webservices.autotype.ComponentAutoTyper.mapComponent(ComponentAutoTyper.java:138)

[servicegen] at weblogic.ant.taskdefs.webservices.autotype.EJBAutoTyper.run(EJBAutoTyper.java:115)

[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.runAutoTyper(ServiceGenTask.java:365)

[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.generateService(ServiceGenTask.java:309)

[servicegen] at weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask.execute(ServiceGenTask.java:177)

[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

file:D:/myproject/j2ee/2004/.../servicegen.xml:5: java.lang.SecurityException: Prohibited package name:

java.sql

Total time: 3 seconds