Problem with struts portlet in Portal

Hi,
I would like to make a struts app as a portlet in bea portal.
But when I try to make it using standard wizard to create Struts portlet
after point struts-config.xml I get "Cannot parse the struts configuration file".
What is wrong ? (I tried with many different struts-config.xml files, it doesn't
work)
I can't find any error details. in workshop files ?
I have bea Workshop 8.1.
Any help ?
Thanks,
Tom

Ok I found solution on
weblogic.developer.interest.portal.struts
but where are error details ? which file ?
"tmm" <[email protected]> wrote:
>
Hi,
I would like to make a struts app as a portlet in bea portal.
But when I try to make it using standard wizard to create Struts portlet
after point struts-config.xml I get "Cannot parse the struts configuration
file".
What is wrong ? (I tried with many different struts-config.xml files,
it doesn't
work)
I can't find any error details. in workshop files ?
I have bea Workshop 8.1.
Any help ?
Thanks,
Tom

Similar Messages

  • Problem with LDAP in BEA Portal

    Problem with LDAP in BEA Portal
    I have a list of 50 user which should be cerated in portal staging(devlopment) machine and should be transfered to
    production machine using LDAP
    Steps which i followed to create Users
    1.Create User Profile with 2 parameters branch and Role
    2.I have list user in the Xls file with Username,password ,branch and Role
    3.Write a java File which will read the Xls File
    4.The users are created in the staging machine for the portal
    Steps which i followed in LDAP to tranfer the created User form Devlopment to Production
    1.Export the created user from Devlopment (which was moved as .DAT in my local directory)
    2.import the user from local direcory to production machine
    The Users are imported in the production machine with username and password but the role and branch values are empty
    We need a solution for importing the user with role and branch corresponding to each user.
    Thanks in Adv
    Suresh

    In Portal 8.1, user name and password in stored in LDAP where as user profile values are stored in database. That is the reason you are not able to see the user profile values.
    Check once again whether you can see these values through admin tool. In case,it is not(after confirmation again),you might have to use APIs to do this for you incase you dont want to manage through Admin Tool.
    Thanks,
    Prashanth Bhat.

  • A problem with struts -  DispatchAction class

    Hi,
    I am facing a problem with DispatchAction class in struts 1.1.
    Here is my senario:
    I have a two classes that extend DispatchAction - classA and classB.
    In classA, I have a start method. In classB, I have two methods - display and submit.
    When my application starts, my index.jsp does a logic:forward to the struts-config.xml file.
    e.g.:
    index.jsp<logic:forward name="startApp"/>
    struts-config.xml<form-beans>
         <form-bean name="testFormBean" type="package.testFormBean">
         </form-bean>
    </form-beans>
    <global-forwards>
         <forward name="startApp" path="/startApp.do?method=start"/>
    </global-forwards>
    <action-mappings>
         <action name="testFormBean"
    path="/startApp"
    parameter="method"
    validate="false"
    scope="request"
    type="package.StartAppActions">
         <forward name="successOneUser" path="/runSearch.do?method=display"/>
         </action>
         <action name="testBean"
    path="/runSearch"
    parameter="method"
    validate="false"
    scope="request"
    type="package.SearchActions">
                   <forward name="success" path="/html/jsps/success.jsp"/>
         </action>
    </action-mappings>
    when my application starts, the control goes to the index.jsp and then because of the logic forward goes to the start method of the /startApp action(i.e. the StartAppActions class). I return a ActionForward element with the value of "successOneUser".
    Uptill this point everything works fine.
    But now it should go the /runSearch element (i.e. SearchActions class) and the display method of it. But it is not going there. The error I am getting is action[runSearch] does not have a method named "start".
    I checked the value for the method parameter using the RAD/WSAD debugger, the value of parameter is "method" is still "start".
    I do not understand why it is not overiding the value of parameter "method" with display even though I am doing a
    <forward name="successOneUser" path="/runSearch.do?method=display"/> in the /startApp element, which should send the control to the display method of the [runSearch] element (i.e. in the startActions class).
    Can anyone tell me what the problem is ?
    Thanks in advance.
    kaushal

    Try this:
    Runtime.getRuntime().exec("your_batch_file.bat");
    where your_batch_file is:
    SET CLASSPATH=....(place all needed classes here)
    javac.exe filename
    must work,but there is some limitation...
    you must think to solve this problems.
    i hope that will help,
    Marius

  • Weird problem with role assignment in Portal

    Hi,
    In our newly installed Portal for eRecruitment Production System we encounter a weird problem with assigning roles to users.
    When I open User Administration and search for roles, it displays the Portal roles perfectly.
    However, when I search for a user in User Administration and click on it when found, I am unable to find any roles to assign! So I am unable to find any roles, when I want to modify the assigned roles for a particular user, while the roles do exist and can be found on its own. How is this possible? Am I missing something here?
    We have installed SPS 15 and use ABAP as user store. We have used reverse proxy and web dispatchers in this case.
    Thanks in advance and best regards,
    Jan Laros

    Found some entries in the default trace from this morning:
    #1.#005056A15F78006A000004F400006D310004520B11DB3CE8#1216107404407#com.sap.security.core.jmx.impl.CompanyPrincipalFactory#sap.com/tc~wd~dispwda#com.sap.security.core.jmx.impl.CompanyPrincipalFactory.static Set evaluateDatasourcesToSearchFor(String[] requestDatasourceIds,     String privateType, Locale locale)#JALAROS#58762##nun.efteling.nl_POP_9750151#JALAROS#581700b0524011ddc029005056a15f78#SAPEngine_Application_Thread[impl:3]_36##0#0#Error##Java###Error while connecting to remote producer {0}
    [EXCEPTION]
    {1}#2#PRODUCER_0KTHQ3YTJV#com.sap.security.core.persistence.remote.CommunicationException: Cannot display remote roles of selected producer. The producer has removed your consumer instance from their portal.
            at com.sap.portal.ivs.global.roles.RemoteProducerAccessImpl.sendToRemote(RemoteProducerAccessImpl.java:497)
            at com.sap.portal.ivs.global.roles.RemoteProducerAccessImpl.checkConnectivity(RemoteProducerAccessImpl.java:220)
            at com.sap.security.core.jmx.impl.CompanyPrincipalFactory.evaluateDatasourcesToSearchFor(CompanyPrincipalFactory.java:656)
            at com.sap.security.core.jmx.impl.CompanyPrincipalFactory.simplePrincipalSearchByDatasources(CompanyPrincipalFactory.java:3172)
            at com.sap.security.core.jmx.impl.JmxSearchHelper.getSimpleEntitySearchResult(JmxSearchHelper.java:74)
            at com.sap.security.core.jmx.impl.JmxSearchHelper.calculateSimpleEntityTable(JmxSearchHelper.java:1182)
            at com.sap.security.core.jmx.impl.JmxServer.calculateSimpleEntityTableByDatasources(JmxServer.java:1061)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.pj.jmx.introspect.DefaultMBeanInvoker.invoke(DefaultMBeanInvoker.java:58)
            at javax.management.StandardMBean.invoke(StandardMBean.java:286)
            at com.sap.pj.jmx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:944)
            at com.sap.pj.jmx.server.interceptor.MBeanServerWrapperInterceptor.invoke(MBeanServerWrapperInterceptor.java:288)
            at com.sap.engine.services.jmx.CompletionInterceptor.invoke(CompletionInterceptor.java:409)
            at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.invoke(BasicMBeanServerInterceptor.java:277)
            at com.sap.jmx.provider.ProviderInterceptor.invoke(ProviderInterceptor.java:258)
            at com.sap.engine.services.jmx.RedirectInterceptor.invoke(RedirectInterceptor.java:340)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:287)
            at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:776)
            at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:330)
            at com.sap.security.core.jmx._gen.IJmxServer$Impl.calculateSimpleEntityTableByDatasources(IJmxServer.java:717)
            at com.sap.security.core.wd.jmxmodel.JmxModelCompInterface.calculateSimpleEntityTable(JmxModelCompInterface.java:396)
            at com.sap.security.core.wd.jmxmodel.wdp.InternalJmxModelCompInterface.calculateSimpleEntityTable(InternalJmxModelCompInterface.java:443)
            at com.sap.security.core.wd.jmxmodel.wdp.InternalJmxModelCompInterface$External.calculateSimpleEntityTable(InternalJmxModelCompInterface.java:746)
            at com.sap.security.core.wd.umeuifactory.UmeUiFactoryCompInterface.getSimpleEntityTable(UmeUiFactoryCompInterface.java:471)
            at com.sap.security.core.wd.umeuifactory.wdp.InternalUmeUiFactoryCompInterface.getSimpleEntityTable(InternalUmeUiFactoryCompInterface.java:517)
            at com.sap.security.core.wd.umeuifactory.wdp.InternalUmeUiFactoryCompInterface$External.getSimpleEntityTable(InternalUmeUiFactoryCompInterface.java:894)
            at com.sap.security.core.wd.relaterole.RelateRoleComp.searchNewRoles(RelateRoleComp.java:259)
            at com.sap.security.core.wd.relaterole.wdp.InternalRelateRoleComp.searchNewRoles(InternalRelateRoleComp.java:282)
            at com.sap.security.core.wd.relaterole.AssignParentRolesView.onActionSearchNewRoles(AssignParentRolesView.java:215)
            at com.sap.security.core.wd.relaterole.wdp.InternalAssignParentRolesView.wdInvokeEventHandler(InternalAssignParentRolesView.java:261)
            at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
            at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
            at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
            at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
            at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
            at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
            at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
            at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1257)
            at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)
            at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:826)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
            at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
            at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
            at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
            at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:180)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    #1.#005056A15F780060000004FD00006D310004520C6A35F87C#1216113181849#com.sap.engine.services.security.roles.SecurityRoleReference##com.sap.engine.services.security.roles.SecurityRoleReference#J2EE_GUEST#0####399cb180524e11dd9849005056a15f78#SAPEngine_Application_Thread[impl:3]_37##0#0#Error#1#/System/Security/Audit/J2EE#Java###{0}: Authorization check for caller assignment to J2EE security role [{1} : {2}] referencing J2EE security role [{3} : {4}].#5#ACCESS.ERROR#service.naming#jndi_all_operations#SAP-J2EE-Engine#administrators#
    #1.#005056A15F78005C00000C0500006D310004520C6A394185#1216113181992#com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl##com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl#J2EE_GUEST#0####39aa6d20524e11ddaee2005056a15f78#SAPEngine_Application_Thread[impl:3]_29##0#0#Error#1#/System/Server#Java###Runtime exception occurred while processing external JMX request [ JMX request (java) v1.0 len: 150 |  src: 2 target-node: 9750150 req: getAttribute params-number: 2 params-bytes: 0 |  ]
    [EXCEPTION]
    {0}#1#com.sap.engine.services.jmx.exception.JmxSecurityException: Caller J2EE_GUEST not authorized, only role administrators is allowed to access JMX
            at com.sap.engine.services.jmx.EngineAuthorization.checkMBeanPermission(EngineAuthorization.java:88)
            at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:77)
            at com.sap.engine.services.jmx.JmxServerFrame.checkMBeanPermission(JmxServerFrame.java:98)
            at com.sap.engine.services.jmx.MessageClientSecurityWrapper.checkPermissions(MessageClientSecurityWrapper.java:76)
            at com.sap.engine.services.jmx.MessageClientSecurityWrapper.invokeMbs(MessageClientSecurityWrapper.java:38)
            at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:196)
            at com.sap.engine.services.jmx.ClusterInterceptor.getAttribute(ClusterInterceptor.java:512)
            at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:84)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
            at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
            at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:313)
            at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199)
            at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
            at java.security.AccessController.doPrivileged(AccessController.java:180)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

  • Problem with Permissions while accessing Portal Content

    Dear All,
    Im facing some problems with the permission in accessing the portal content.
    When i right click on any of the folders in the catalog displayed under the System Administration - > System Configuration -> System Landscape -> Content directory provided by SAP . I get the following Menu options on right click -> NEW -- > Folder, Change ID, Copy, Delete.
    I dont get a option such as NEW --> System(from template) which is important to configure the ABAP ECC 6.0 System with the EP 7.0 to enable logon through  the Portal to access the ABAP  Database through Web browser.
    I have installed EP 7.0 JAVA stack alone separately and ECC 6.0 ABAP stack alone separately.
    I have tried assigning System Admin Role, Super User Role, Group as Administrators. But nothing seems to work.
    Im not sure of the roles to be assigned.
    thanks,
    Deepak
    Edited by: Deepak M on Jul 1, 2009 1:16 PM

    Deepak,
    Try giving the foll roles,
    pcd:portal_content/administrator/super_admin/super_admin_role
    and groups,
    SAP_J2EE_ADMIN
    Authenticated Users (GRUP.SUPER_GROUPS_DATASOURCE.AUTHENTICATED_USERS)
    Vikram

  • Help! Problem with Struts tag html:errors/

    Hi everybody,
    In my JSP page called addUser.jsp, i have the different Struts Tag
    <html:errors/>
    <html:form action="/addUser" focus="firstName">
    </html:form>
    I have of course the ApplicationResources.properties file with differents Struts properties:
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    errors.ioException=I/O exception rendering error messages: {0}
    and an other one:
    error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
    when I call the addUser form, my JSP page display:
    null Some fields are missing. null
    Have u any suggestion about my prob?
    tx a lot
    s.

    Hi,
    can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
    Thanks
    Latha

  • JDeveloper 10.1.3.2  , Portlet + Liferay Portal problem with JSR168 portlet

    When i create a portlet using JDeveloper 10.1.3.2 or 9.0 + portlet extension when i deploy it to Liferay Portal all versions and when i add the portlet somewhere the portal console prints me infinitive stacktrace... and the portlet never viewed
    i think the problem is somewhere in the dispatching dont know ..
    any ideas ?

    Hi,
    if you connet to OTN via a proy server, make sure this is configured in the JDeveloper preferences for browser and proxy settings. The username and password is your OTN account
    Frank

  • Problems with Inter-Portlet Communication in Weblogic Portal 10.3

    Hi,
    I'm developing a web application using Weblogic Portal 10.3.
    The requirement is that the work requests have to be stored in a workbasket which can be submitted by the user at the end.
    The user can create multiple request of same form.
    Consider a scenario that the user creates 5 instances or work request in a single form. No he moves back to the 2nd request and modifies it. While modifying the 2nd request a validation message is thrown. Now the user navigates to Workbasket directly by selecting the Workbasket from the menu item.
    Now when the user selects any one of the 5 requests, he is able to view the same validation message which is thrown as said in the above scenario. This is happening only when the user navaigates from the workbasket. If the user switches between the request, the problem is not simulated.
    Someone please help me how this can be avaoided.
    More Information:
    Weblogic Portal 10.3
    JSF 1.2
    Spring
    Message is thrown using the FacesMessage in JSF and is displayed in the screen using the following JSF tag.
    <h:messages globalOnly="true" rendered="#{! empty facesContext.maximumSeverity}" styleClass="liststylenone"/>

    Hi,
    Could someone pls explain which cache is used to cache portlet content and in which form the content is cached?

  • Problems with ADF portlet

    Hi All,
    I am evaluating Webcenter and Portlets, specifically ADF portlets. I followed Peter Moskovi's article on portletizing an ADF taskflow (http://pmoskovi.wordpress.com/2008/07/18/jsr-301-the-jsf-portlet-bridge/).
    This is an excellent demo to guide on creating a portlet from an ADF taskflow. This demo is for old webcenter with OC4J.
    I am working on the JDEV 5407 build with Webcenter externsions. The demo is still pretty accurate for Weblogic Portal (WLP).
    I was able to run and deploy my portlet app without any problem. It works find in a stand-alone server. However, I run into problems while consuming the portlet in my PORTAL app. I followed the demo and build the consumer app. Everything looks fine, but at runtime, I get "Portlet Unavailable Error".
    Has anyone else followed Peter's demo and built portal and portlets with Bulldog i.e. 5407 build? Did you have any issues integrating the portlet in the portal?
    I would appreciate any input.
    Thanks,
    --ajay                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Yes! When I say PORTAL app, I was referring to a WebCenter application that consumes the portal.
    Thanks for your help in advance.
    --ajay                                                                                                                                                                                                                                                                                           

  • Lost Locale problem with Struts/Validator Plugin client side validation

    Has anyone else had problems losing the locale in the generated javascript ?
    With the following tiles def and layout (nmLayout.jsp) I can get the locale from the browser OK with
    <html:html locale="true"> and it works ok for imported text (picking up the enCA properties file. But when the javascript executes in the provisionCustomer.jsp the locale reverts to the default property file.
    The Strruts Validator loses the locale of the containing html page. (I do a show source.) I've tried an explicit <fmt:setLocale value="en_CA" scope="session"/> but this has no effect either.
    Thanks
    Bruce
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE tiles-definitions PUBLIC
    "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
    "http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
    <!--
    Tiles definition file
    -->
    <tiles-definitions>
    <definition name="nm.MainMenu" path="/nmLayout.jsp">
    <put name="pageTitle" value="Distibutel Network Management" />
    <put name="header" value="header.jsp" />
    <put name="body" value="mainMenuBody.jsp" />
    <put name="footer" value="footer.jsp" />
    </definition>
    <definition name="nm.customer" path="/nmLayout.jsp">
    <put name="pageTitle" value="Distibutel Network Management -- Provision Customer" />
    <put name="header" value="header.jsp" />
    <put name="body" value="provisionCustomer.jsp" />
    <put name="footer" value="footer.jsp" />
    </definition>
    <!-- sample tiles definitions
    <definition name=".mainLayout" path="/common/layouts/classicLayout.jsp">
    <put name="title" value="Sample Page Title" />
    <put name="header" value="/common/header.jsp" />
    <put name="menu" value=".mainMenu" />
    <put name="footer" value="/common/footer.jsp" />
    <put name="body" value=".portal.body" />
    </definition>
    <definition name=".mainMenu" path="/common/layouts/vboxLayout.jsp" >
    <putList name="list" >
    <add value=".menu.links" />
    <add value=".menu.taglib.references" />
    <add value=".menu.printer.friendly" />
    <add value=".menu.old.documents" />
    </putList>
    </definition>
    <definition name="aPage" extends=".mainLayout">
    <put name="title" value="Another Title" />
    <put name="body" value=".aPage.body" />
    </definition>
    end samples -->
    <definition name="${YOUR_DEFINITION_HERE}">
    </definition>
    </tiles-definitions>
    nmLayout.jsp :
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
    <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag" prefix="menu" %>
    <%@ taglib uri="http://struts-menu.sf.net/tag-el" prefix="menu-el" %>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
    <html:html locale="true">
    <head>
    <title><tiles:getAsString name="pageTitle"/></title>
    <link rel="stylesheet" type="text/css" media="screen"
    href="styles/global.css" />
    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
    <style type="text/css">
    body { background: AliceBlue; }
    #appcontent {
                             position:absolute;
                             top: 300px;
                             left: 200px;
                   h1 {color: red;}
                   h2 {color: green;}
    </style>
    </head>
    <body topmargin="0" leftmargin="0">
    <!--
         <fmt:setBundle basename="ApplicationResources"/>
         <fmt:setLocale value="en_CA" scope="session"/>
    -->     
         <script type="text/javascript" src="./scripts/coolmenus3.js"></script>
         <!-- Custom config for this example -->
         <script type="text/javascript" src="./scripts/coolmenu2-config.js"></script>
         <menu:useMenuDisplayer name="CoolMenu"
         bundle="org.apache.struts.action.MESSAGE">
         <menu:displayMenu name="ToDoListMenuProvision"/>
         </menu:useMenuDisplayer>
    <table>
    <tr>
    <td><tiles:insert attribute="header"/></td>
    </tr>
    <tr>
    <td><div id="appcontent"><tiles:insert attribute="body"/></div></td>
    </tr>
    <tr>
    <td><tiles:insert attribute="footer"/></td>
    </tr>
    </table>
    </body>
    </html:html>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
    <html:javascript formName="customerForm" />
    <html:errors/>
    <h1><fmt:message key="ProvisionCustomer.title"/></h1>
    <html:form action="/saveCustomer"
    onsubmit="return validateCustomerForm(this)" >
    <table>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.TenantName"/>:</h2></td><td> <html:text property="tenantName"/></td>
    </tr>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.TenantID"/>:</h2></td><td> <html:text property="tenantID"/></td>
    </tr>
    <tr>
    <td><h2><fmt:message key="ProvisionCustomer.CustomerID"/>:</h2></td><td> <html:text property="customerID"/></td>
    <td></td><td><input type="submit" value=<fmt:message key="ProvisionCustomer.insert"/>></td>
    </tr>
    </table>
    </html:form>

    you can always get the locale from the request like so....
    <html>
    <%
    request.getLocale().toString();
    %>
    </html>
    you can even stuff it into javascript like so....
    <html>
    <head>
    <script>
    function foo() {
    var locale = '<%=request.getLocale().toString()%>';
    </script>
    </head>
    </html>
    then you can have access to it in javascript code.

  • Problem with Email portlet on the Oracle AS

    The Email portlet on the Oracle AS which we have successfully deployed it to Oracle Portal. The problem is that this portal does not ask the name and password of the each user that add it. It just initialized with an email address which can not be changed by users

    Hi Rahul,
    Are you talking about the email portlet available for download from the Portal Integration Solutions page? If this the portlet that you have deployed, can you be more specific on what you have exactly done?
    thanks,
    Harsha

  • Problem with Adaptive Portlets

    Hi,
    We used the adaptive portlets example and developed a master and details kind of portlets in asp.net. After deploying on portal everything works fine If I run the portlets from the portal server. If I move to a different system to test we are getting the javascript problem saying PTHTTPGETRequest is undefined.
    Does any one ran into this problem and any idea.
    Thanks,
    Ramesh

    What are you using to include the necessary javascript (i.e. the PTHTTPGetRequest)? If it's the PTLoader then I expect you don't have any pt xml libraries installed (you'd need to install collab or EDK .NET Web Controls), if you're referencing them directly make sure you have the correct (latest) version and the URL resolves.

  • Problem with lotus portlet in pdk nov 2002

    hi! i've downloaded pdk novemeber 2002 and installed the new lotus portlet in it. but upon testing the external application link, the following error is shown:
    An error has occured in this Application
    java.lang.NullPointerException
    at oracle.portal.integration.lotusnotes.application.ApplicationLogin.extractDataFromCookies(Unknown Source)
    at oracle.portal.integration.lotusnotes.application.ApplicationLogin.<init>(Unknown Source)
    at oracle.portal.integration.lotusnotes.application.LotusProvider.process(Unknown Source)
    at oracle.portal.integration.lotusnotes.application.ExternalServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    kindly advice.
    thx in advance.

    There is an issue with lotusnotes Nov release. We are currently working on it and will make a patch release as soon a possible.

  • Problem with display/layout of Portal-Favorites

    Hi community
    I've got a little display problem of the Favorites iView in the Portal.
    Below you can see three different screenshots of the Portal Favorites. Please disregard the Links itself, the problem is in the border/layout of the whole thing.
    [Screenshot|http://www.schuess.net/images/Unbenannt.jpg]
    The first picture shows the problem first hand.
    In the second picture you can even see that the Favorites seem to be misplaced by 5px. Perhaps they have an absolute position to the browser window?
    The third screenshot is the result of setting a border of 5px in the Theme Editor under
    Tree -> Border. That's not as intended because a) theres this little 1px-line on the top-left and b) the tree-border stops at the end of the tree nodes.
    Please tell me how I can make the Favorites-iView flush or which setting I have to change.
    Thanks in advance
    Michael

    Hi dear reader
    My problem is solved.
    The Favorites-iView-Property "Isolation Method" had to be changed from "URL" to "Embedded".
    Now it looks smooth
    Try on
    Michael

  • Problem with struts validator on WLS 8.1

    I am having a strange problem, when I run my app in eclipse using weblogic plugin it works fine and I get no exception. As soon as I run it externally in a standalone server I get an ServletException which seem be be because of struts validator classes. I have checked the classpath and it seems to be identical in eclipse and startweblogic.cmd
              By the way, this code works fine on WLS 6.0
              Root cause of ServletException.
              javax.servlet.jsp.JspException: ServletException in '/common/sea-layout.jsp': ServletException in '/secure/sea
              -basicBOL-body.jsp': org/apache/commons/validator/Validator
              at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
              at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:460)
              at jsp_servlet._secure.__basicbol._jspService(__basicbol.java:368)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
              at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
              at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)
              at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:261)
              at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)
              at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:316)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
              at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
              a:6718)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              Any pointer to fix this situation will be greatly appreciated.
              -Sankate

    Got the solution.
              It was an classloader issue and I fixed by modifying the way EAR was getting packaged.
              I was including all commons-validation.jar and other commons jars in WEB-INF/lib dir. Some how it worked on WLS 6.0 but was not able to load the jars in WLS 8.1
              Move the jars out of lib dir and copy them to app/lib dir and add them to ejb manifest file because ejb jar is loaded before WAR by the classloader. This way when WAR is loaded, all the required jars are already loaded.
              I was getting servletexception and was not able to get to the root of exception (i.e. its a NullPointerexception or NoClassDefFoundException etc) so I added a scriplet in the root jsp and caught Throwable, that was I came to know the root of the problem.
              -Sankate

Maybe you are looking for