Exception in Sun App Server 9

Hi ,
i was wondering why i get this stacktrace below when i access JSP page
[#|2006-10-25T10:58:40.919+0800|SEVERE|sun-appserver-pe9.1|javax.enterprise.system.container.web|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;_RequestID=b573afc9-2776-432e-a955-15a99f9cff71;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
     at com.sun.faces.renderkit.html_basic.ButtonRenderer.getClearHiddenFieldScript(ButtonRenderer.java:313)
     at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:212)
     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent(PopupCalendarRenderer.java:328)
     at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupCalendarRenderer.java:213)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.renderer.PanelGroupRenderer.encodeChildren(PanelGroupRenderer.java:61)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableColumnRenderer.encodeChildren(TableColumnRenderer.java:173)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableRowGroupRenderer.encodeChildren(TableRowGroupRenderer.java:185)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableRenderer.encodeChildren(TableRenderer.java:157)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:241)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:893)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:241)
     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:153)
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
     at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at biz.autoscan.ils.security.SecurityFilter.doFilter(SecurityFilter.java:76)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
     at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
But it was working fine when i use app server bundled with the Creator

i dont know if this is related to the popup calendar thingy as u can see
at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent( PopupCalendarRenderer.java:328)
at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupC alendarRenderer.java:213)
Here is my structure of my JSP page but this error doesnt happen for all the pages.. only certain pages that has a ajax popup calendar bind to the table.
Login.jsp ---> ( FilterPage.jsp) ( there is always a filter for every page ) -->SearchA.jsp
my SearchA.jsp structure would as below
-propertysheet
       -propertysection
              -property
                     -table
                          -column1
                            ajax auto complete
                          -column2
                             static text
                          - column3
                             static text ( showing date )
                             group panelDate
                                  popupCalendar
                                  msgforPopupCalendarHere is the subsequent stacktrace i got in my server.log
[#|2006-10-25T10:58:40.915+0800|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=11;_ThreadName=httpWorkerThread-80-0;_RequestID=b573afc9-2776-432e-a955-15a99f9cff71;|executePhase([b]RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@1bf1be2) threw exception
com.sun.rave.web.ui.appbase.ApplicationException
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601)
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
     at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at biz.autoscan.ils.security.SecurityFilter.doFilter(SecurityFilter.java:76)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
     at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
     at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
     at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
     at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
     at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
     at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
     at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
     at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
Caused by: java.lang.NullPointerException
     at com.sun.faces.renderkit.html_basic.ButtonRenderer.getClearHiddenFieldScript(ButtonRenderer.java:313)
     at com.sun.faces.renderkit.html_basic.ButtonRenderer.encodeBegin(ButtonRenderer.java:212)
     at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:239)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.renderComponent(PopupCalendarRenderer.java:328)
     at com.sun.j2ee.blueprints.ui.popupcalendar.PopupCalendarRenderer.encodeEnd(PopupCalendarRenderer.java:213)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.renderer.PanelGroupRenderer.encodeChildren(PanelGroupRenderer.java:61)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableColumnRenderer.encodeChildren(TableColumnRenderer.java:173)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableRowGroupRenderer.encodeChildren(TableRowGroupRenderer.java:185)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.renderer.TableRenderer.encodeChildren(TableRenderer.java:157)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:241)
     at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:277)
     at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:828)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:80)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at com.sun.rave.web.ui.util.RenderingUtilities.renderComponent(RenderingUtilities.java:88)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encodeChild(LayoutElementBase.java:407)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutComponent.encodeThis(LayoutComponent.java:228)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:208)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutForEach.encode(LayoutForEach.java:169)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase.encode(LayoutElementBase.java:225)
     at com.sun.rave.web.ui.renderer.template.TemplateRenderer.encodeEnd(TemplateRenderer.java:125)
     at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:848)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:893)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
     at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:241)
     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:153)
     at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
     ... 37 more
|#]

Similar Messages

  • JAXRPC.TIE.01 exception from Sun App Server 8.1 for Mozilla client

    Trying to access with Moziall/Firefox web service implementation the simple sayHello stateless session bean sample from J2EE 1.4 tutorial. WSDL parsing works, but when I try to call sayHello, I do get
    JAXRPC.TIE.01: caught exception while handling request: unexpected element name: expected=String_1, actual={urn:Foo}String_1.
    Seems to be a problem with the targetNamespace/typeNamespace stuff.
    My test.html
    <html>
    <head>
    <script src="test.js"></script>
    </head>
    <body>
    <h1>Bart!</h1>
    <form>
    <input type="text" name="bounceThis" value="bounce me">
    <input type="button" onclick="Bounce(document.forms[0].bounceThis.value);" value="Bounce!">
    </form>
    <h3>Results</h3>
    <ol>
    <div id="resultsList">
    <li>nothing yet ...</li>
    </div>
    </ol>
    </body>
    </html>
    My test.js
    var proxy=null;
    var wsdl_uri="/test-ejb/wuerg?WSDL";
    function Bounce(value)
    if(!proxy)
    var listener=
    onLoad: function(aProxy)
    proxy=aProxy;
    proxy.setListener(listener);
    alert("Ok!"); // WSDL parsing worked
    bounceText(value);
    onError: function(aError)
    alert("ERROR in proxy!\n" + aError);
    var fault = aError.data;
    if(fault!=null)
    alert("SOAP Fault:\n" +
    "\nfaultCode: " + fault.faultCode +
    "\nfaultString: " + fault.faultString +
    "\nfaultString: " + fault.detail
    sayHelloCallback : function(aValue)
    aValue=("<li>" + aValue + "</li>" +
    document.getElementById("resultsList").innerHTML);
    document.getElementById("resultsList").innerHTML=aValue;
    createProxy(listener);
    } else {
    bounceText(value);
    function createProxy(aCreationListener)
    try
    var factory = new WebServiceProxyFactory();
    factory.createProxyAsync(wsdl_uri, "WuergPort", "", true, aCreationListener);
    //factory.createProxyAsync(wsdl_uri, "HelloIFPort", "", true, aCreationListener);
    catch(ex)
    alert("ERROR in createProxy()!\n" + ex);
    function bounceText(value)
    if(proxy)
    //proxy.sayHello(value);
    proxy.sayHello("wuerg");
    else
    alert("ERROR in bounceText()!\n" + "Proxy set up not complete!");
    My WSDL
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:Foo" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="WuergService" targetNamespace="urn:Foo">
    <types/>
    <message name="Wuerg_sayHello">
    <part name="String_1" type="xsd:string"/></message>
    <message name="Wuerg_sayHelloResponse">
    <part name="result" type="xsd:string"/></message>
    <portType name="Wuerg">
    <operation name="sayHello" parameterOrder="String_1">
    <input message="tns:Wuerg_sayHello"/>
    <output message="tns:Wuerg_sayHelloResponse"/></operation></portType>
    <binding name="WuergBinding" type="tns:Wuerg">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <operation name="sayHello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></input>
    <output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></output></operation></binding>
    <service name="WuergService">
    <port name="WuergPort" binding="tns:WuergBinding">
    <soap:address location="http://localhost:5000/test-ejb/wuerg" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>
    The WSDL is generated with J2EE 1.4 Sun RI wscompile, no wsi feature.
    Interesting thing: same sample deployed at WebSphere 6.0 works fine with Mozilla! So I guess WebSphere is a bit more sloppy or so in processing incoming SOAP requests ...
    Perhaps anybody at Sun could try to test a simple web service with Mozilla or Firefox on the client side ...
    Merten

    Maybe someone could help me here.
    The SOAP request/response is here:
    request:
    ... User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040608 Firefox/0.8.0+..Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5..Accept-Language: en-us,en;q=0.5..Accept-Encoding: gzip,deflate..Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7..Keep-Alive: 300..Connection: keep-alive..SOAPAction: ..Content-Type: text/xml..Content-Length: 430..Pragma: no-cache..Cache-Control: no-cache....<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xs="http://www.w3.org/1999/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"><env:Header/><env:Body><a0:sayHello xmlns:a0="urn:Foo"><a0:String_1 xsi:type="xs:string">wuerg</a0:String_1></a0:sayHello></env:Body></env:Envelope>..
    response:
    <?xml version="1.0" encoding="UTF-8"?>..<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="urn:Foo" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><env:Body><env:Fault><faultcode>env:Client</faultcode><faultstring>JAXRPC.TIE.01: caught exception while handling request: unexpected element name: expected=String_1, actual={urn:Foo}String_1</faultstring></env:Fault></env:Body></env:Envelope>..0....
    This is a working request (from MS SOAP Toolkit)
    ... Content-Type: text/xml; charset="UTF-8"..User-Agent: SOAP Toolkit 3.0...
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAPSDK4:sayHello xmlns:SOAPSDK4="urn:Foo"><String_1>Rums!</String_1></SOAPSDK4:sayHello></SOAP-ENV:Body></SOAP-ENV:Envelope>
    So, the "String_1" parameter is really send in different ways. :-)
    Again, WebSphere 6.0 seems to accept both "formats".
    Thanx for any help.
    Merten

  • Running Sun App Server 7 and 8 on the same box

    Hello,
    Are there any known issues with running Sun App Server 7 and 8 in the same host box ? Currently I am encountering some class not found exceptions with Sun App Server 8 . Sun App Server 7 runs just fine.
    Thanks,
    Aswin.

    It's not advisable to run separate installations of
    ColdFusion 7 and ColdFusion 8 single server on the same machine the
    re are several services that will try to use the same ports.
    However, you can install ColdFusion Enterprise using the
    multi-server configuration and then deploy the J2EE versions of
    ColdFusion to JRun. You can change the JVM that each instance uses
    (we recommend the latest 1.4 for CF7 and the latest 1.6 for CF8),
    and everything should run fine.
    ColdFusion itself is essentially just a J2EE application, the
    J2EE server itself is JRun 4. So the specific answer to your
    question is "don't install 2 copies of JRun 4 to the same machine".
    But yes, it's 100% possible, I'm running this configuration in my
    own development environment.

  • Exceptions trying to run JSF on Sun App Server

    Hi!
    I have downloaded the Sun App Server and am trying to run the JSF Sample on it. The first page comes up fine, and when I enter data, it processes but does not come back with the response. I get the following errors:
    java.lang.ClassNotFoundException: com.sun.faces.application.StateManagerImpl$TreeNode
    java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
    java.lang.IllegalStateException: No FacesContext is available to process this request.
    Not sure if this is the right forum..
    Thanks

    Make sure you started the default server. Try
    http://localhost:8080. This will allow you to see if the appserver is running. The first page is a jsp an will run regardless of if the server is running. To start the defaul server look at you windows menu under Sun Microsystems.

  • Deploying a WAR file to Sun App Server 8.1 PE

    So I thought that if I downloaded Sun App Server PE 8.1 and put it on my soon-to-be production machine, it should be pretty easy right?
    Nope. So I have JSC update 6 (which includes Sun Application Server 8.0) (God how I wish there was a catchy name like Tomcat or something)
    And I have a machine running a good copy, installed and everything, of Sun Application Server 8.1 Platform Edition (another catchy name) up on the production target.
    I create a WAR file in JSC, scp it up.
    Then try to deploy it - so I get bit by the no DB connection thing.
    Ok, but when I copy each of my connection's attributes (the driver (which I did copy up to the lib directory) is MySQL's Connector/J)
    I copy the username, password, URL and DriverClass attributes to the connection pool.
    I still get a
    "Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Class name is wrong or classpath is not set for : com.sun.sql.datasource.DriverAdapter"
    when I try to Ping the ConnectionPool
    I have javax.sql.DataSource as the resource type... (same as 8.0 uses)
    what JAR file is DriverAdapter in? anyone know?
    cheers,
    Kris

    Okay. mysql folks - this works......
    here's what happened, on the production server, different from the dev machine....
    mysql 4.1.9
    sun application server platform edition PE 8.1
    connector/j - latest
    and on the dev machine: JSC Update 6 and the app works fine on the dev machine.
    first, there is a JAR file in ~whatever/Create/SunAppServer/lib/ named
    driveradaptor.jar
    and it it comtains
    com.sun.sql.datasource.DriverAdapter
    which 8.1 ain't got
    and should be copied up to
    /installdir/SunAppServer/domains/domain1/lib/ext/driveradapter.jar
    (domain1 is your app svr domain that runs your app.)
    your Connector/J JAR needs to go here too. I used:
    mysql-connector-java-3.2.0-alpha-bin.jar
    downloaded from mysql.com.
    and then there is the whole thing about Added Properties in the Connection Pool page inside the 8.1 Admin Console (which is nice work guys). Gawd, I added a bunch of properties and am, frankly, not sure which ones actually work (for the Ping, for the initial connection creation and the eventual successful connection all seem to use different combinations...)
    and I found this in the domain's domain.xml once all the admin console page filling was done - but you'll need to add each one as a Property in the connection pool:
    <jdbc-connection-pool connection-validation-method="auto-commit" datasource-classname="com.sun.sql.datasource.DriverAdapter" fail-all-connections="false" [blah...]
    <property name="Username" value="root"/>
    <property name="Password" value="secret"/>
    <property name="ValidationQuery" value="SELECT 1"/>
    <property name="DriverClassName" value="com.mysql.jdbc.Driver"/>
    <property name="LoginTimeout" value="0"/>
    <property name="Url" value="jdbc:mysql://localhost/databasename?autoReconnect=true"/>
    <property name="User" value="root"/>
    <property name="password" value="secret"/>
    <property name="PasswordCredential" value="secret"/>
    </jdbc-connection-pool>
    (and you see how User and Username and username are all the same thing? well, different parts of 8.1 seem to use different attributes...)
    Just keep Adding Properties in the connection pool until you get them all....
    Oh and, the two key class references for the pool are:
    datasource class: com.sun.sql.datasource.DriverAdapter
    resource type: javax.sql.ConnectionPoolDataSource
    Finally: in the /installdir/SunAppServer/domains/domain1/applications/j2ee-modules/YourAppName/WEB-INF/
    your 'sun-web.xml' (don't delete it, like some have advocated, I think that wrong) needs to look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
    <sun-web-app xmlns="http://java.sun.com/xml/ns/j2ee">
    <context-root>/yourcontext</context-root>
    <resource-ref>
    <res-ref-name>jdbc/Yourname</res-ref-name>
    <jndi-name>jdbc/Yourname</jndi-name>
    <default-resource-principal>
    <name>root</name>
    <password>secret</password>
    </default-resource-principal>
    </resource-ref>
    </sun-web-app>
    and I think that's all of it. the only Bug I would I would say is that the sun-web.xml should have the right res-ref-name, but then I think the Creator Team knows this and will fix it sometime soon.
    cheers,
    and Roger Federer lost in the Aussie Open. (I think he lost tomorrow too, that whole time zone thing being so damn Einsteinian...)
    -Kristofer

  • Sun app server problem using asadmin tool

    I have installed sun app server and trying to do the simplemessage tutorial. When I run the
    ant create-cfcommand I get the following
    [exec] Invalid user or password
    [exec] CLI137 Command create-jms-resource failed.I have put an echo line in app-server-ant.xml to see what the command is and it is.
    [echo] c:/Sun2/SDK/bin/asadmin.bat create-jms-resource --user admin  --passwordfile C:/Sun2/SDK/javaee-5-doc-tutorial-1.0_03/javaeetutorial5/examples/common/admin-password.txt --host localhost --port 4850 --restype javax.jms.ConnectionFactory --enabled=true jms/ConnectionFactoryI have checked the password file and it is
    AS_ADMIN_PASSWORD=adminadminAny ideas?
    I have checked around about using parameter password but when running this I get an error saying this is not valid and that I should use passwordfile
    Kelvin

    You haven;t specified the exceptions you r getting ........while starting your default server.
    if u r getting exception about InetClass then connect your system with LAN/Internet then your problem will be solved becoz i m using same location address as you specified, space doesn't matter at all - i think so, it is running fine........

  • Integrating Sun App Server with WebSphere MQ

    Hi,
    I am using Sun App server V8.1 . I also have a websphere MQ v5.3 installed in my system. I want to integrate this MQ with the App server.
    I created a queueManager and a Queue in MQ and using the JMSAdmin console of the Mq, i created jndi lookup resources using INITIAL_CONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory
    In the application server side, i created a Resource adapter using the command:
    create-resource-adapter-config --property SupportsXA=true:ProviderIntegrationMode=jndi:RMPolicy=OnePerPhysicalConnection:JndiProperties=java.naming.factory.url.pkgs\\=com.ibm.mq.jms.naming,java.naming.factory.initial\\=com.sun.jndi.fscontext.RefFSContextFactory,java.naming.provider.url\\=file\\:D\\:\\MQ:LogLevel=finest mqra
    Then i deployed this resource adaptor using the command :
    deploy name mqra target server "D:\Sun\AppServer\lib\addons\resourceadapters\genericjmsra\genericra.rar"
    Using this resource adapter i created a connection pool, connector resource and an admin object using the commands
    create-connector-connection-pool raname mqra connectiondefinition javax.jms.QueueConnectionFactory transactionsupport  XATransaction property ConnectionFactoryJndiName=MQQCF mymqpool
    create-connector-resource --poolname mymqpool jms/MyMqQCF
    create-admin-object raname mqra restype javax.jms.Queue --property DestinationJndiName=RTQueue jms/MyMqQueue
    After that, i wrote a java code to lookup these resources and put a message into the queue.
    This is the snippet of my java code
    InitialContext ic = new InitialContext();
    QueueConnectionFactory cnxFact = (QueueConnectionFactory)ic.lookup("jms/MyMqQCF");
    Queue qu = (Queue)ic.lookup("jms/MyMqQueue");
    try {               
    QueueConnection qConn = cnxFact.createQueueConnection();
    QueueSession qSess = qConn.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    QueueSender qSend = qSess.createSender(qu);
    TextMessage msg = qSess.createTextMessage();
    msg.setText("1");
    qSend.send(msg);
    qConn.close();
    I am getting an exception in the line, QueueConnection qConn = cnxFact.createQueueConnection();
    here is the stack trace
    java.lang.ClassCastException: com.ibm.mq.jms.MQQueueConnectionFactory
    at com.sun.genericra.outbound.ManagedQueueConnectionFactory.createXAConnection(ManagedQueueConnectionFactory.java:45)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createPhysicalConnection(AbstractManagedConnectionFactory.java:127)
    at com.sun.genericra.outbound.AbstractManagedConnectionFactory.createManagedConnection(AbstractManagedConnectionFactory.java:111)
    at com.sun.enterprise.resource.ConnectorAllocator.createResource(ConnectorAllocator.java:90)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getUnenlistedResource(IASNonSharedResourcePool.java:437)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:355)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:250)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:213)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:174)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:286)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:145)
    at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:121)
    at com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:69)
    at com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:101)
    Can anybody help???

    bump
    update:
    So to avoid this problem I added spring.jar to the server classpath. that got rid of this message but then it started complaining that its missing struts2 core jar..i added that in server classpath as well...I did same for 4 other files and in the end it said 'bean for xwork has already been initialized' (because all these jars are in the application as well).
    So I am stuck. if I add all jars to server classpath..it says beans have already been initialized. If I take out the jars from server classpath then it says that stuff is missing (eg. contextLoader.properties missing - orig post)
    again, all this goes away when I restart the server..so i am just trying to avoid having to restart server every code change.

  • Is soap provider agent only available for Sun app server 9.1?

    See the blue print on securing web services with soap provider agent. Is this agent embedded within the J2EE agent for sun app server 9.1? Is the same "soap provider agent" available for websphere 6.x or iis server?
    Thanks

    the agentadmin --install script does not seem to add all the required things to the server-classpath in the domain.xml
    mine now looks like this:
    /opt/j2ee_agents/appserver_v9_agent/lib/agent.jar
    /opt/j2ee_agents/appserver_v9_agent/locale
    /opt/j2ee_agents/appserver_v9_agent/Agent_001/config
    /opt/j2ee_agents/appserver_v9_agent/lib/amclientsdk.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/fmclientsdk.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/opensso-installtools.jar
    /opt/j2ee_agents/appserver_v9_agent/lib/opensso-installtools-launcher.jar
    AND, I've added a system property:
    -Dcom.sun.identity.agents.config.location=/opt/j2ee_agents/appserver_v9_agent/Agent_001/config/AMAgent.properties
    I now at least get a different error:
    Servlet.service() for servlet jsp threw exception
    java.lang.ExceptionInInitializerError
         at com.sun.identity.agents.filter.URLPolicyTaskHandler.initialize(URLPolicyTaskHandler.java:63)
    com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2114)
    Caused by: java.lang.RuntimeException: Exception caught in AmWebPolicyManager initializer: Unable to load IAmWebPolicy: com.sun.identity.agents.policy.AmWebPolicy
         at com.sun.identity.agents.policy.AmWebPolicyManager.<clinit>(AmWebPolicyManager.java:135)
         ... 24 more

  • "Message Driven Bean" doesn't work with Sun App Server

    Hello all,
    i have a little bit problems, running a simple "Message Driven Bean" under the Sun App Server. The deployment of it works fine, but after starting the SUN App Server i get the following error message:
    An error occurred during the message-driven beancontainer initialization at runtime. The most common cause for this is that the physical resource(e.g. Queue) from which the message-driven bean is consuming either does not exist or has been configured incorrectly. Another common error is that the message-driven bean implementation class does not correctly implement the required javax.ejb.MessageBean or MessageListener interfaces.
    Has anybody a workaround for this problem?
    The queue seems to be correctly installed. A simple client programm from the Sun Tutorial (Consumer & Producer) works fine without any Errors or Exceptions.
    I am a little bit confused, because the queue seems to work with the client programms but not with a MDB running on the SUN App Server.
    Thanks for you help!
    Greetings
    Manuel

    Hello Mr Manuel!
    could you plz help me with the steps for creating a message driven bean using netbeans ver 5.0(with Sun Java� System Application Server Platform Edition 8.2 )
    I just know how to work with Session beans & Entity Bean, and am try to learn to work on Message Driven Beans too. there are no proper tutorials where i can find steps for creating these..
    I need the steps from the scratch.,like creating QueueConnection Factory & Destination etc..
    It will be gr8 if you can help me with this at the earliest .
    Thank you
    Bye

  • Sun App Server 8.1 and 8.2 could not start

    Hi friends, thank for various suggestions. pls i'm having problem with Sun App Server 8.1 and 8.2. I installed Portal 7 on Red Hat Enterprise Linux 3 and also Sun Portal 6 on Suse Linux 9. The problem is that App server keep giving Login exception after using them for a while. The details is given below:
    after typing ./asadmin start-domain --user admin domain1. Instead of it to give me the password prompt, it threw the following exception:
    INFO: SEC5046: Audit: Authentication refused for [admin]
    Login Failed javax.security. auth.login.LoginException: Failed file for login admin
    CL1156 could not start the domain domain1.
    I always login to the O/S as root.
    Any suggestion will be highly appreciated. Thanks

    Thanks very much kedar.mhaswade for your suggestions.
    I do not have a regular access to the Internet, I
    would have gotten back earlier than this, so i'm
    sorry. Anyway, i checked the content of
    ~/.asadminprefs and the password is not the same with
    the one i'm using. I found the default password
    supplied by Sun but I don't think this could be the
    problem. I'm actually using the App server that is
    bundled with Sun Portal 6 and 7 and so i supplied my
    own password during installation and i've logged in
    several times after installation. It just failed in
    one of those logins and had stopped working since. I
    always encountered the same problem either when using
    Sun Portal 7 or 6 on Red Hat ES 3 and Suse 9
    respectively.
    I'm posting the content of admin-keyfile as you
    requested:
    admin;{SSHA}Qf/m4KEBDPojsP1mkjywE5XZA6SPh7i8WQmV/A==;a
    sadmin
    # Domain User and Password - Do Not Delete Entry
    Above
    So i will so much appreciate your help and i wouldn't
    mind if you could send me your phone number. Thanks.Hi tolulike,
    Even if you supplied your own password, we have this developer friendly
    feature that has side effects that are at times hard to diagnose. Can you
    please
    - rename the .asadminprefs file and make sure that there is no .asadminprefs file in your home directory?
    - attempt to start the domain.
    You should be prompted for the password.
    The idea is that when you've got that file and that entry AS_ADMIN_PASSWORD in your home directory, asadmin will read it
    from there and you land in this (unfortunate) situation.
    Obviously doing this might have some side effects with other domains. This
    is because for all domains, asadmin reads this file as a last resort. So,
    it might so happen that this file is actually required for functioning of your
    other domains.
    But now you know when this file is used, so there is no mystery (hopefully).
    Let me know if this works.
    Thank you.
    Kedar

  • JAX-WS 2.1.1 RI on Sun App Server 8.1

    I'm trying to deploy a JAX-WS 2.1.1 web service on Sun App Server 8.1 and I keep getting these "no such method" exceptions thrown:
    java.lang.NoSuchMethodError:
    javax.xml.soap.MessageFactory.newInstance(Ljava/lang/String;)Ljavax/xml/soap/MessageFactory;
    I've found the javax.xml.soap.MessageFactory class in j2ee.jar packaged with Sun App Server 8.1, which indeed does not have that method. And I've also found javax.xml.soap.MessageFactory in saaj-api.jar that came with the JAX-WS 2.1.1 RI distribution, which does have that method.
    Is there some way to get JAX-WS 2.1.1 RI to play nice in Sun App Server 8.1?

    If possible specify saaj-api.jar before j2ee.jar on your runtime classpath.
    I am not familiar with Sun App Server 8.1. I had to patch domain classpath to resolve similar issues on weblogic. Also, there may be some configuration options to specify which jars get loaded first.

  • Bouncycastle, sun app server 8.1, jar is not signed by a trusted signer

    hi,
    i am facing following problem,
    im trying to use 3rd party security provider signed with SUN, however, after everything is properly configured and i run webapplication code (sun app server 8.1) that should load registered 3rd party provider application crashes with following exception:
    Caused by: java.util.jar.JarException: file:/usr/jdk/instances/jdk1.5.0/jre/lib/ext/bcprov-jdk15-138.jar is not signed by a trusted signer.
         at javax.crypto.SunJCE_d.b(DashoA12275)
         at javax.crypto.SunJCE_d.a(DashoA12275)
         at javax.crypto.SunJCE_d.a(DashoA12275)
         at javax.crypto.SunJCE_b.b(DashoA12275)
         at javax.crypto.SunJCE_b.a(DashoA12275)
         at javax.crypto.SunJCE_b.b(DashoA12275)
         at javax.crypto.Cipher.getInstance(DashoA12275)
         at sk.tempest.anypay.helpers.Sha1Signer.sign(Sha1Signer.java:38)
    this happens with both, bouncycastle and cryptix and both are having valid certrificates
    this is machine specific problem
    does anybody know or solution or at least some information what could cause this?
    Has to be Java Code Signing CA in NSS cert8.db of application server?

    importing public key?
    have you ever seen JCE source code?
    well if you write provider you have to send it to SUN they will sign it,
    with Java Code Signing CA certificate.
    These certficate's other part of asymetric cipher code is hardcoded in jce.jar
    JCESecurity.java.
    I finally solved that configuration problem with making own modified jce.jar.,
    with provider signature checking turned off.
    Btw i think problem was caused with multiple libraries in system using same classes.
    There was some archaic jce.jar in SUNwam or somewhere.

  • Connecting to EJ bean in Sun App Server 8

    I am working my way through the j2eetutorial14, and have successfully built the Converter app. However, I need to run the stand-alone client, connecting to the bean, in a server-independent way. So, as part of my exercise, I copied the client code in Eclipse, and made the following changes to the code:
    from the original example:
    Context initial = new InitialContext();
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);to this:
    Properties properties = new Properties();
    properties.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    properties.put(Context.PROVIDER_URL, "corbaloc:iiop:localhost:3700");
    Context initial = new InitialContext(properties);
    Object objref = initial.lookup("ConverterBean");
    ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(objref, ConverterHome.class);Now I am getting this exception in the narrow() method:
    java.lang.ClassCastException
         at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293)
         at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
         at ConverterClient.main(ConverterClient.java:27)When I run the client from the script:
    appclient -client ConverterAppClient.jarit works as expected. I am obviously missing something in my Eclipse runtime environment, but the manual was of no help so far. (But j2ee.jar library from C:\Sun\AppServer\lib is in the classpath.)
    If anyone successfully connected to the Sun App Server 8 EJB from a stand-alone client and can share their wisdom, I will appreciate it.
    On a more general note, what are the pitfalls to watch for when writing, packaging and distributing an EJB app (bean and stand-alone client) in a server-independent way? Any pointers?
    Thanks for any help.
    Alex.

    Did you have the EJB client JAR in your classpath? Yes, and I spent all day searching the Forums for the clues. I found the answer, and was going to post it here. The client JAR was missing the RMI stubs. The process of generating the stubs is quite cumbersome - at least, the one that I discovered. It involves deploying the EAR first, then going to the Admin Console and manually setting a number of options, then collecting the sought-for JAR from the Sun App Server's applications directory. The generated file will contain the stubs, and also the Home and Remote interface files, as well as the bean class (something that the client will never need). So, I may have to write a script to strip off the needless baggage from the client JAR.
    I have been working with JBoss and its plugin for Eclipse for some time now, and grew spoiled by the ease of deployment there, including the fact that the JBoss/Eclipse combo took care of the RMI stubs and many other things that Sun's server exposes to the developer.
    Anyway, here is my cookbook that I made as I was working through the process of generating the stubs:
    ====================================
    Creating a stand-alone Client:
    The stand-alone client need RMI stubs to communicate with the EJ bean on the server side. To create the stubs:
    1. Start the Admin Console web page (Start > All Programs > Sun Microsystems > Application Server PE > Admin Console). In the left-hand frame select: Applications > Enterprise Applications.
    2 In the right-hand frame, press Deploy button.
    3 Select file to upoad (navigate to the application EAR). Press Next.
    4. Set Application Name field (it should be preset), and check the Generate: RMIStubs checkbox. If this procedure was done before, check the Redeploy box to force generation of the file.
    5. Press OK button.
    The JAR file with stubs will be placed into C:\Sun\AppServer\domains\domain1\applications\j2ee-apps directory.
    The stubs have format _name_Stub.class and _nameHome_Stub.class (e.g. for Converter app the files are ConverterStub.class and ConverterHomeStub.class). These files must be extracted and placed into the client's classpath. Alternatively, the entire JAR file can be made part of the client's classpath.
    ====================================
    Thank you for the quick reply.
    Alex.

  • How to Non-ACC Client connect Sun App Server 8 with SSL

    I have create a Rich Client(Non-ACC) that connect to Sun App Server 8 with IIOP(8001) and is working fine. However, when I try to connect to same server with using SSL (8002) and throw exception during lookup a Bean as below.
    Please help!!
    Server Configuration
    ================
    IIOP Port(s): 8001, 8002, 8003
    All listener ports are enabled
    Client Coding
    ===========
    env.put(javax.naming.Context.PROVIDER_URL, "iiop://"+url);
    env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.appserv.naming.S1ASCtxFactory");
    System.setProperty("javax.net.ssl.keyStoreType", "jks");
    System.setProperty("javax.net.ssl.keyStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\keystore.jks");
    System.setProperty("javax.net.ssl.keyStorePassword", "password");
    System.setProperty("javax.net.ssl.trustStore", "D:\\Sun\\AppServer\\domains\\adsr\\config\\cacerts.jks");
    System.setProperty("javax.net.ssl.trustStorePassword", "password");
    System.setProperty("com.sun.CORBA.connection.ORBSocketFactory", "com.sun.enterprise.iiop.IIOPSSLSocketFactory");
    ic = new InitialContext(env);
    Object objref = ic.lookup("ejb20/statelessSession/EntControllerHome");
    Exception
    ========
    [java] Mar 18, 2005 4:43:59 PM com.sun.corba.ee.spi.logging.LogWrapperBasedoLog
    [java] INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/4645"
    [java] Mar 18, 2005 4:44:00 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl readFully
    [java] WARNING: "IOP00410215: (COMM_FAILURE) Read of full message failed :
    bytes requested = 12 bytes read = 7 max wait time = 300 total time spent waiting = 364"
    [java] org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 215 completed: No
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2629)
    [java] at com.sun.corba.ee.impl.logging.ORBUtilSystemException.transportReadTimeoutExceeded(ORBUtilSystemException.java:2655)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readFully(SocketOrChannelConnectionImpl.java:676)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:545)
    [java] at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.readGIOPHeader(MessageBase.java:119)
    [java] at com.sun.corba.ee.impl.transport.CorbaContactInfoBase.createMessageMediator(CorbaContactInfoBase.java:153)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.readBits(SocketOrChannelConnectionImpl.java:325)
    [java] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.handleEvent(SocketOrChannelConnectionImpl.java:1175)
    [java] at com.sun.corba.ee.impl.transport.SelectorImpl.run(SelectorImpl.java:275)
    [java] javax.naming.CommunicationException: Can't find SerialContextProvider [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 208 c
    ompleted: Maybe]
    [java] at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:133)
    [java] at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:290)
    [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
    [java] at com.shkco.jaf.test.JAFLogonTest.connect(JAFLogonTest.java:110)
    [java] at com.shkco.jaf.test.JAFLogonTest.setUp(JAFLogonTest.java:134)
    [java] at junit.framework.TestCase.runBare(TestCase.java:125)
    [java] at junit.framework.TestResult$1.protect(TestResult.java:106)
    [java] at junit.framework.TestResult.runProtected(TestResult.java:124)

    I don't think tomcat supports the ejb-ref portion of web.xml. If you're using ejbs your best bet is to use a web container within a J2EE implementation.
    --ken                                                                                                                                                                                                                                                                                                                                           

  • HELP - Can't connect to Sun App Server

    Hi,
    I'm confused. The Sun App Server documentation states that the protocol to use in the JNDI context lookup is jms or tcpjms, and that the service runs on port 7676:
    javax.naming.ConfigurationException: Invalid URL: jms://localhost:7676 [Root exception is java.net.MalformedURLException: unknown protocol: jms]
    When I use the other (commented-out) line: iiop://localhost:3700, I get a different error (and I don't think this is the protocol I want to use anyway).
    JNDI API lookup failed: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
    So which is it?? Here is my code...thanks in advance for your help!
    package com.tpc.jms.simpleProducer;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.Hashtable;
    import java.util.Properties;
    public class SimpleJMSTest {
    // public static final String PROVIDER_URL = "iiop://localhost:3700";
    public static final String PROVIDER_URL = "jms://localhost:7676";
    public static final String CONTEXT_FAC = "com.sun.jndi.cosnaming.CNCtxFactory";
    public static void main (String argv[]) {
    try {
    Properties properties = new Properties();
    properties.put(Context.PROVIDER_URL, PROVIDER_URL);
    properties.put(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FAC);
    properties.put(Context.SECURITY_PRINCIPAL, "guest");
    properties.put(Context.SECURITY_CREDENTIALS, "guest");
    InitialContext initialCtx = new InitialContext(properties);
    System.out.println("Good!");
    //TopicConnectionFactory topicConnFactory = (TopicConnectionFactory) initialCtx.lookup (fac);
    //Topic nasdaqTopic = (Topic)initialCtx.lookup(topic);
    /* System.out.println("Creating topic connection");
    TopicConnection topicConnection = topicConnFactory.createTopicConnection();
    topicConnection.start ();
    System.out.println("Creating topic session: not transacted, auto ack");
    TopicSession topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
    System.out.println("Creating topic, subscriber");
    TopicSubscriber nasdaqTopicSubscriber = topicSession.createSubscriber (nasdaqTopic);
    System.out.println ("Ready to subscribe for messages :");
    nasdaqTopicSubscriber.setMessageListener(new SubscriberListener());*/
    catch (Exception e) {
    e.printStackTrace ();
    }

    Hi,
    First of all, you don't use iiop in JMS.
    And also for your problem, did you by any chance forget to create your connectionfactory in the application server?

Maybe you are looking for

  • File not found

    Hi folks, I have created the logical filepath and the physical file. DESCRIBE TABLE REFUND (itab) LINES COUNTK. IF COUNTK GT 0. SORT REFUND BY SSN. CALL FUNCTION 'FILE_GET_NAME'    EXPORTING       LOGICAL_FILENAME = 'Z_XYZ'     WITH_FILE_EXTENSION =

  • TS1702 how can I restore all of my apps from a device restore?

    I recently had issues syncing a movie I purchased on itunes to my ipad. Itunes kept prompting me that the movie could not be synced due to an issue with the file. I found through a google search that I could reinstall my itunes app on my pc or restor

  • Win 8.1 upgrade

    My Twist keeps reminding me to upgrade to Windows 8.1. Has everyone done this, what was your experience? Thank you.

  • SendFailedException: 421 Refused. Your reverse DNS

    I'm sending e-mail confirmations from my website. I'm occasionally getting this SendFailedException: class javax.mail.SendFailedException: 421 Refused. Your reverse DNS entry does not resolve. See: http://my.policy.explanation.url/ I can load the lin

  • Raise the Forest functional level

    I am running one Domain Controller on Windows Server 2012 R2 DataCenter.  Right now both the forest functional level and the domain functional level is at Server 2003.  I want to raise both the forest functional level and the domain functional level