WLS9: wsdlc: jwsc: Problem when implementing EJB

I have succesfully used wsdlc and jwsc to create a Web Service from a WSDL as a Java Class.
When I follow the instructions to implement the same service as an EJB, I get the following error:
wsdl "/wsdls/mp1.wsdl" is not found in the deployment weblogic.utils.jars.jarFileDelegate@113cefe.......
Please help, as we are very interested in moving to WLS9 for a new project.

CR238943 fixes this - but you have to ask BEA for it.

Similar Messages

  • Security Problem when call EJB in servlet:[Security:090398]Invalid Subject

    Hi guys,
    I have several years experience with Java and EJB developing,but still I cann't explain this problem although I already knew the fix...
    Please,can anyone help me to explain why? Thanks very much!
    Ok,the problem is when I call a remote EJB in one method ,that is everything about EJB is in one method,then everything is ok.But when I just return the
    *remote service object from an helper class's static method, and call the service in servlet ,then I get java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[sundan076],which sundan076 is username login into the web application.*
    The right way, call method directCall(param) ; The wrong way, call  method staticToolCall(final Map param) .
    public class EJBServletClient extends HttpServlet
         protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
              this.doPost(request, response);
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
                   IOException
              try
                   Map<String, String> param = new HashMap<String, String>();
                   param.put("CTS_CUSTOMER_ID", request.getParameter("CTS_CUSTOMER_ID"));
                   param.put("CTS_TASK_ID", request.getParameter("CTS_TASK_ID"));
                   param.put("SERIALNO", request.getParameter("SERIALNO"));
                   param.put("CUSTOMER_SERVICE_UM", request.getParameter("CUSTOMER_SERVICE_UM"));
                   Map result = this.directCall(param);
                   System.out.println(result);
              } catch (Exception e)
                   e.printStackTrace();
                   throw new ServletException(e);
         private Map directCall(Map param) throws Exception
              Context context = null;
              try
                   Properties p = new Properties();
                   p.put(Context.PROVIDER_URL, "t3://10.25.32.13:31256");
                   p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
                   p.put(Context.SECURITY_PRINCIPAL, "username");
                   p.put(Context.SECURITY_CREDENTIALS, "password");
                   context = new InitialContext(p);
                   BizApplyServiceHome home = (BizApplyServiceHome) PortableRemoteObject.narrow(
                             context.lookup("ejb/rcs-css/BizApplyService"), BizApplyServiceHome.class);
                   BizApplyService bizApplyService = home.create();
                   return bizApplyService.modifyApplyCustomerInfo(param);
              } finally
                   if (context != null)
                        context.close();
         private Map staticToolCall(final Map param) throws Exception
              BizApplyService bizApplyService = EJBTool.getBizApplyService();
              return bizApplyService.modifyApplyCustomerInfo(param);
    public class EJBTool
         public static BizApplyService getBizApplyService() throws Exception
              Context context = null;
              try
                   Properties p = new Properties();
                   p.put(Context.PROVIDER_URL, "t3://10.25.32.13:31256");
                   p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
                   p.put(Context.SECURITY_PRINCIPAL, "username");
                   p.put(Context.SECURITY_CREDENTIALS, "password");
                   context = new InitialContext(p);
                   BizApplyServiceHome home = (BizApplyServiceHome) PortableRemoteObject.narrow(
                             context.lookup("ejb/rcs-css/BizApplyService"), BizApplyServiceHome.class);
                   return home.create();
              } finally
                   if (context != null)
                        context.close();
    java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[sundan076]
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at com.pingan.rcs.css.biz.service.remote.ejb.bizApplyService_u7jjbk_EOImpl_1032_WLStub.modifyApplyCustomerInfo(Unknown Source)
         at com.pingan.pafax.web.EJBServletClient.staticToolCall(EJBServletClient.java:80)
         at com.pingan.pafax.web.EJBServletClient.doPost(EJBServletClient.java:43)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[sundan076]
         at weblogic.security.service.SecurityServiceManager.seal(SecurityServiceManager.java:835)
         at weblogic.security.service.SecurityServiceManager.getSealedSubjectFromWire(SecurityServiceManager.java:524)
         at weblogic.rjvm.MsgAbbrevInputStream.getSubject(MsgAbbrevInputStream.java:315)
         at weblogic.rmi.internal.BasicServerRef.acceptRequest(BasicServerRef.java:875)
         at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:310)
         at weblogic.rmi.cluster.ClusterableServerRef.dispatch(ClusterableServerRef.java:242)
         at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:1138)
         at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:1020)
         at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:240)
         at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:882)
         at weblogic.rjvm.MsgAbbrevJVMConnection.dispatch(MsgAbbrevJVMConnection.java:453)
         at weblogic.rjvm.t3.MuxableSocketT3.dispatch(MuxableSocketT3.java:322)
         at weblogic.socket.BaseAbstractMuxableSocket.dispatch(BaseAbstractMuxableSocket.java:298)
         at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:915)
         at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:854)
         at weblogic.socket.EPollSocketMuxer.dataReceived(EPollSocketMuxer.java:215)
         at weblogic.socket.EPollSocketMuxer.processSockets(EPollSocketMuxer.java:177)
         at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
         at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:42)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
    Edited by: 993478 on 2013-3-12 下午8:40

    I tried your way,it works! Still ,does anyone know why staticToolCall() raised exception?
    By the way,here is the code as you suggested:
    public class EJBServletClient extends HttpServlet
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
                   IOException
              Context context = null;
              try
                   Map<String, String> param = new HashMap<String, String>();
                   param.put("CTS_CUSTOMER_ID", request.getParameter("CTS_CUSTOMER_ID"));
                   param.put("CTS_TASK_ID", request.getParameter("CTS_TASK_ID"));
                   param.put("SERIALNO", request.getParameter("SERIALNO"));
                   param.put("CUSTOMER_SERVICE_UM", request.getParameter("CUSTOMER_SERVICE_UM"));
                   //Map result = this.staticToolCall(param);
                   Properties p = new Properties();
                   p.put(Context.PROVIDER_URL, "t3://10.25.32.13:31256");
                   p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
                   p.put(Context.SECURITY_PRINCIPAL, "username");
                   p.put(Context.SECURITY_CREDENTIALS, "password");
                   context = new InitialContext(p);
                   Map result=EJBTool.modifyApplyCustomerInfo(context, param);
                   System.out.println(result);
              } catch (Exception e)
                   e.printStackTrace();
                   throw new ServletException(e);
              }finally
                   if (context != null)
                        try{context.close();} catch (NamingException e){e.printStackTrace();}
    public class EJBTool
         public static Map modifyApplyCustomerInfo(Context context, Map param) throws Exception
              BizApplyServiceHome home = (BizApplyServiceHome) PortableRemoteObject.narrow(
                        context.lookup("ejb/rcs-css/BizApplyService"), BizApplyServiceHome.class);
              BizApplyService bizApplyService = home.create();
              Map result = bizApplyService.modifyApplyCustomerInfo(param);
              return result;
    }

  • Trasaction problem when migrate ejb application from oc4j 10.1.2 to 10.1.3

    When i migrate my ejb application from oc4j 10.1.2 to 10.1.3
    in application log i found following many exceptions:
    where is problem? on AS 10.1.2 all works fine.
    javax.transaction.SystemException: Transaction state is COMMITTED and therefore can not be suspended, transaction
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.suspend(ApplicationServerTransaction.java:356)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.suspend(ApplicationServerTransactionManager.java:541)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.suspend(EJBTransactionManager.java:186)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.suspendLocal(EJBTransactionManager.java:163)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.suspend(BeanPool.java:588)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.destroyContext(BeanPool.java:460)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BeanPool.releaseContext(BeanPool.java:306)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.BMPOrionEntityBeanPool.releaseContext(BMPOrionEntityBeanPool.java:72)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBHome.releaseContextInstance(EntityEJBHome.java:114)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:182)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:402)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.removeFromCacheNew(EntityEJBObject.java:336)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EntityEJBObject.endTransaction(EntityEJBObject.java:178)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.endTransaction(ApplicationServerTransactionSynchronization.java:198)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.freeEjbResources(ApplicationServerTransactionSynchronization.java:179)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionSynchronization.afterCompletion(ApplicationServerTransactionSynchronization.java:677)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.callSynchronizationAfterCompletion(ApplicationServerTransaction.java:1215)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.freeResources(ApplicationServerTransactionManager.java:394)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.doCommit(ApplicationServerTransaction.java:282)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:162)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ApplicationServerTransactionManager.commit(ApplicationServerTransactionManager.java:472)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.EJBTransactionManager.end(EJBTransactionManager.java:143)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:57)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.4.0) .server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    any idea?
    Thanks. J.

    java.lang.NoSuchMethodError: java.lang.String oracle.adf.model.BindingContext.findBindingContainerIdByPath(java.lang.String) at oracle.adf.controller.v2.struts.actions.DataAction.mappingCreate
    Refer Steve's blog
    http://radio-weblogs.com/0118231/stories/2006/02/28/notesOnMigratingAdfstruts1012ApplicationsTo1013.html

  • Searching problems when implementing my own repository manager

    Hi there,
    i've serious problems to get the search fuctionality for my own repository manager running. I'm using the 'new', Netweaver-based api.
    Always if I'm launching a search I receive a ClassNotFoundException in the follwing context:
    #1.5#172.16.17.102:7CF6B6:FF73BDDB07:-36E7#1097161124650#com.sapportals.wcm.WcmException#irj#com.sapportals.wcm.WcmException.WcmException(118)#System#0#####System_Thread_37##0#0#Error##Plain###invalid manager class: com.sapportals.wcm.repository.runtime.ManagerAdapter java.lang.ClassCastException: invalid manager class: com.sapportals.wcm.repository.runtime.ManagerAdapter
         at com.sapportals.wcm.repository.RMAdapter.<init>(RMAdapter.java:48)
         at com.sapportals.wcm.repository.runtime.CmSystem.getResourcesImpl(CmSystem.java:1134)
         at com.sapportals.wcm.repository.runtime.CmSystem.getResources(CmSystem.java:356)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResources(CmAdapter.java:153)
         at com.sapportals.wcm.service.indexmanagement.retrieval.trex.TrexSearchIndexCollection.getSearchResults(TrexSearchIndexCollection.java:1126)
         at com.sapportals.wcm.service.indexmanagement.retrieval.search.SearchSession.getSearchResults(SearchSession.java:293)
         at com.sapportals.wcm.service.indexmanagement.retrieval.search.FederatedSearchSession.getSearchResults(FederatedSearchSession.java:111)
         at com.sapportals.wcm.rendering.collection.SearchRendererStatus.refresh(SearchRendererStatus.java:180)
         at com.sapportals.wcm.rendering.collection.LightCollectionRenderer.createStatus(LightCollectionRenderer.java:718)
         at com.sapportals.wcm.rendering.collection.LightCollectionRenderer.renderAll(LightCollectionRenderer.java:498)
         at com.sapportals.wcm.rendering.control.cm.NeutralControl.render(NeutralControl.java:141)
         at com.sapportals.wcm.rendering.layout.cm.SimpleLayoutController.render(SimpleLayoutController.java:39)
         at com.sapportals.wcm.rendering.control.cm.WdfProxy.render(WdfProxy.java:1229)
         at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:41)
         at com.sapportals.wdf.stack.Pane.render(Pane.java:153)
         at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
         at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:64)
         at com.sapportals.wdf.stack.Pane.render(Pane.java:156)
         at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
         at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:64)
         at com.sapportals.wdf.stack.Pane.render(Pane.java:156)
         at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
         at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:64)
         at com.sapportals.wdf.stack.Pane.render(Pane.java:156)
         at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:67)
         at com.sapportals.wdf.ControllerDynPage.executeEvent(ControllerDynPage.java:338)
         at com.sapportals.wdf.BaseDynPage.onWdfEvent(BaseDynPage.java:132)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:172)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:101)
         at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:64)
         at com.sapportals.htmlb.page.PageProcessorServlet.doPost(PageProcessorServlet.java:25)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sapportals.wcm.app.servlet.WcmHtmlbBaseServlet.service(WcmHtmlbBaseServlet.java:81)
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:280)
         at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:195)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:209)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:589)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:301)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:143)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:195)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:636)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:209)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:532)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.InvokerServlet.service(InvokerServlet.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.inqmy.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:147)
         at com.inqmy.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:789)
         at com.inqmy.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:644)
         at com.inqmy.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:305)
         at com.inqmy.services.httpserver.server.Response.handle(Response.java:165)
         at com.inqmy.services.httpserver.server.HttpServerFrame.request(HttpServerFrame.java:1133)
         at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:36)
         at com.inqmy.core.cluster.impl0.ParserRunner.run(ParserRunner.java:35)
         at com.inqmy.core.thread.impl0.ActionObject.run(ActionObject.java:46)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.inqmy.core.thread.impl0.SingleThread.run(SingleThread.java:132)
    I'm using EP 6.0 SP2 directly installed from the CD
    #51 020 549 without explicit installation of any patch or hotfix; the portal itself shows the version number 6.0.2.0.0 (implementation version 6.2.0.0.200310100950).
    I switched on logging but I never reached the INamespaceManager's methods isQueryPropertyNameUnderstood() or getQueryBuilder().
    So I figure that this might a problem of my (too old?) unpatched version of EP6????
    What can I do to get the serach func running?
    Thanks for your support,
    Daniel

    Hi Karsten,
    thanks for your annotation.
    Does it mean that I <b>HAVE TO</b> apply at least Patch 4
    to get the search working or <b>SHOULD</b> I apply the patch to be up-to-date and look for an error in my code???
    Thanx a lot,
    best regards,
    Daniel

  • Problems when deploying EJB

    Hi,
    I try to deploy an ejb in oracle 8.1.7.
    All the steps of the deployment work fine until the step :
    "Generating EJBHome and EJBObject on the server..."
    At this step, it returns the following error messages :
    Compilation errors in oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:ORA-29535: source requires recompila
    tion
    javax/ejb/EJBObjectOperations: Authorization error for referenced class org/xml/sax/XMLReader.
    javax/ejb/EJBObjectOperations: Authorization error for referenced class org/xml/sax/XMLReader.
    javax/ejb/EJBObjectOperations: Authorization error for referenced class org/apache/xalan/xslt/XSLTInputSource.
    javax/ejb/EJBObjectOperations: Authorization error for referenced class org/apache/xalan/xslt/XSLTInputSource.
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:112: Class org.xml.sax.XMLReader not found.
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:122: Class org.xml.sax.XMLReader not found.
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:161: Variable __returnValue may not have been initialized.
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:218: Class org.apache.xalan.xslt.XSLTInputSource not found
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:226: Class org.apache.xalan.xslt.XSLTInputSource not found
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:265: Variable __returnValue may not have been initialized.
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:270: Class org.apache.xalan.xslt.XSLTInputSource not found
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:278: Class org.apache.xalan.xslt.XSLTInputSource not found
    oracle/aurora/ejb/gen/test_editionpdf_editionPDFBean/EjbObject_EditionPDF:317: Variable __returnValue may not have been initialized.
    Info: 13 errors
    Even if the concerned java classes 'org/xml/sax/XMLReader' and 'org/apache/xalan/xslt/XSLTInputSource' are stored in the database and have the 'valid' status.
    Do I need to specify some security rules with the dbms_java package ?
    Where could this problem come from ?
    Thanks in advance
    Bye
    [email protected]

    Hi,
    Y have the same problem with Jdeveloper.
    May be it`s will help You
    1. IDE compilation process can`t check some problem whith EJB, but this errrors checking on deployment process. Check Your remote interface independently.
    2. If you use Oracle8i - connect to the server with admin options(login and password) or give for you user this privilege. Try make connect with name: SYS and password: change_on_install.
    Sorry for bad English
    null

  • I am getting this problem when running ejb client

    Hi,
    Any one help me , i am getting this error when i run my ejb Client
    D:\sample\Client>
    java -Djava.naming.factory.initial=com.sun.jndi.cosnamin
    g.CNCtxFactory -Djava.naming.provider.url=iiop://localhost:1050 com.net.ejbexamples.slsb.EJBClient
    Exception in thread "main" org.omg.CORBA.COMM_FAILURE: minor code: 1398079490
    completed: No
    at com.sun.corba.se.internal.iiop.IIOPConnection.writeLock(IIOPConnectio
    n.java:956)
    at com.sun.corba.se.internal.iiop.IIOPConnection.send(IIOPConnection.jav
    a:1017)
    at com.sun.corba.se.internal.iiop.IIOPOutputStream.invoke(IIOPOutputStre
    am.java:71)
    at com.sun.corba.se.internal.iiop.ClientRequestImpl.invoke(ClientRequest
    Impl.java:82)
    at com.sun.corba.se.internal.corba.ClientDelegate.invoke(ClientDelegate.
    java:153)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve(InitialNa
    mingClient.java:195)
    at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialRefe
    rences(InitialNamingClient.java:260)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_r
    eferences(InitialNamingClient.java:183)
    at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.ja
    va:1465)
    at weblogic.iiop.IORManager.createInitialReference(IORManager.java:113)
    at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
    t(InitialContextFactoryImpl.java:96)
    at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
    t(InitialContextFactoryImpl.java:86)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
    extFactory.java:149)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
    60)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:241
    at javax.naming.InitialContext.init(InitialContext.java:217)
    at javax.naming.InitialContext.<init>(InitialContext.java:193)
    at com.net.ejbexamples.slsb.EJBClient.main(EJBClient.java:15)
    Thanks

    Found in negative cache.... very strange.
    RFC found in negative cache
    What is the negative cache?

  • Implementation Problem when Implementing Examples

    Hi community
    I am trying to implement the example files provided in SAP Note 1105622.
    I am struggling with the following step in example 6 of the guide SAP E-Commerce 5.0: Examples and Tutorials:
    "1. Copy the files of the template-folder (of the examples-zip-file) to your local <b2b-mod> application."
    I am able to import the jsp file, to check- in and activate the application and run it. But where and how do I have to copy the *.java files? They seem to be invisible for my application...

    Hi,
    If you are using NWDI then follow this.
    Copy all the java files to home/shr/ext project and JSps to b2b folder.
    Regards,
    [Sateesh Chandra|http://sateeshchandrach.googlepages.com]

  • Problem when loading ejbs

    Unable to deploy EJB: PotentialLegal from apollo_adapter.jar:
    Cannot export non clusterable object with jndiName

    Hi Sharma,
    Caused by: java.lang.AssertionError: Cannot export non clusterable object with jndiName
    at weblogic.utils.Debug.assertion(Debug.java:67)
    at weblogic.rmi.extensions.server.ServerHelper.exportObject(ServerHelper.java:295)
    at weblogic.ejb.container.internal.BaseEJBHome.setup(BaseEJBHome.java:97)
    at weblogic.ejb.container.internal.StatelessEJBHome.setup(StatelessEJBHome.java:69)
    at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:1246)
    at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:946)
    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1221)
    at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:354)
    This is the error and I didnt do any changes.
    weblogic version is 9.2
    pls let me if you need further detaills..

  • Problem in implement blink Effect

    I have experience a problem when implement my blink effect
    The expected result is only the textarea component with value
    "3" should play the effect, but unfortunately the effect will move
    to another target when the data change.

    Feel free to downloasd the trial versions, but you cannot buy a full license after the trial runs out:
    Direct Download Links for Adobe Software
    Mylenium

  • Timeout when implemented Flowbox

    hi everyone,
    i met a problem when implemented the Flowbox,i created more than one flowbox instance on the stage then used code to add child into them dynamicly.but it blocked throwing timeout error.
    i did a simple demo to reproduce it,please see the code as below :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                        layout="absolute"
                        xmlns:local="*">
         <local:FlowBox id="box1"
                           x="10"
                           y="188"
                           width="226"
                           height="133"
                           borderStyle="solid"
                           borderColor="#E36410"
                           borderThickness="2"/>
         <local:FlowBox id="box2"
                           x="290"
                           y="188"
                           width="223"
                           height="138"
                           borderStyle="solid"
                           borderColor="#37E015"
                           borderThickness="2"/>
         <local:FlowBox id="box3"
                           x="562"
                           y="188"
                           width="194"
                           height="133"
                           borderStyle="solid"
                           borderColor="#179EFC"
                           borderThickness="2"/>
         <mx:Button click="add()"
                      x="290"
                      y="77"
                      label="add"/>
         <mx:HSlider minimum="1"
                        maximum="100"
                        id="sl"
                        liveDragging="true"
                        x="353"
                        y="128"
                        snapInterval="1"
                        value="1"/>
         <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.containers.BoxDirection;
                   import mx.controls.Label;
                   private function add():void
                        var arr:ArrayCollection=new ArrayCollection();
                        for (var i:int=0; i < sl.value; i++)
                             var s:String=String(Math.random().toFixed(int(Math.random() * 10)));
                             var lbl:Label=new Label();
                             lbl.text=s;
                             box1.addChild(lbl);
                        for (var i:int=0; i < sl.value; i++)
                             var s:String=String(Math.random().toFixed(int(Math.random() * 10)));
                             var lbl:Label=new Label();
                             lbl.text=s;
                             box2.addChild(lbl);
                        for (var i:int=0; i < sl.value; i++)
                             var s:String=String(Math.random().toFixed(int(Math.random() * 10)));
                             var lbl:Label=new Label();
                             lbl.text=s;
                             box3.addChild(lbl);
              ]]>
         </mx:Script>
         <mx:Label x="255"
                     y="128"
                     text="element count:"/>
    </mx:Application>
    Thanks very much 

    Hi,
    There is no setting to increase the default timeout of 10 minutes for the Metapedia import process. If the Excel import file is so large that the import process times out, the import file will need to be split into multiple smaller import files that are imported separately.
    or else
    just try to import only the recent added categories and terms.
    Thanks
    Krishna

  • I have a problem when running my own EJB as a TUXEDO service using WTC.

    Hello,
    I have a problem when running my own EJB as a TUXEDO service using WTC. I am using TUXEDO 8.1 and WL 9.1.
    When I am trying to run my own EJB as a TUXEDO service error appears.
    TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not find service TOUPPER
    at weblogic.wtc.gwt.WTCService.getImport(WTCService.java:4988)
    at weblogic.wtc.gwt.TuxedoConnection.getImport(TuxedoConnection.java:303)
    at weblogic.wtc.gwt.TuxedoConnection.tpcall(TuxedoConnection.java:1302)
    at examples.MyTestSessionBean.Toupper(MyTestSessionBean.java:102)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:61)
    at net.roseindia.web.servlets.SessionTestServlet.doGet(SessionTestServlet.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    e8
    10
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    java.lang.NullPointerException
    at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:713)
    at weblogic.ejb.container.internal.BaseEJBObject.handleSystemException(BaseEJBObject.java:681)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:447)
    at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:75)
    at net.roseindia.web.servlets.SessionTestServlet.doGet(SessionTestServlet.java:69)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3153)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)
    Caused by: java.lang.NullPointerException
    at examples.MyTestSessionBean.Toupper(MyTestSessionBean.java:130)
    at examples.TestSessionBean_knby6k_EOImpl.Toupper(TestSessionBean_knby6k_EOImpl.java:61)
    ... 15 more
    Any clue on this.
    With Regards,
    MVS

    If you are trying to create a Tuxedo service in Java using WTC you need to develop an EJB that implements the TuxedoService interface and register its home in JNDI so WTC can look it up. Once that is done you can then export the service to a remote domain in the WTC configuration.
    Regards,
    Todd Little
    Oracle Tuxedo Chief Architect

  • I have a problem when i open the ejb-jar.xml

    Hi All,
    I have a problem when i open the ejb-jar.xml.....
    It shows some problem like .....
    when Invoking  Code plug-in problem :Org.eclipse.jface.
    After updating my nwds 3 to 11.
    How can i solve this any body help me.
    regards
    BHI

    Maybe try hosting your image on a free image hosting site.

  • JDO object id problem when working with an appserver

    Hi,
    I'm running into a problem when passing a JDO object id as an argument to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object is not
    Serializable, I'm passing the object id to the bean constructor, so that the
    bean can look up the object again, this time in the appserver, and wrap it,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on the fly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

    Hi David,
    I'm trying to use JDO to completely replace Entity Beans. Of course, this
    leaves me with an important question: how do you make the JDO object
    available remotely? My answer is to wrap JDO objects with a stateful
    session bean, and pass through method calls made on the bean to the JDO
    object. Both the bean and the JDO object will implement some interface, so
    you can use an object in a client without any knowledge as to whether it is
    a bean or a JDO object. ( Important note: I can get away with this because
    of another cool Solarmetric product, the session bean creator, which
    enhances a simple java object into a session bean )
    Now, once I have some interface implementation, maybe a local persistent
    object, maybe a remote object, I will want to do something with it. There
    are a couple considerations here. First, if I want to edit the object, I
    need to make sure a transaction gets started. I do this by having my
    session beans take care of starting and committing transactions. Since I
    have written my own JDO Factory that takes care of synchronizing PM caches
    across transactions, this has the effect of keeping all my caches in the
    appserver up-to-date as well ( more on that if you're interested ). So, in
    order to call a 'set' method, I need to ensure that the object I have is in
    it's "remote" state, so-to-speak.
    So I created an interface called RemotePersistentObject, which all these
    other interfaces extend. It includes two methods, getRemoteObject (), and
    getObjectId (). The reason for getObjectId (), instead of
    getPersistentObject (), is that often times you don't want your JDO objects
    to be Serializable, especially if you have JDO objects that you want to
    guarantee remain unique ( say, no two Stock objects have the same ticker
    symbol ). Besides, you want the remote object to represent the same
    concept, and as soon as you serialize the persistent object, you have a copy
    of the original JDO object that will no longer do nice things you'd like it
    to do, like get updated when some transaction in a different thread modifies
    a field.
    So, to get around this serialization issue, I just pass the JDO object id to
    the bean, and have the bean lookup and wrap the appropriate JDO object on
    the server. I wrote a couple optional base classes that provide a lot of
    the functionality for this, since it turns out that wrapping a
    non-serializable JDO object is non-trivial. The problem there is that when
    the bean passivates, it serializes the state of the session bean... oops.
    So the base classes take care of keeping a transient reference to the actual
    object, while keeping a non-transient ref to the object id. All attempts to
    use the actual JDO object are filtered through a getObject () method, which,
    if the transient ref has disappeared due to bean passivation, looks up the
    object in a read-only PM again.
    Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
    criticisms ) you may have.
    -Eric
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]...
    Eric,
    Curious minds want to know: what are you up to here? I found this to
    be a very interesting post, and I would like to know more about the
    architecture you are using and its motivation if you can share it.
    David Ezzio
    Eric Lindauer wrote:
    Hi,
    I'm running into a problem when passing a JDO object id as an argument
    to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object isnot
    Serializable, I'm passing the object id to the bean constructor, so thatthe
    bean can look up the object again, this time in the appserver, and wrapit,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on thefly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

  • JTable sorting - problem when adding elements (complete code inside)

    I�m writing this email with reference to a recent posting here but this time with the code example. (I apologize for the duplicated posting � this time it will be with the code)
    Problem: when adding more elements to the JTable (sorted) the exception: ArrayIndexOutOfBoundsException is thrown.
    Example: If the elements in the table are 10 and then the user requests for 8 � the table will produce the correct result. However, if the user will ask for 11 items (>10) the exception will be thrown.
    The program: The program below (compiles and running). A JTable is constructed with 3 items, when you click the button - the return result should be 4 items - this will generate the error, WHY?
    I would highly appreciate your thoughts why this is happening and most importantly � how to fix it.
    Thanks a lot
    3 files:
    (1) TableSorterDemo
    (2) Traveler
    (3)TableSorter
    //TableSorterDemo:
    package sorter;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    * TableSorterDemo is like TableDemo, except that it
    * inserts a custom model -- a sorter -- between the table
    * and its data model.  It also has column tool tips.
    public class TableSorterDemo implements ActionListener
         private JPanel superPanel;
         private JButton clickMe = new JButton("click me to get diff data");
         private boolean DEBUG = false;
         private DefaultListModel defaultListModel;
         private JTable table;
        public TableSorterDemo()
             superPanel = new JPanel(new BorderLayout());
             defaultListModel = new DefaultListModel();
             init1();
            TableSorter sorter = new TableSorter(new MyTableModel(defaultListModel)); //ADDED THIS     
            table = new JTable(sorter);             //NEW
            sorter.setTableHeader(table.getTableHeader()); //ADDED THIS
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            //Set up tool tips for column headers.
            table.getTableHeader().setToolTipText(
                    "Click to specify sorting; Control-Click to specify secondary sorting");
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this panel.
            superPanel.add("Center", scrollPane);
            superPanel.add("South",clickMe);
            clickMe.addActionListener(this);              
        public JPanel getPanel()
             return superPanel;
        public void init1()
             //in real life this will be done from the db
             Traveler a = new Traveler();
             Traveler b = new Traveler();
             Traveler c = new Traveler();
             a.setFirstName("Elvis");
             a.setLastName("Presley");
             a.setSprot("Ping Pong");
             a.setNumYears(3);
             a.setVegetarian(true);
             b.setFirstName("Elton");
             b.setLastName("John");
             b.setSprot("Soccer");
             b.setNumYears(2);
             b.setVegetarian(true);
             c.setFirstName("shaquille");
             c.setLastName("oneil");
             c.setSprot("Golf");
             c.setNumYears(22);
             c.setVegetarian(true);
             defaultListModel.addElement(a);
             defaultListModel.addElement(b);
             defaultListModel.addElement(c);
        public void init2()
             //in real life this will be done from the db
             Traveler d = new Traveler();
             Traveler e = new Traveler();
             Traveler f = new Traveler();
             Traveler g = new Traveler();
             d.setFirstName("John");
             d.setLastName("Smith");
             d.setSprot("Tennis");
             d.setNumYears(32);
             d.setVegetarian(true);
             e.setFirstName("Ron");
             e.setLastName("Cohen");
             e.setSprot("Baseball");
             e.setNumYears(12);
             e.setVegetarian(true);
             f.setFirstName("Donald");
             f.setLastName("Mac Novice");
             f.setSprot("Vallyball");
             f.setNumYears(1);
             f.setVegetarian(true);
             g.setFirstName("Eithan");
             g.setLastName("Superstar");
             g.setSprot("Vallyball");
             g.setNumYears(21);
             g.setVegetarian(true);
             defaultListModel.addElement(d);
             defaultListModel.addElement(e);
             defaultListModel.addElement(f);
             defaultListModel.addElement(g);            
        class MyTableModel extends AbstractTableModel
             private DefaultListModel myModel;
             public MyTableModel(DefaultListModel m)
                  myModel=m;
            private String[] columnNames = {"First Name",
                                            "Last Name",
                                            "Sport",
                                            "# of Years",
                                            "Vegetarian"};
            public int getColumnCount()
                return columnNames.length;
            public int getRowCount()
                return myModel.size();
            public String getColumnName(int column)
                 return getNames()[column];             
             public String[] getNames()
                  String[] names = {"First Name", "Last Name", "Sport", "# of Years", "Vegetarian"};
                  return names;
            public Object getValueAt(int row, int col)
                 return distributeObjectsInTable(row, col, (Traveler) myModel.elementAt(row));
            public Object distributeObjectsInTable(int row, int col, Traveler tr)
               switch(col)
                         case 0:
                              return tr.getFirstName();
                         case 1:
                           return tr.getLastName();
                      case 2:
                           return tr.getSprot();
                      case 3:
                           return new Integer(tr.getNumYears());
                      case 4:
                           return new Boolean (tr.isVegetarian());
                     default:
                         return "Error";
            public Class getColumnClass(int c)
                return getValueAt(0, c).getClass();
        private static void createAndShowGUI()
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            //Create and set up the window.
            JFrame frame = new JFrame("TableSorterDemo");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Create and set up the content pane.
            TableSorterDemo newContentPane = new TableSorterDemo();
            newContentPane.getPanel().setOpaque(true); //content panes must be opaque
            frame.setContentPane(newContentPane.getPanel());
            //Display the window.
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args)
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable()                   
                public void run()
                    createAndShowGUI();
         public void actionPerformed(ActionEvent ae)
              if (ae.getSource()==clickMe)
                   defaultListModel.removeAllElements();
                   init2(); //if the size of the model was less than 2 items - the result will be ok.
                              //in other words, if you commens the last 2 rows of this method (addElement(f) & g)
                             // the result will be fine.
                   table.updateUI();          
    }//(2) Traveler
    package sorter;
    public class Traveler
         private String firstName;
         private String lastName;
         private String sprot;
         private int numYears;
         private boolean vegetarian;
         public String getFirstName()
              return firstName;
         public String getLastName()
              return lastName;
         public int getNumYears()
              return numYears;
         public String getSprot()
              return sprot;
         public boolean isVegetarian()
              return vegetarian;
         public void setFirstName(String firstName)
              this.firstName = firstName;
         public void setLastName(String lastName)
              this.lastName = lastName;
         public void setNumYears(int numYears)
              this.numYears = numYears;
         public void setSprot(String sprot)
              this.sprot = sprot;
         public void setVegetarian(boolean vegetarian)
              this.vegetarian = vegetarian;
    }//(3)TableSorter
    package sorter;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.util.List;
    import javax.swing.*;
    import javax.swing.event.TableModelEvent;
    import javax.swing.event.TableModelListener;
    import javax.swing.table.*;
    public class TableSorter extends AbstractTableModel {
        protected TableModel tableModel;
        public static final int DESCENDING = -1;
        public static final int NOT_SORTED = 0;
        public static final int ASCENDING = 1;
        private static Directive EMPTY_DIRECTIVE = new Directive(-1, NOT_SORTED);
        public static final Comparator COMPARABLE_COMAPRATOR = new Comparator() {
            public int compare(Object o1, Object o2) {
                return ((Comparable) o1).compareTo(o2);
        public static final Comparator LEXICAL_COMPARATOR = new Comparator() {
            public int compare(Object o1, Object o2) {
                return o1.toString().compareTo(o2.toString());
        private Row[] viewToModel;
        private int[] modelToView;
        private JTableHeader tableHeader;
        private MouseListener mouseListener;
        private TableModelListener tableModelListener;
        private Map columnComparators = new HashMap();
        private List sortingColumns = new ArrayList();
        public TableSorter() {
            this.mouseListener = new MouseHandler();
            this.tableModelListener = new TableModelHandler();
        public TableSorter(TableModel tableModel) {
            this();
            setTableModel(tableModel);
        public TableSorter(TableModel tableModel, JTableHeader tableHeader) {
            this();
            setTableHeader(tableHeader);
            setTableModel(tableModel);
        private void clearSortingState() {
            viewToModel = null;
            modelToView = null;
        public TableModel getTableModel() {
            return tableModel;
        public void setTableModel(TableModel tableModel) {
            if (this.tableModel != null) {
                this.tableModel.removeTableModelListener(tableModelListener);
            this.tableModel = tableModel;
            if (this.tableModel != null) {
                this.tableModel.addTableModelListener(tableModelListener);
            clearSortingState();
            fireTableStructureChanged();
        public JTableHeader getTableHeader() {
            return tableHeader;
        public void setTableHeader(JTableHeader tableHeader) {
            if (this.tableHeader != null) {
                this.tableHeader.removeMouseListener(mouseListener);
                TableCellRenderer defaultRenderer = this.tableHeader.getDefaultRenderer();
                if (defaultRenderer instanceof SortableHeaderRenderer) {
                    this.tableHeader.setDefaultRenderer(((SortableHeaderRenderer) defaultRenderer).tableCellRenderer);
            this.tableHeader = tableHeader;
            if (this.tableHeader != null) {
                this.tableHeader.addMouseListener(mouseListener);
                this.tableHeader.setDefaultRenderer(
                        new SortableHeaderRenderer(this.tableHeader.getDefaultRenderer()));
        public boolean isSorting() {
            return sortingColumns.size() != 0;
        private Directive getDirective(int column) {
            for (int i = 0; i < sortingColumns.size(); i++) {
                Directive directive = (Directive)sortingColumns.get(i);
                if (directive.column == column) {
                    return directive;
            return EMPTY_DIRECTIVE;
        public int getSortingStatus(int column) {
            return getDirective(column).direction;
        private void sortingStatusChanged() {
            clearSortingState();
            fireTableDataChanged();
            if (tableHeader != null) {
                tableHeader.repaint();
        public void setSortingStatus(int column, int status) {
            Directive directive = getDirective(column);
            if (directive != EMPTY_DIRECTIVE) {
                sortingColumns.remove(directive);
            if (status != NOT_SORTED) {
                sortingColumns.add(new Directive(column, status));
            sortingStatusChanged();
        protected Icon getHeaderRendererIcon(int column, int size) {
            Directive directive = getDirective(column);
            if (directive == EMPTY_DIRECTIVE) {
                return null;
            return new Arrow(directive.direction == DESCENDING, size, sortingColumns.indexOf(directive));
        private void cancelSorting() {
            sortingColumns.clear();
            sortingStatusChanged();
        public void setColumnComparator(Class type, Comparator comparator) {
            if (comparator == null) {
                columnComparators.remove(type);
            } else {
                columnComparators.put(type, comparator);
        protected Comparator getComparator(int column) {
            Class columnType = tableModel.getColumnClass(column);
            Comparator comparator = (Comparator) columnComparators.get(columnType);
            if (comparator != null) {
                return comparator;
            if (Comparable.class.isAssignableFrom(columnType)) {
                return COMPARABLE_COMAPRATOR;
            return LEXICAL_COMPARATOR;
        private Row[] getViewToModel() {
            if (viewToModel == null) {
                int tableModelRowCount = tableModel.getRowCount();
                viewToModel = new Row[tableModelRowCount];
                for (int row = 0; row < tableModelRowCount; row++) {
                    viewToModel[row] = new Row(row);
                if (isSorting()) {
                    Arrays.sort(viewToModel);
            return viewToModel;
        public int modelIndex(int viewIndex)
            return getViewToModel()[viewIndex].modelIndex;
        private int[] getModelToView()
            if (modelToView == null) {
                int n = getViewToModel().length;
                modelToView = new int[n];
                for (int i = 0; i < n; i++) {
                    modelToView[modelIndex(i)] = i;
            return modelToView;
        // TableModel interface methods
        public int getRowCount() {
            return (tableModel == null) ? 0 : tableModel.getRowCount();
        public int getColumnCount() {
            return (tableModel == null) ? 0 : tableModel.getColumnCount();
        public String getColumnName(int column) {
            return tableModel.getColumnName(column);
        public Class getColumnClass(int column) {
            return tableModel.getColumnClass(column);
        public boolean isCellEditable(int row, int column) {
            return tableModel.isCellEditable(modelIndex(row), column);
        public Object getValueAt(int row, int column) {
            return tableModel.getValueAt(modelIndex(row), column);
        public void setValueAt(Object aValue, int row, int column) {
            tableModel.setValueAt(aValue, modelIndex(row), column);
        // Helper classes
        private class Row implements Comparable {
            private int modelIndex;
            public Row(int index) {
                this.modelIndex = index;
            public int compareTo(Object o) {
                int row1 = modelIndex;
                int row2 = ((Row) o).modelIndex;
                for (Iterator it = sortingColumns.iterator(); it.hasNext();) {
                    Directive directive = (Directive) it.next();
                    int column = directive.column;
                    Object o1 = tableModel.getValueAt(row1, column);
                    Object o2 = tableModel.getValueAt(row2, column);
                    int comparison = 0;
                    // Define null less than everything, except null.
                    if (o1 == null && o2 == null) {
                        comparison = 0;
                    } else if (o1 == null) {
                        comparison = -1;
                    } else if (o2 == null) {
                        comparison = 1;
                    } else {
                        comparison = getComparator(column).compare(o1, o2);
                    if (comparison != 0) {
                        return directive.direction == DESCENDING ? -comparison : comparison;
                return 0;
        private class TableModelHandler implements TableModelListener {
            public void tableChanged(TableModelEvent e) {
                // If we're not sorting by anything, just pass the event along.            
                if (!isSorting()) {
                    clearSortingState();
                    fireTableChanged(e);
                    return;
                // If the table structure has changed, cancel the sorting; the            
                // sorting columns may have been either moved or deleted from            
                // the model.
                if (e.getFirstRow() == TableModelEvent.HEADER_ROW) {
                    cancelSorting();
                    fireTableChanged(e);
                    return;
                // We can map a cell event through to the view without widening            
                // when the following conditions apply:
                // a) all the changes are on one row (e.getFirstRow() == e.getLastRow()) and,
                // b) all the changes are in one column (column != TableModelEvent.ALL_COLUMNS) and,
                // c) we are not sorting on that column (getSortingStatus(column) == NOT_SORTED) and,
                // d) a reverse lookup will not trigger a sort (modelToView != null)
                // Note: INSERT and DELETE events fail this test as they have column == ALL_COLUMNS.
                // The last check, for (modelToView != null) is to see if modelToView
                // is already allocated. If we don't do this check; sorting can become
                // a performance bottleneck for applications where cells 
                // change rapidly in different parts of the table. If cells
                // change alternately in the sorting column and then outside of            
                // it this class can end up re-sorting on alternate cell updates -
                // which can be a performance problem for large tables. The last
                // clause avoids this problem.
                int column = e.getColumn();
                if (e.getFirstRow() == e.getLastRow()
                        && column != TableModelEvent.ALL_COLUMNS
                        && getSortingStatus(column) == NOT_SORTED
                        && modelToView != null) {
                    int viewIndex = getModelToView()[e.getFirstRow()];
                    fireTableChanged(new TableModelEvent(TableSorter.this,
                                                         viewIndex, viewIndex,
                                                         column, e.getType()));
                    return;
                // Something has happened to the data that may have invalidated the row order.
                clearSortingState();
                fireTableDataChanged();
                return;
        private class MouseHandler extends MouseAdapter {
            public void mouseClicked(MouseEvent e) {
                JTableHeader h = (JTableHeader) e.getSource();
                TableColumnModel columnModel = h.getColumnModel();
                int viewColumn = columnModel.getColumnIndexAtX(e.getX());
                int column = columnModel.getColumn(viewColumn).getModelIndex();
                if (column != -1) {
                    int status = getSortingStatus(column);
                    if (!e.isControlDown()) {
                        cancelSorting();
                    // Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
                    // {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
                    status = status + (e.isShiftDown() ? -1 : 1);
                    status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
                    setSortingStatus(column, status);
        private static class Arrow implements Icon {
            private boolean descending;
            private int size;
            private int priority;
            public Arrow(boolean descending, int size, int priority) {
                this.descending = descending;
                this.size = size;
                this.priority = priority;
            public void paintIcon(Component c, Graphics g, int x, int y) {
                Color color = c == null ? Color.GRAY : c.getBackground();            
                // In a compound sort, make each succesive triangle 20%
                // smaller than the previous one.
                int dx = (int)(size/2*Math.pow(0.8, priority));
                int dy = descending ? dx : -dx;
                // Align icon (roughly) with font baseline.
                y = y + 5*size/6 + (descending ? -dy : 0);
                int shift = descending ? 1 : -1;
                g.translate(x, y);
                // Right diagonal.
                g.setColor(color.darker());
                g.drawLine(dx / 2, dy, 0, 0);
                g.drawLine(dx / 2, dy + shift, 0, shift);
                // Left diagonal.
                g.setColor(color.brighter());
                g.drawLine(dx / 2, dy, dx, 0);
                g.drawLine(dx / 2, dy + shift, dx, shift);
                // Horizontal line.
                if (descending) {
                    g.setColor(color.darker().darker());
                } else {
                    g.setColor(color.brighter().brighter());
                g.drawLine(dx, 0, 0, 0);
                g.setColor(color);
                g.translate(-x, -y);
            public int getIconWidth() {
                return size;
            public int getIconHeight() {
                return size;
        private class SortableHeaderRenderer implements TableCellRenderer {
            private TableCellRenderer tableCellRenderer;
            public SortableHeaderRenderer(TableCellRenderer tableCellRenderer) {
                this.tableCellRenderer = tableCellRenderer;
            public Component getTableCellRendererComponent(JTable table,
                                                           Object value,
                                                           boolean isSelected,
                                                           boolean hasFocus,
                                                           int row,
                                                           int column) {
                Component c = tableCellRenderer.getTableCellRendererComponent(table,
                        value, isSelected, hasFocus, row, column);
                if (c instanceof JLabel) {
                    JLabel l = (JLabel) c;
                    l.setHorizontalTextPosition(JLabel.LEFT);
                    int modelColumn = table.convertColumnIndexToModel(column);
                    l.setIcon(getHeaderRendererIcon(modelColumn, l.getFont().getSize()));
                return c;
        private static class Directive {
            private int column;
            private int direction;
            public Directive(int column, int direction) {
                this.column = column;
                this.direction = direction;
    }

    The table listens to the TableModel for changes. Changing the table by adding/removing
    rows or columns has no affect on its table model. If you make changes to the table model
    the table will be notified by its TableModelListener and change its view. So tell
    MyTableModel about the change of data:
    public class TableSorterDemo implements ActionListener
        MyTableModel tableModel;
        public TableSorterDemo()
            defaultListModel = new DefaultListModel();
            init1();
            tableModel = new MyTableModel(defaultListModel);
            TableSorter sorter = new TableSorter(tableModel);
        public void actionPerformed(ActionEvent ae)
            if (ae.getSource()==clickMe)
                defaultListModel.removeAllElements();
                init2();
                tableModel.fireTableStructureChanged();
    }

  • Problem when migrate from WLI2.1 to WLI7

    I met this problem when migrating my program from WLI2.1 to WLI7.
    It report the following exception in WLI7:
    <2002-10-21 &#19979;&#21320;05&#26102;05&#20998;15&#31186;> <Error> <HTTP> <101019>
    <[ServletContext(id=5904188,name=dkh
    ,context-path=/dkh)] Servlet failed with IOException
    java.rmi.AccessException: Security Violation: User: 'admin' has insufficient permission
    to
    access EJB: type=<ejb>, application=WebLogic Integration, module=WLI-BPM Server,
    ejb=WLPI
    Principal, method=getRolesForUser, methodInterface=Remote, signature={java.lang.String,jav
    a.lang.String,boolean}.
    But it's fine in WLI2.1? Who can tell me why and how to solve it?
    Thanks

    ####<13 oct. 2004 17 h 05 CEST> <Info> <JMS> <ucwwe2> ><ucwls81> <WrapperSimpleAppMain> <<WLS Kernel>> <> <BEA->040114> <JMSServer "JMSServer", Finished scan of file >store "persistence" in directory "c:\bin\bea\jmsstore".                     >Found 2 025 records totalling 21 205 248 bytes.>
              >####<13 oct. 2004 17 h 05 CEST> <Info> <JMS> <ucwwe2> ><ucwls81> <WrapperSimpleAppMain> <<WLS Kernel>> <> <BEA->?040056> <JMSServer "JMSServer". Deleting 2025 messages(s) with no matching destination.>
              My JMS experience on WLS 8.1 ain't great, purley from these error messages it looks like the destination of these messages is the problem. Can you double check the destination exists and is configured correctly.
              Hoos
              www.orbism.com

Maybe you are looking for

  • Can not create the connection in the enrironment!!

    hello,every one: please see the following code:           Environment *env = Environment::createEnvironment(Environment::OBJECT);           Connection *conn = env->createConnection(userName,password,connectString); try //use the conn           catch

  • How to upload Unicode encoding files from web?

    Hi everyone, I do not manage to upload Unicode encoding CSV files from web. Currently I use class CL_HTMLB_MANAGER to upload file from web. It works fine with ANSI encoding files, but file content is not uploaded correctly with Unicode encoding files

  • FB60 + SIMULATION + BADI OR USER EXIT

    Hi, I am looking for an exit (user exit or badi) to be triggered when i click on simulation button for FB60 (or FV60) transaction in order to check the vendor in lfbk table. when i used the class cl_exithandler, i found the badi PPA_CUST_BADI . i hav

  • How to display result in the same portlet

    Hi, I've a dynamic page with some links in there. I want to display the results of the links in the same portlet. Can anyone please let me know how can I achieve this? Thanks in advance. Regards, Jatinder

  • Applet Permissions

    Even though i have a signed applet, I'm getting various java security exceptions. I am trying to use a File Chooser and save files on the client side. I have modified my java.policy file to prevent these problems while I'm developing the applet, alth