Originally posted by Rashmi Tambe:
[servicegen] java.lang.SecurityException: Prohibited package name: java.util
i am using jdk131_08 that comes along with weblogic 7.0.2
can anybody tell me whats wrong?
I finally found out the answer
Many of the APIs in EJB have parameters with data type
"java.util.HashTable" or "java.util.Properties". Servicegen was givijng exception for these parametes. so when I removed such APIs, things are working fine now.
THe reason behind this is: servicegen has to map the
Java types in the interface to corresponding types in XML Schema in order to do the marshalling (serialization) of data.There are certain built in types for which direct mappings between Java and XML are defined. There are also some non-built in types that are supported by servicegen.However, For all other data types, the serialization has to be defined by the programmer explicitly. The classes java.util.Hashtable and java.util.Properties are not built-in, and they do not figure in the list of supported non-built in types. SO the solution to this is to write the serialization classes (XML and Java and the mapping) yourself.
This link gives more info abt this.[/QB]