• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

using weblogic servigen ant task

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am using "servicegen" ant task of weblogic to generate web service wrapper arround the EJB. However i am getting following eror-


i am using jdk131_08 that comes along with weblogic 7.0.2

can anybody tell me whats wrong?
[ June 19, 2004: Message edited by: Rashmi Tambe ]
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you trying to define any of your code in the java.util package?
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Chris Mathews:
Are you trying to define any of your code in the java.util package?



No, I am not
I also tried following that was suggested in one of the google posts -
Make sure "java.util" has permissions granted in
weblogic.policy file.

Ex:

grant codeBase
"file:C:${/}bea${/}weblogic81/samples/server/config/examples/-"
{
permission java.security.AllPermission "java.util";
};
[ June 21, 2004: Message edited by: Rashmi Tambe ]
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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]
 
The only cure for that is hours of television radiation. And this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic