Mapping Enum to WS in OC4J 10.1.3

Is there anyway I can map a Java5 enum to a WS using JDeveloper 10.1.3? I have tried using Custom Mapping on the web service but it will only map complex types to java types. I have declared by enum.xsd as follows...
<xsd:simpleType name="AnEnumType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="one"/>
<xsd:enumeration value="two"/>
<xsd:enumeration value="three"/>
</xsd:restriction>
</xsd:simpleType>
I was then going to map this to my Java enum
public enum AnEnum {
One, Two, Three;
and use a customer serialiser to do the marshalling.
I can find no details on how to handle enums in any Oracle documentation or Google. Please help.

OC4J 10.1.3.3 has support for J2EE 1.4 plus EJB3.0 and some associated annotation/DI support around that. It doesn't implement all of JEE5.
The documentation (WS Developer's Guide) provides a list of all the annotations supported by OC4J for WS in 10.1.3.x:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/devannotation.htm#BABEEGIJ
As far as I can tell, the WebServiceContext was introduced in JAX-WS 2.0, and therefore part of JEE5.
WS is not my area in particular, but I suspect that that the use of WebServiceContext is not something available in OC4J 10.1.3.3. It will be in OC4J 11.1.1, for which there has been a developer preview available for a while, but with the BEA acquisition, the future direction for J2EE and WS implementations is now Oracle WebLogic Server, so you should look top that instead if you need later versions of spec support over and above what is in OC4J 10.1.3.x.
-steve-

Similar Messages

  • JPA2 Question: Is it possible to map a Map(enum, List String ) in JPA2?

    Is it possible to map a Map(enum, List<String>) in JPA2? Or do I have to create a separate Entity class that maps each List<String> collections for each possible value in the enum?
    Edited by: user7976113 on Jan 22, 2010 7:51 PM
    Edited by: user7976113 on Jan 22, 2010 7:51 PM

    No, JPA does not support this or any nested collection type of mappings directly.
    The best solution is to create an Entity or Embeddable to contain the collection data.
    See,
    http://en.wikibooks.org/wiki/Java_Persistence/Relationships#Nested_Collections.2C_Maps_and_Matrices
    James : http://www.eclipselink.org

  • Custom login module on OC4J 10.1.3.3.0

    Hi,
    I need to implement custom web form-based authentication on OC4J, in order to port an existing JBoss app. I was following Frank's example at http://www.oracle.com/technology/products/jdev/howtos/10g/jaassec/index.htm. Trying to access protected pages will correctly redirect to the j_security_check page, and from there call my custom login module - through LoginContext. The issue is that - even if the LoginModule correctly authenticates user's credentials, the request still doesn't get through, coming back to the authentication page.
    I perform the deployment using Oracle Enterprise Manager, and the relevant files are:
    web.xml:
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>testJAAS</realm-name>
    <form-login-config>
    <form-login-page>/jsp/login.jsp</form-login-page>
    <form-error-page>/jsp/login.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <!-- Security constraints -->
    <security-constraint>
         <web-resource-collection>
         <web-resource-name>Test Secure Application</web-resource-name>
         <description>Requires users to authenticate</description>
         <url-pattern>faces/*</url-pattern>
         <http-method>POST</http-method>
         <http-method>GET</http-method>
         <http-method>HEAD</http-method>     
         <http-method>PUT</http-method>     
         </web-resource-collection>     
         <auth-constraint>
         <description>Only allow role1 users</description>
         <role-name>role1</role-name>
         </auth-constraint>     
         <user-data-constraint>
         <description>Encryption is not required for the application in general. </description>
         <transport-guarantee>NONE</transport-guarantee>
         </user-data-constraint>
    </security-constraint>
    <!-- Define the security role(s) -->
    <security-role>
    <description>Example role</description>
    <role-name>role1</role-name>
    </security-role>
    orion-web.xml:
    schema-major-version="10" schema-minor-version="0" >
         <!-- Uncomment this element to control web application class loader behavior.
              <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="true" />
         -->
         <resource-ref-mapping name="jdbc/lics" />
         <security-role-mapping name="role1">
              <group name="oc4j-app-administrators" />
         </security-role-mapping>
         <web-app>
         </web-app>
    orion-application.xml:
         <jazn provider="XML" >
              <property name="jaas.username.simple" value="true" />
              <property name="custom.loginmodule.provider" value="true" />
              <property name="role.mapping.dynamic" value="true" />
         </jazn>
    system-jazn-data.xml:
    <jazn-loginconfig>
         <application>
              <name>le5</name>
              <login-modules>
                   <login-module>
                        <class>com.tx.lic.oc4jsx.ext.LicLoginModule</class>
                        <control-flag>required</control-flag>
                        <options>
                             <option>
                                  <name>defaultRole</name>
                                  <value>role1</value>
                             </option>
                        </options>
                   </login-module>
              </login-modules>
         </application>
    I assume something is wrong with the deployment configuration, b/c when I specifically add users to the defined role1 role, it works fine(see below). But this is not an option, since users should only be specified in the data store of the LoginModule.
    Doing as above, the orion-web.xml is below:
         <resource-ref-mapping name="jdbc/lic" />
         <security-role-mapping name="role1">
              <group name="oc4j-app-administrators" />
              <user name="user1" />
              <user name="user2" />
         </security-role-mapping>
    Any insight would be much appreciated. Thanks.

    Hi,
    role to group mapping doesn't seem to work for custom LoginModules. This means hat your web applcation (web.xml) should use th same role names as used on the database authentication. So remove
    <security-role-mapping name="role1">
    <group name="oc4j-app-administrators" />
    </security-role-mapping>
    from orion-web.xml and it should start wrking
    Frank

  • WSIF generation problem when enum is used

    All,
    We are currently developing EJB 3.0 and are exposing them using WSIF to the BPEL process. We have some enum class and when we generate WSIF we are getting JAX-RPC complaint problem.Has anyone faced this problem and do we have solution for the same?
    regards,
    M.Rajesh

    I guess ENUM is problem with OC4J Web Services stack all way along. Usually ENUM is supposed to be exposed as xsd:restriction or so. I had metalink issue open for it.
    Chintan

  • PUBLISHING OC4J JSP as web portlet

    I have developed a JSP page in OC4j and want to publish this page on portal 3.0.9 as web portlet. I have created web provider and registered this page as portlet. When I view the portlet it comes as a Blank Page.
    Can anyone tell me how to publish a JSP page developed in OC4J as a web portlet? Can I publish JSP web pages developed in OC4J as web portlet without modifying any JSP code?
    I have installed all JPDK samples and they are working fine.
    Regards

    Here is what we are forced to do, because V2 has had a great delay in the time scheduling.
    Hope it helps. Anyone better ideas?
    Michael.
    ------------8<----------------8<----------------8<-----------
    1. use mod_proxy in httpd.conf
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /pof/ http://localhost:7779/pof/
    ProxyPassReverse /pof/ http://localhost:7779/pof/
    </IfModule>
    2. create JSP under JServ, use hidden fields to transfer parameter
    <%
    try{
    PortletRenderRequest portletRequest = (PortletRenderRequest) request.getAttribute(HttpPro
    vider.PORTLET_RENDER_REQUEST);
    ProviderUser pUser = (ProviderUser) portletRequest.getUser();
    String vUser = pUser.getName();
    if ( !vUser.equalsIgnoreCase("PUBLIC") )
    %>
    <input type="hidden" name="user" value="<%= vUser %>">
    <%
    3. in the action-Tag, use the mapped URL to connect to OC4J
    <form action="/pof/ ....

  • Typesafe Enums

    I do not use J2SE 5.0, and I need to use an enumerator-like construct. My original code was:
    // Constants to be used with runnersOnBase
    public static final short RUNNER_ON_FIRST = 1;
    public static final short RUNNER_ON_SECOND = 2;
    public static final short RUNNER_ON_THIRD = 4;Obviously this is not a great practice, so I decided to try typesafe enums, which are explained here: http://java.sun.com/developer/Books/shiftintojava/page1.html#replaceenums
    The problem I'm having comes from the fact that, in my program, I can add the integer constants together. Is there a similar way to do that with typesafe enums, and if so, how should the enum class be set up? Thanks a lot. Take care.

    The problem I'm having comes from the fact that, in
    my program, I can add the integer constants together.
    Is there a similar way to do that with typesafe
    enums, and if so, how should the enum class be set
    up? Thanks a lot. Take care.Something like
    public class Enum {
    private static Map enums;
    public static Enum A = new Enum();
    public static Enum B = new Enum();
    public static Enum C = new Enum();
    static {
       enums.add( Integer.valueOf( 0 ), A );
       enums.add( Integer.valueOf( 0 ), B );
       enums.add( Integer.valueOf( 0 ), C );
    public static Enum add( Enum a, Enum b ) {
       int av = enums.get( a );
       int bv = enums.get( b );
       Enum value = enums.get( Integer.valueOf( av + bv ) );
    //   if( value == null  ) throw some exception maybe?
       return value;
    }maybe?

  • JSP behavior - static initializer and jspInit

    In a recent discussion, the concept of using a static intializer in a JSP came up. The situtation was that someone had a series of Strings used in a single JSP and they wanted to #1, define these strings in the JSP itself (vs in web.xml or a resource file, which while preferable, was not really an item of discussion) and #2 wanted indexed access to the Strings (such as via a Map).
    My thought was to declare the Map variable as static final in the JSP and then initialize it in a static initializer block with Map.put operations. Both the declaration of the Map and the static initializer block would be declared in a <%! %> declaration tag block. (The thought behind the static initialization - vs overriding jspInit - being that if multiple instances of the JSP were to be created, we wouldn't want to keep put'ing values into the Map for each new instance of the JSP.)
    I built the following test scenario:
    <<untitled3.jsp source>>
    <%@ page import="java.util.*" %>
    <%!
    static final Map m = new HashMap();
    static int staticCount = 0;
    static int jspInitCount = 0;
    static {
    System.out.println("static initializer called");
    staticCount++;
    m.put("staticCount"+staticCount, "static# " + staticCount);
         public void jspInit() {
              super.jspInit();
    jspInitCount++;
    m.put("jspInitCount"+jspInitCount, "jspInit# " + jspInitCount);
    System.out.println("overriden jspInit called:" + this);
    %>
    Map values:<br>
    <%
    Collection values = m.values();
    Iterator i = values.iterator();
    while (i.hasNext()) {
    out.println(i.next().toString() + "<br>");
    %>
    Test
    <<end of untitled3.jsp source>>
    with the following web.xml entries:
    <servlet>
    <servlet-name>JSPServlet1</servlet-name>
    <jsp-file>untitled3.jsp</jsp-file>
    </servlet>
    <servlet>
    <servlet-name>JSPServlet2</servlet-name>
    <jsp-file>untitled3.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>JSPServlet1</servlet-name>
    <url-pattern>/jsp1</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>JSPServlet1</servlet-name>
    <url-pattern>/jsp2</url-pattern>
    </servlet-mapping>
    I open a browser and request untitled3.jsp, I get the following output in the browser:
    Map values:
    static# 1
    jspInit# 1
    Test
    with the following output to my JDeveloper (9.0.3.1) log window:
    static initializer called
    overriden jspInit called:_untitled3@61
    I then request /jsp1 and get the following output in the browser:
    Map values:
    static# 1
    jspInit# 2
    jspInit# 1
    Test
    with the following output to my log window:
    overriden jspInit called:_untitled3@63
    Subsequent calls to /jsp1, /jsp2 or untitled3.jsp result in that same last output in the browser and no further output in the log window (ie, no further calls to the static initializer or jspInit method)
    So, it appears that jspInit is being called once for the unmapped JSP request and one more time, the first time one of the web.xml-mapped JSP instances is requested. (I'd have thought that it would be called once for the /jsp1 request and once for the /jsp2 request...), but the static initializer is being called only once as expected.
    Is this the correct behavior for the jspInit method? (ie, being called once for the unmapped request and once for the first mapped request?)
    Also, if OC4J is used in a clustered/balanced configuration, is it possible that I'd end up with additional instances of my JSP in one or more JVMs?
    Thanks!
    Jim Stoll

    You could scope such info to the application scope - some info is provided here: http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html
    "application - You can use the Bean from any JSP page in the same application as the JSP page that created the Bean. The Bean exists across an entire JSP application, and any page in the application can use the Bean."

  • Calling stored procedure from session bean method

    I have a situation like this :
    I have one method on a stateless session bean (and I mark this method as container managed transaction). For database related stuff, I am not using entity beans, I am using my own layer of OR mapping. This method does a lot of stuff and it involves many trips to the database, as a result of which the performance is very poor. I have identified certain pieces of functionality from this method which I think can be moved to stored procedures, while some of the functionality can still remain in the session bean method. So my scenario is like this :
    session bean method start
    store some data in tables(using my OR layer)
    call the stored procedure
    session bean method end
    My question is :
    Will the data that I am storing in tables from within the session bean method, be available to the code executing inside stored proc.
    secondly, how do I sync the transcation which is being initiated by the container with the transaction under which the stored proc is executing or is it that the stored procedure code will also be executing under the container managed transcation.
    Thanks
    Vimal

    Hi Vimal,
    Will the data that I am storing in tables from within
    the session bean method, be available to the code
    executing inside stored proc.There's only one way to find out (isn't there?)
    secondly, how do I sync the transcation which is
    being initiated by the container with the transaction
    under which the stored proc is executing or is it
    that the stored procedure code will also be executing
    under the container managed transcation.Again, why not just "suck it and see!"
    [Or is there some reason why you can't?]
    As I interpret the EJB specification, if the transaction attribute for your session bean method is such that it starts a transaction, then that transaction will be terminated when the method completes -- and every operation that occurs within the framework of that method will be in the one transaction.
    In other words, your database stored procedure should execute within the same transaction as your O/R mapping layer.
    However, how OC4J behaves may not exactly follow what is written in the (EJB) specification. Hence I repeat, "try it and see for yourself".
    Put it this way: as far as I know, the only way that your stored procedure would NOT see the changes made by your O/R mapping layer is if they both executed in separate transactions and the O/R mapping layer did not commit its changes before the stored procedure began its execution.
    Hope this has helped.
    Good Luck,
    Avi.

  • Application Not Loading

    Hi,
    I have a J2EE Application developed using JDeveloper and the deployment file (.ear) build using Java J2SDKEE Deploytool.
    I was able to deploy the application succesfully in 9iAS under OC4J_Home. The problem is that the Application status remains Not Loaded and I get HTTP 404 - File not found error, when I try to access the application in the browser using the URL
    http://<ias_hostname>:7777/<application>
    If anybody has faced similar problems and was able to sort it out, please help..
    Thanks in advance,
    Anoop.

    Hi Steve,
    Thanks for the reply,
    I had added 'index.jsp' as the welcome file in
    web.xml(forgot to mention it earlier). So that
    shouldn't be the problem.
    Thanks and Regards,
    Anoop..Hi Anoop - good, that's one thing we don't need to check on then! What was the virtual path mapping you specified during the deployment process?
    Is the HTTP server started correctly? Can you access the default page of the HTTP server, without any reference to the application?
    There are three places to go and check to see that things happened correctly:
    a) $OH/Apache/Apache/conf/mod_oc4j.conf
    This file should contain a line that looks like
    Oc4jMount /employeebenefitmanager/* home
    where the context-path you entered is listed. This is the file that Apache uses to map incoming HTTP requests to OC4J applications.
    To access this application I'd use
    http://host:port/employeebenefitmanager
    and the Apache server will then delegate the request to the OC4J Home instance which will then execute the local application which is bound to the root-context of 'employeebenefitmanager'. See c) below.
    b) If you deployed to the OC4J_Home instance look in the
    $OH/j2ee/home/config/server.xml and make sure there is an entry that corresponds to the file you deployed.
    It should be something like:
    <application name="EmpBft"
    path="../applications/EmpBft.ear"
    auto-start="true" />
    If you deployed to another instance, change the j2ee/home to be j2ee/<instance-name> to find the file.
    c) In the j2ee/home/config/default-web-site.xml file, there should be a line that lists the OC4J URL for your application
    <web-app application="EmpBft" name="empbft-ws_web" root="/employeebenefitmanager"/>
    And the root attribute should map the entry in the mod_oc4j.conf file.
    Have a look through those and see if they can shed any light on it for you.
    -steve-

  • Error-page in web.xml: error page doesn't show

    Hi,
    I added the following block in web.xml file:
    <error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/ESU9098J.jsp</location>
    </error-page>
    When I force an exception, I get a pop-up for downloading a file named EAC0002Se04379bf (where EAC0002S is the name of the servlet in which the exception happens). Can anybody help?
    I use OC4J 10221 on Win Xp with JDK 1.3.1
    Thanks
    Jean

    This is due to a erroneous MIME type mapping in one of the OC4J config files.
    To resolve it:
    Modify mime.types under $OC4J_HOME/config by removing the line application/jsp (for some unknown reason, there are two of them in the file) or renaming the
    word jsp into some other name, ex.:
    "application/jsp jsptemp"
    for both the 2 lines. Then add "jsp" to the end of the "text/html" line, ex.:
    "text/html html htm jsp".
    This will make oc4j use text/html in the response when a jsp file is being processed that's why it's very important to eliminate application/jsp by renaming jsp or simply deleting the line.
    We fixed this error in the config file in a later release.
    cheers
    -steve-

  • Oracle Retail V13 - RIB Installation

    Hi,
    We are in the process of installing Oracle V13 - Retail Integration Bus. Installation guide mentions the folloiwing in Appendix D - Creating an OC4J RIB Admin Role:
    orion-ejb-jar.xml
    To allow the J2EE role to be used inside the application, edit the orion-ejb-jar.xml file
    present under &lt;oc4j-instance-home&gt;/application-deployments/admin_ejb directory.
    e.g. /home/wsadmin/product/10.1.3.3/OracleAS_
    6/j2ee/rib-rms-oc4j-instance/&gt;/application-deployment/ admin_ejb
    This completes the creation and mapping of the users and roles. Restart the oc4j
    instance after these changes.
    What exactly we are supposed to do in the orion-ejb-jar.xml?
    Can anyone let me know with exact details and format in which the orion-ejb-jar.xml can be modified?
    Thanks,
    Siva

    Hi,
    This is part of OC4J security role creation.
    For further details you can see Oracle® Application Server Administrator's
    Guide 10g Release 3 (10.1.3.3)
    A sample entry will look like this
    <security-role-mapping name="jmxAdministrator">
    <group name="oc4j-administrators" />
    <group name="ascontrol_admin" />
    <group name="rib-oc4j-administrators" />
    </security-role-mapping>
    <security-role-mapping name="jmxusers">
    <group name="oc4j-app-administrators" />
    <group name="ascontrol_appadmin" />
    <group name="rib-oc4j-administrators" />
    </security-role-mapping>
    Regards,
    PPS

  • JSTL FMT multiple content-language headers

    hello
    this is my second post about htis same problem. I am alot smarter now (which isn't saying much). But on ASF bugzilla they claim this is a OC4J issue. I can easily reproduce the problem.
    the link is
    http://issues.apache.org/bugzilla/show_bug.cgi?id=28248
    A brief summary, each time i call fmt:formatNumber it ADDS a content-language header, eventually it overflows the browsers buffers or something similar and causes an error. Is there a work around for this problem?
    Please help
    thanks
    troy

    hi troy,
    i think, they'll dont fix it (it's too trivial), but i suggest a workaround. establish a simple filter (thanks servlet 2.3), that prevent subsequent setLocale calls to the response object.
    Here is my workaround.
    [web.xml]
    <filter>
    <filter-name>oc4jsetlocalefilter</filter-name>
    <display-name>SetLocaleFilter</display-name>
    <filter-class>workarounds.oc4j.setlocale.SetLocaleFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>oc4jsetlocalefilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    [SetLocaleFilter.java]
    package workarounds.oc4j.setlocale;
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletResponse;
    public class SetLocaleFilter
    implements Filter
    public SetLocaleFilter()
    public void init(FilterConfig p0) throws ServletException
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
    throws IOException, ServletException
    if (response instanceof HttpServletResponse)
    SetLocaleResponseWrapper respWrapper =
    new SetLocaleResponseWrapper((HttpServletResponse)response);
    chain.doFilter(request,respWrapper);
    else {
    chain.doFilter(request,response);
    public void destroy()
    [SetLocaleResponseWrapper.java]
    package workarounds.oc4j.setlocale;
    import java.util.Locale;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletResponseWrapper;
    public class SetLocaleResponseWrapper extends HttpServletResponseWrapper
    public SetLocaleResponseWrapper(HttpServletResponse response)
    super(response);
    public void setLocale(Locale locale)
    if (containsHeader("Content-Language"))
    System.out.println("setLocale skipped by filter. Content-Language already set.");
    return;
    System.out.println("setLocale called.");
    super.setLocale(locale);
    Good luck,
    Daniel

  • Class converter problem

    Hi All,
    I am not clear about how to write a correct class converter. Here is my example:
    old:
    @Persistent(proxyFor=Base.class)
    public class BaseProxy implements PersistentProxy<Base> {
      private Map<String, List<String>> onemap;
      @Persistent(proxyFor=A.class)
      public static class Aproxy extends BaseProxy {
          private Aproxy() {
    }new:
    @Persistent(proxyFor=Base.class, version=1)
    public class BaseProxy implements PersistentProxy<Base> {
      private Map<Enum, List<String>> onemap;    // changed the map
      private Map<String, List<String>> anothermap;    // added a new field.
      @Persistent(proxyFor=A.class, version=1)
      public static class Aproxy extends BaseProxy {
          private Aproxy() {
    }My class converter:
    public class BaseProxyConverter implements Conversion {
       public Object convert(Object fromValue) {
       @Override
        public boolean equals(Object o) {
        public static class AproxyConverter extends BaseProxyConverter {    
            @Override
            public Object convert(Object fromValue) {
            @Override
            public boolean equals(Object o) {
    }Registration code:
    Mutations mutations = new Mutations();
    Converter baseConverter = new Converter(BaseProxy.class.getName(), 0, new BaseProxyConverter());
    Converter aConverter = new Converter(Aproxy.class.getName(), 0, new BaseProxyConverter.AproxyConverter());
    mutations.addConverter(baseConverter);
    mutations.addConverter(aConverter);
    storeConfig.setMutations(mutations);
    ...But I got errors like :
    com.sleepycat.je.EnvironmentFailureException: (JE 4.0.103) java.io.InvalidClassException:
    BaseProxyConverter$AproxyConverter; local class incompatible: stream classdesc serialVersionUID = -6680580065857162115, local class serialVersionUID = 1948673003026236849 UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
    Can anyone provide help for this problem?
    Thanks a lot.
    Edited by: 792268 on 2010-11-2 下午4:01
    Edited by: 792268 on 2010-11-2 下午4:03
    Edited by: 792268 on 2010-11-2 下午4:04

    Thanks.
    The following is the error message:
    local class incompatible: stream classdesc serialVersionUID = -6680580065857162115, local class serialVersionUID = 1948673003026236849 UNEXPECTED_EXCEPTION: Unexpected internal Exception, may have side effects.
         at com.sleepycat.je.EnvironmentFailureException.unexpectedException(EnvironmentFailureException.java:286)
         at com.sleepycat.compat.DbCompat.unexpectedException(DbCompat.java:500)
         at com.sleepycat.persist.impl.PersistCatalog.readData(PersistCatalog.java:1110)
         at com.sleepycat.persist.impl.PersistCatalog.init(PersistCatalog.java:255)
         at com.sleepycat.persist.impl.PersistCatalog.<init>(PersistCatalog.java:221)
         at com.sleepycat.persist.impl.Store.<init>(Store.java:186)
         at com.sleepycat.persist.EntityStore.<init>(EntityStore.java:185)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:101)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
         at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
         at com.google.inject.spi.ProviderLookup$1.get(ProviderLookup.java:89)
         at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:95)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
         at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
         at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
         at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
         at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
         at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
         at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
         at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.FactoryProxy.get(FactoryProxy.java:56)
         at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
         at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
         at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
         at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
         at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
         at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
         at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
         at com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
         at com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
         at com.google.inject.Scopes$1$1.get(Scopes.java:54)
         at com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
         at com.google.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
         at com.google.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
         at com.google.inject.ConstructorInjector.construct(ConstructorInjector.java:84)
         at com.google.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:111)
         at com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
         at com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
         at com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
         at com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at java.util.ArrayList.readObject(ArrayList.java:593)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at com.sleepycat.persist.impl.PersistCatalog.readData(PersistCatalog.java:1093)
         ... 76 more
    Edited by: 792268 on 2010-11-2 下午5:44

  • Problem with OC4J:: not able to deploy map

    hello
    i have downloaded the OC4J stand alone.
    Then i have run the oc4j START Script- it is running.
    then went to browser and runhttp://localhost:8888/mapviewer to access its functions.
    oracle application server MAP VIEWER starts and home page opens..
    but I AM NOT ABLE TO ACTUALLY DEPLOY THE MAP??
    i have also installed the demo database given in mvdemo.zip.
    But actally i dont know how to link it to map viewer??
    PLEASE HELP!!!!

    http://localhost:8888/mapviewer/fsmc/tutorial/setup.html
    contains a set of instructions to set up the mapviewer metadata and data sources once you've loaded the mvdemo.dmp data into a database.
    Have you tried that?

  • How to map a custom enum list to a custom form property in an extended incident class

    Hi,
    I'm struggeling to understand how to map a custom enum list to a custom form property in an extended incident class.
    Here's what i want to have happen:
    I am going to publish a request offering on my SMPortal for allowing users to submit basic IT incidents. I want the form to include "Whom does this problem affect" (answers(This is the custom enum list): Me, Multiple Users, Whole department or Whole
    company), "What is the problem about", "Description" and "Attachments".
    Here's what i've done:
    In the authoring tool i created a MP for the custom enum list and put only the list in it. I sealed the MP and imported it.
    I created another unsealed MP called TST.Incident.Library for storing incident library customizations and extended the incident class to add an extension class i called ClassExtension_Affected scope with a custom property i called AffectedScope. Then i am trying
    to set the datatype of this property to "list". In the "select a list" dialog i cannot chose my previously sealed MP with the custom enum list in it. Why?
    - Do i need to scratch the sealed MP and put the custom enum list in the latter TST.Incident.Library MP instead?
    - If so, can i do that and keep this MP unsealed, or will i get an error on import saying "Unsealed management packs should not contain type definitions"
    - Should i create one sealed MP for both the custom enum list and the extension class + custom property?

    Hi,
    Authoring Tool simply isn't informed about your list. Open the sealed management pack where you define the root of the list in the Authoring Tool and in the same time open TST.Incident.Library. You will have two opened MPs in the Authoring
    Tool and be able to add a custom list for your custom field.
    Cheers,
    Marat
    Site: www.scutils.com  Twitter:
      LinkedIn:
      Facebook:

Maybe you are looking for

  • How can I display a photo in my ipad app quickly?

    When swiping through the slide show from a photo album, pictures are displayed instantly despite the size or dimensions of the picture. However, when I display a picture in my app it takes about 1 second per megabyte to load. Why is that?  Is an imag

  • HT4367 I have tried to restore my Apple tv (gen 3 and win 8.1)

    I have tried to restore my Apple tv (gen 3 and win 8.1) according to the Apple description but it fails. I have tried three different usb cables with no luck. iTunes does not seem to recognise that i have connected the Apple TV via usb. Any suggestio

  • Safari icon with Question Mark

    My 3 year old did something really goofy & now my Safari icon has a large question super-imposed on it. I believe this to be the reason that it won't open. I tried to locate Safari again via Finder & the Applications folder but where the icon should

  • MPLS QoS Priority

    Hi everybody, I've seen guys saying that ICMP has low priority on MPLS Domain and normaly i can lost some packet when I ping some router on mpls domain, but I'd like to know when it is true, because I did mpls course and I didnt see nothing about tha

  • Can not get e-mail messages to go out on my Palm Centro

    I have a Palm Centro and have tried to set up my e-mail accounts.  I can not get either e-mail options to send the e-mails out (I can get incoming messages however).  I have entered the correct information required by my provider (I am with Mediacom)