Framework in portlet project?
Hello,
I dont know which framework is the best in building portlet applications, could you advise me which one (JSF Struts, Spring, webwork) should I apply and why?
regards
hi ,
no i am not in TCS.
i am working in coimbatore.
did u have arthe contact number, i ll miss the one.
i have no way to access my gmail r other mail id's.
regards,
Bala
Similar Messages
-
Help needed with Sun Java Studio Creator and EJB in a Portlet Project
Hi
I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the project everything opens up properly in the browser and the application seems to be fine.
But when i create a JSP 168 Portlet project and do exactly the same thing for some reason the Apache Pluto(comes as the default Portlet Container with Studio Creator) conks off.
Then i started going ahead step by step:
1. First i created a portletpage and added only one dataProvider(EJB) and ran the project...It gets deployed properly in Pluto and the browser comes up and everything shows up fine.
2. Just to re-confirm i did the same thing with another dataProvider(EJB). So still we have just 1 EJB in the portlet page. As expected it also worked fiine.
3. Then when I added more that one dataProviders(EJBs) in the porlet page the Apache Pluto conks off(saying that Pluto is not available)
I tried doing a lot of things but nothing works...Surprisingly the same thing works when u create a JSF web Application project but the same thing does not work when u create a JSR 168 JSF Portlet Project...
Did anybody face the same problem..Is it a bug in the Studio Creator...Any help would be highly appreciated.Hi,
There are a few discussion threads in the feedbackprograms portal for Creator 2 EA 2. The URL is:
https://feedbackprograms.sun.com/login.html
In the EA discussion forum you will find threads which discuss the concerned topic. In specific look for threads titled:
# Deploying Portlets
# Taking a JSC Portlet to Tomcat creates a Faces Mapping Error
# Problem with Pluto when trying to deploy a portlet
# Request: JSR-168 Portlet Project without JSF
We kindly request you to post your further queries related to EA in the above mentioned forum.
Cheers
Giri -
Problems with Portlet projects
Hi,
Started using Java Studio Enterprise recently (now that it's free) since I am developing portlet applications for an organization running the enterprise system in production use.
The IDE is great (love the UML stuff) but I've run in to a couple of problems that are really slowing me down.
When I run a portlet project in the Application Server (using the Harness portlet provider/Portal Server simulator) I noticed that every request made to the Portlet is duplicated. So if I have a line like...
System.out.println("Portlet: doView()");
... in the Portlets doView method I get this in the server log:
[#|2006-01-13T12:09:27.093+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
Portlet: doView()|#]
[#|2006-01-13T12:09:27.109+0200|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=31;|
Portlet: doView()|#]
Why is this happening and what can I do about it? I first noticed this when I was using a DAO from a portlet and all my sql statements got executed twice!
The other thing that's annoying me is that when i shutdown the ide, my datasource reference is whiped out from my web.xml file. So everytime I start Studio Enterprise I have to manually edit the web.xml file to get my datasource working. I have configured my datasource with the IDE (new File > Sun Resource -> JDBC resource...).
Any ideas?Unfortunately this is a bug in in JSE 8.0. It will be fixed in the currently developed JSE 8.1, but for now there exists a work-around (quoting our portlet builder engineer):
1. Go to folder <userdir>/config/ps/Harness
(e.g.: "C:\Documents and Settings\<username>\.jstudio\Ent8\config\ps\Harness")
2. Open jsp file "PSSimTarget.jsp" in
<userdir>/config/ps/Harness/web/desktop/default/harness/PSSimTarget.jsp
3. Find next lines at the top of the file:
<i18n:set
var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
<i18n:setLocale value="${locale}" scope="session"/>
<i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
4. Replace it with next lines:
<%
HttpSession httpsession = request.getSession();
ProviderHarness tmpObj =
(ProviderHarness)httpsession.getAttribute("desktop.Simulator.ProviderHarness");
if (tmpObj == null) {
%>
<i18n:set var="locale"><%=ProviderHarness.getHarness(request,response,pageContext).getLocaleString()%></i18n:set>
<%
%>
<i18n:setLocale value="${locale}" scope="session"/>
<i18n:setBundle basename="i18n.Bundle" var="myBundle"/>
Every time when you start studio with new userdir, you should change PSSimTarget.jsp to avoid double requests. -
Example JSF Portlet Project for WebLogic Portal 10.3.2
Hi,
does anyone have an example JSF Portlet Project for WebLogic 10.3.2 using the default JSF implementation 1.2.
I tried to implement the example of the document "Developing JSF Portlets with WebLogic" but I always get a ClassCastException.
java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl
Thx in advance
EdmundMy approach was to programmatically redirect to the page again with _nfpb=false. I do this in the handlePostbackData() method in the portlet's backing file.
redirectUrl = redirectUrl.replaceAll("_nfpb=true", "_nfpb=false");
PortletBackingContext.getPortletBackingContext(request).sendRedirect(redirectUrl);
Matthias Rohe
[email protected]
Edited by: user7964913 on 29.09.2010 04:06 -
Need help in design/framework of a project requirements
Hi there.
I need some input/design suggestion and/or comments regarding 2 projects that I'm undertaking currently. The project duration is 8 weeks starting now.
Some background information of the current technology we are using right now. We are using weblogic 7.0 SP2 and our database is ms sqlserver 2000 and/or mysql. The persistance layer/framework we are using is a home grown JDBC framework. We are using only stateless session beans and our client which is a swing ui access the servers side thru webservices via a session facade. We use also Transfer objects on the client and our own DataObjects on the server side. Current consideration is that we can not upgrade to the current weblogic version at this time and can only use java 1.4 and use existing persistence framework we have. I've considered using Spring/Hibernate but it will involve major refactoring on our existing system, which we can not afford right now. But we can augment or add new framework to handle this 2 projects.
1. The first project is a mass update/creation of orders and order items. In our system the update and creation of order and order items are complicated and perform several validations (e.g. vendor/client is valid; item are valid and have enough to on-hand, etc.) and lookups before we can create/update an order and it's order items. We estimated that process to be around 1.5 - 3.0 secs and typically we will be processing between a few hundreds to about 5000. The max ceiling we put is 10,000.
Now the requirements are:
a. Ensure that the process will be completed and in the event of failure (physical or network or power) and recovery to start where it failed and start processing from that point of failure.
b. The transaction should be atomic on per order basis and not on whole process - meaning we will commit all changes for an order and start a new transaction on the next order. This will ensure that we have a complete order committed.
c. Don't tie the client from this process and when the process is finished give a feedback to the client who invoke the process.
2. The second project is related to the first, is that before they post the process above, the user will look at the set of data and do some editing and then post the data. So this project is on the UI side and would present the user a table/grid view of the data and since data set could be large, we want our swing ui to fetch only a set of rows/data so that it does not take so long to load all the data or run out of memory. A button or by the user scrolling on the scrollbar would fetch the next succeeding rows/data. The problem we have as stated on the first paragraph is these- we are using webservices and stateless session beans and there is no way that the server can recognized who the user is when that user request the next set of row/data set without querying the database again.
So your input and help is very much appreciated and if you know an existing framework that would help me is most welcome.
Have a blessed day.
Jun VictorioTake the statistics of the tables and check again.
begin
DBMS_STATS.gather_table_stats(ownname=>'syslog',tabname=>'logs');
end;
Regards
Asif Kabir -
Creator 2 Portlet project and accessing portal authenticated user
Hello friends,
I have started a portlet JSR-128 project with Creator 2.
The question is how can I access the user that is authenticated thru portal single-signon feature?
Thank you so muchThere is a standard way to access users. It requires adding the user attributes you would like to access to the portlet.xml file and then accessing them with the following code:
Map userInfo = (Map) request.getAttribute(PortletRequest.USER_INFO);To learn more, go to http://www.manning.com/hepper/. Read the download instructions and download your free version of the book "Portlets and Apache Portals". There is a section of the book called "Accessing User Attributes" which has the info you need.
Let me know if you get it to work!!!
It is easier to access user info with the specific portal APIs, but it makes your code less portable.
Thanks,
Dean -
I need to add the mailcore framework to my iphone project so that with mailcore to create an application for mail to attach files to mail and send it to recipients and download the content of the mail,so please if any one knows how to do this help me.
thanks in advance...how to change the class name after the project is created.In NetBeans, right click the class name either in the declaration or constructor, select Refactor --> Rename... and follow the dialog.
You can refactor --> rename anything that is not in a guarded block. For those, there are options via the properties window.
db -
Custom Framework for iPhone projects
I have custom frameworks that I currently use in desktop applications. Some of these frameworks I would like to include in projects I plan to build for the iPhone. Is there a limitation when it comes to creating frameworks for the iPhone? If not what is the proper way to build frameworks for iPhone/Aspen?
I was able to get around this by setting the "DYLDFRAMEWORKPATH" variable in my project. Go to Project -> Edit Active Executable menu. A dialog should pop up, navigate to the "Arguments" tab, and add a new environment variable (bottom-half of the dialog). You'll want to set to the path to something like "${DYLDFRAMEWORKPATH}:/Users/foo/your/framework/path", where the path is the path to where your framework is on disk. This should allow the simulator to find the Framework code at runtime.
I have no idea how this will work when the code is loaded onto the phone. In addition, I'm having a lot of problems with 3rd party frameworks that reference code which isn't supported on the iPhone. Does anybody know if it is possible to compile a framework, where the target is the iPhone simulator?
Thanks,
-Andy Reitz. -
Unit Test Framework Crashing LabVIEW Project
[Cross posted to LAVA]
OS: Windows 7
LabVIEW 2009, LabVIEW 2009 SP1.
Howdy
If I create a project and add a VI and a unit test to it and save it, then delete the unit test, everything works.
If I do the above but put the unit test in a virtual folder then delete it, the project hangs and LabVIEW crashes.
I have tried this on multiple computers and get the same effect.
If it is an issue I thought this may have been fixed in 2009 SP1, but it is not.
I do not remember this happening in 8.6.1 but I was using VISTA at the time (if that is related?)
I get the same problem if I open an existing project with unit tests in it.
Additionally I have noticed that the files from the unit test in Windows 7 have no "logo/icon" associated with them. I thought in VISTA they had the same icon as what is shown in the project - the green plus sign (but this was a while ago).
Is this a known issue / can anyone else confirm this?
Cheers
-JG
Message Edited by jg-code on 04-13-2010 10:02 PM
Certified LabVIEW Architect * LabVIEW ChampionHi Kyle
Thank you for your quick reply.
I am having this problem on my work PC, home PC and a colleague's PC all running Windows 7 and 2009 SP1.
I have found the problem occurs if I create a new unit test OR drag and drop an existing unit test into the project.
Attached is a (jing) video of what is happening every time.
You will see that at the root level of the project (My Computer), I can remove the unit test with no problems at all.
But if it goes into a virtual folder and I try to remove it - then LabVIEW crashes.
The attachment is in LV2009.SP1 and is the sane project as used in the video.
I look forward to your feedback on resolving this issue I am having.
Cheers
-JG
Certified LabVIEW Architect * LabVIEW Champion
Attachments:
Test Project.zip 4 KB -
Hi! Could anyone lead me to the information i requested .
thanks
AbyHope this blog helps
http://blogs.technet.com/b/projectadministration/archive/2010/09/03/implementing-governance-in-sharepoint-2010-whitepaper.aspx
Cheers! Happy troubleshooting !!! Dinesh S. Rai - MSFT Enterprise Project Management Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you. This can be beneficial to other community members reading
the thread. -
Can I import HTMLs from inside the project and use as portlet page ?
As you know, I am using Java Studio Creator 2 Update 1 for my current portal project. I have created JSR-168 JSF Portlet Project for my portlet development.
As I have some html pages ready for my development,
Can I import HTMLs from inside the project and use as portlet page for my project?
I did the followings steps:
1: In side the project - File -> Add Existing Item -> Web Page ( imported test.html page from my local folder)
2: Let it convert some of the tags for me ( so now it becomes - �test.jsp� )
3: Set it to initial view.
4. A default portlet page � newPortletPage.jsp is still there with no initial view.
Now after doing this, No Visual Designer and Properties window available to for that �test.jsp� page. Though it allowed me to �build� the project successfully.
When I build and run the portlet application, got the error message �Error occurred in portlet!� on Pluto Portal. Please advice.You do not open fcpproject files. You don't double click or anything else. The files have to be in the correct folder structure in the Final Cut Projects folder and the application opens them automatically. Can you post screen shots of the Final Cut Projects folder and its location.
-
I'm working on the WebCenter Framework Tutorial. I was able to deploy and run my portlet in Step # 6. In Step # 7 (Adding Some Simple Logic ot the Portlet) I now get a "Portlet Unavailable" error when I try to run my portlet. I checked to verify that OC4J is running by going to the Connections Navigator tab->MyLocalOC4J and selected properties. From the test tab I checked the test button and had a successful connection.
When I right click on the MyPage.jspx and click run it gives me the "Portlet unavialable" error message in the page that it opens up. Here is the rest of the error message. If you can help I would greatly appreciate it.
Thanks...
C:\Oracle\JDeveloper\jdk\bin\javaw.exe -jar C:\Oracle\JDeveloper\j2ee\home\admin.jar ormi://10.10.112.73:23891 oc4jadmin **** -updateConfig
Sep 30, 2008 3:24:35 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
INFO: Legacy datasource detected...attempting to convert to new syntax.
Sep 30, 2008 3:24:40 PM com.oracle.corba.ee.impl.orb.ORBServerExtensionProviderImpl preInitApplicationServer
WARNING: ORB ignoring configuration changes. Restart OC4J to apply new ORB configuration.
Ready message received from Oc4jNotifier.
Embedded OC4J startup time: 9016 ms.
Target URL -- http://10.10.112.73:8988/MySample-ViewController-context-root/faces/MyPage.jspx
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ValidatorRule end
WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
Sep 30, 2008 3:24:48 PM com.sun.faces.config.rules.ConverterRule end
WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
Sep 30, 2008 3:24:48 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
INFO: oracle.adf.share.config.ADFConfigFactory Reading META-INF/adf-config.xml
08/09/30 15:24:49 PortletContainer portletTechnologies set to '{oracle.portlet.client.containerimpl.web.WebPortletTechnologyConfig,oracle.portlet.client.containerimpl.wsrp.WSRPPortletTechnologyConfig}' from adf-config.xml
08/09/30 15:24:49 PortletContainer defaultTimeout set to '20' from adf-config.xml
08/09/30 15:24:49 PortletContainer minimumTimeout set to '1' from adf-config.xml
08/09/30 15:24:49 PortletContainer maximumTimeout set to '60' from adf-config.xml
08/09/30 15:24:49 PortletContainer resourceProxyPath set to '/resourceproxy' from adf-config.xml
Sep 30, 2008 3:24:50 PM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
Sep 30, 2008 3:24:50 PM oracle.portlet.client.utils.PortletLogger info
INFO: Portlet Client MBeans registered
Sep 30, 2008 3:24:50 PM oracle.jsp.logger.JspMessages infoProviderURIUsed
INFO: Using the ProviderURI /mdssys/ViewController/public_html/MyPage.jspx that is returned from custom provider for processing requests.
08/09/30 15:24:51 DefaultValidationEventHandler: [ERROR]: ClassLoader "current-workspace-app.web.MySample-ViewController-webapp:0.0.0" (from <web-module> in /C:/Oracle/jdevinstance10132/mywork/MySample/ViewController/public_html/): This loader has been closed and should not be in use.
Location: obj: oracle.portlet.wsrp.v2.impl.MarkupParamsImpl@782c68
Sep 30, 2008 3:24:54 PM oracle.adfinternal.view.faces.renderkit.html.portlet.PortletRenderer preRender
SEVERE: oracle.adf.model.portlet.binding.PortletBindingException: Error converting the following bean from JAXB package 'oracle.portlet.wsrp.v2' to SOAP:
oracle.portlet.wsrp.v2.impl.GetMarkupElementImpl {0}
[PortletContext] oracle.portlet.wsrp.v2.impl.PortletContextImpl {1}
[PortletState] array {2}
[Extensions] array {3}
[ScheduledDestruction] <null>
[ExtensionsLength] 0
[PortletHandle] "E:0:10.10.112.73:-188af61e:11caecec4b7:-7ffd"
[MarkupParams] oracle.portlet.wsrp.v2.impl.MarkupParamsImpl {4}
[MarkupCharacterSets] array {5}
[0] "UTF-8"
[Extensions] array {6}
[MimeTypesLength] 4
[NavigationalState] ""
[ExtensionsLength] 0
[ValidNewModesLength] 7
[WindowState] "wsrp:normal"
[MimeTypes] array {7}
[0] "text/html"
[1] "text/xml"
[2] "text/vnd.oracle.mobilexml"
[3] "*"
[ecureClientCommunication] false
[Locales] array {8}
[0] "en-US"
[NavigationParameters] array {9}
[ClientData] oracle.portlet.wsrp.v2.impl.ClientDataImpl {10}
[ExtensionsLength] 0
[Extensions] array {11}
[UserAgent] "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)"
[CcppHeaders] <null>
[Mode] "wsrp:view"
[NavigationParametersLength] 0
[MarkupCharacterSetsLength] 1
[ValidateTag] <null>
[ValidNewWindowStates] array {12}
[0] "wsrp:normal"
[1] "wsrp:maximized"
[2] "wsrp:minimized"
[LocalesLength] 1
[ValidNewWindowStatesLength] 3
[ValidNewModes] array {13}
[0] "wsrp:view"
[1] "urn:javax:portlet:mode:custom:edit_defaults"
[2] "wsrp:edit"
[3] "wsrp:help"
[4] "urn:javax:portlet:mode:custom:about"
[5] "urn:javax:portlet:mode:custom:print"
[6] "urn:javax:portlet:mode:custom:config"
[UserContext] oracle.portlet.wsrp.v2.impl.UserContextImpl {14}
[UserCategories] array {15}
[ExtensionsLength] 0
[UserContextKey] "PUBLIC"
[Profile] <null>
[UserCategoriesLength] 0
[Extensions] array {16}
[RuntimeContext] oracle.portlet.wsrp.v2.impl.RuntimeContextImpl {17}
[UserAuthentication] "wsrp:none"
[TransientPropertiesLength] 0
[NamespacePrefix] "__ns1960239081_"
[SessionID] <null>
[Extensions] array {18}
[ExtensionsLength] 0
[Templates] <null>
[TransientProperties] array {19}
[PortletInstanceKey] "1960239081"
[RegistrationContext] oracle.portlet.wsrp.v2.impl.RegistrationContextImpl {20}
[ExtensionsLength] 0
[RegistrationHandle] "C:10.10.112.73:-188af61e:11caecec4b7:-7ffe"
[Extensions] array {21}
[RegistrationState] array {22}
[ScheduledDestruction] <null>
at oracle.adf.model.portlet.binding.PortletBinding.getPortletRendition(PortletBinding.java:522)
at oracle.adfinternal.view.faces.renderkit.html.portlet.PortletRenderer.preRender(PortletRenderer.java:417)
at oracle.adfinternal.view.faces.renderkit.html.customizable.ShowDetailFrameRenderer.encodeBegin(ShowDetailFrameRenderer.java:227)
at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:39)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
at mdssys.viewcontroller._public__html._MyPage_jspx._jspService(_MyPage_jspx.java:102)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.mds.jsp.MDSJSPFilter.doFilter(Unknown Source)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:622)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:286)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: Error converting the following bean from JAXB package 'oracle.portlet.wsrp.v2' to SOAP:
oracle.portlet.wsrp.v2.impl.GetMarkupElementImpl {0}
[PortletContext] oracle.portlet.wsrp.v2.impl.PortletContextImpl {1}
[PortletState] array {2}
[Extensions] array {3}
[ScheduledDestruction] <null>
[ExtensionsLength] 0
[PortletHandle] "E:0:10.10.112.73:-188af61e:11caecec4b7:-7ffd"
[MarkupParams] oracle.portlet.wsrp.v2.impl.MarkupParamsImpl {4}
[MarkupCharacterSets] array {5}
[0] "UTF-8"
[Extensions] array {6}
[MimeTypesLength] 4
[NavigationalState] ""
[ExtensionsLength] 0
[ValidNewModesLength] 7
[WindowState] "wsrp:normal"
[MimeTypes] array {7}
[0] "text/html"
[1] "text/xml"
[2] "text/vnd.oracle.mobilexml"
[3] "*"
[ecureClientCommunication] false
[Locales] array {8}
[0] "en-US"
[NavigationParameters] array {9}
[ClientData] oracle.portlet.wsrp.v2.impl.ClientDataImpl {10}
[ExtensionsLength] 0
[Extensions] array {11}
[UserAgent] "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)"
[CcppHeaders] <null>
[Mode] "wsrp:view"
[NavigationParametersLength] 0
[MarkupCharacterSetsLength] 1
[ValidateTag] <null>
[ValidNewWindowStates] array {12}
[0] "wsrp:normal"
[1] "wsrp:maximized"
[2] "wsrp:minimized"
[LocalesLength] 1
[ValidNewWindowStatesLength] 3
[ValidNewModes] array {13}
[0] "wsrp:view"
[1] "urn:javax:portlet:mode:custom:edit_defaults"
[2] "wsrp:edit"
[3] "wsrp:help"
[4] "urn:javax:portlet:mode:custom:about"
[5] "urn:javax:portlet:mode:custom:print"
[6] "urn:javax:portlet:mode:custom:config"
[UserContext] oracle.portlet.wsrp.v2.impl.UserContextImpl {14}
[UserCategories] array {15}
[ExtensionsLength] 0
[UserContextKey] "PUBLIC"
[Profile] <null>
[UserCategoriesLength] 0
[Extensions] array {16}
[RuntimeContext] oracle.portlet.wsrp.v2.impl.RuntimeContextImpl {17}
[UserAuthentication] "wsrp:none"
[TransientPropertiesLength] 0
[NamespacePrefix] "__ns1960239081_"
[SessionID] <null>
[Extensions] array {18}
[ExtensionsLength] 0
[Templates] <null>
[TransientProperties] array {19}
[PortletInstanceKey] "1960239081"
[RegistrationContext] oracle.portlet.wsrp.v2.impl.RegistrationContextImpl {20}
[ExtensionsLength] 0
[RegistrationHandle] "C:10.10.112.73:-188af61e:11caecec4b7:-7ffe"
[Extensions] array {21}
[RegistrationState] array {22}
[ScheduledDestruction] <null>
at oracle.portlet.utils.SoapJaxbTranslationUtils.jaxbToSoap(SoapJaxbTranslationUtils.java:154)
at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeJaxbToSoap.toSoap(WSRP_v2_Markup_PortTypeJaxbToSoap.java:42)
at oracle.portlet.wsrp.v2.WSRP_v2_Markup_PortTypeJaxbToSoap.getMarkup(WSRP_v2_Markup_PortTypeJaxbToSoap.java:79)
at oracle.portlet.wsrp.v2.ServerToWSRPv2.getMarkup(ServerToWSRPv2.java:13461)
at oracle.portlet.client.connection.wsrp.ActivityServerWrapper.getMarkup(ActivityServerWrapper.java:1330)
at oracle.portlet.client.techimpl.wsrp.WSRPGetMarkupPipe.execute(WSRPGetMarkupPipe.java:116)
at oracle.portlet.client.techimpl.wsrp.WSRPGetMarkupPipe.pre(WSRPGetMarkupPipe.java:52)
at oracle.portlet.client.service.pipeline.PipeContext.internalExecute2(PipeContext.java:516)
at oracle.portlet.client.service.pipeline.PipeContext.internalExecute(PipeContext.java:403)
at oracle.portlet.client.service.pipeline.PipeContextRunnable.run(PipeContextRunnable.java:24)
at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:431)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at oracle.portlet.client.service.pipeline.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:398)
at oracle.portlet.client.service.pipeline.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:423)
... 1 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[com.sun.xml.bind.serializer.AbortSerializationException: ClassLoader "current-workspace-app.web.MySample-ViewController-webapp:0.0.0" (from <web-module> in /C:/Oracle/jdevinstance10132/mywork/MySample/ViewController/public_html/): This loader has been closed and should not be in use.]
at oracle.portlet.wsrp.v2.impl.runtime.MarshallerImpl.write(MarshallerImpl.java:166)
at oracle.portlet.wsrp.v2.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:101)
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:87)
at oracle.portlet.utils.SoapJaxbTranslationUtils.jaxbToSoap(SoapJaxbTranslationUtils.java:114)
... 14 moreHi,
The error messages seems to indicate that there is some kind of mismatch between the consumer and the provider regarding the soap messages. This can sometimes happen when the specs of the portlet change: adding of portlet communication parameters in the oracle-portlet.xml for example, or registering of security roles. Here are some steps:
- restart the webcenter container
- stop the embedded OC4J
- refresh the portlet registration in the consumer project
- check if the portlet on the page is still having correct bindings, or delete the portlet from the page and put it on again
- retry.
- if any errors are left, also check the application.log of the deployed portlet project for any detail errors. Portlet-application specific error messages do not always appear in the container logging, but can end up in the application log file.
Success,
Jeroen van Veldhuizen -
How to open a jsp page inside a portlet directly ,Cannot find FacesContext
Hi
Thank you for reading my post.
I have a portlet (a jsf portlet build by JSC) , now i need to open a window that
will show some information , i managed to open the pop-up and pass some parameters to popup
but right now , i do not know what is my jsp file url
as you know portlets are deployed diffrent than plain web jsf application.
I find that if i use
http://localhost:28080/Adv/viewMessageDetails.jsp?messageID=10
it will open the page , but unfortunetly it return an error like :
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: javax.servlet.jsp.JspException
Cannot find FacesContext
Possible Source of Error:
Class Name: javax.faces.webapp.UIComponentTag
File Name: UIComponentTag.java
Method Name: doStartTag
Line Number: 405
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
and some stack trace.
how i can fix this problem ?
thank youIn portlet project, to navigate between pages, you should not use the URL property to link to a page. Instead, portlets use navigation via action handling. You use the Page Navigation editor to set up links to pages; that is, the navigation editor sets the action property.
Here is an example to hyperlink ans button to open a new page:
# From within the IDE, create a new portlet project. This action creates the project and one page, PortletPage1.jsp.
# Create a second portlet page, called PortletPage2.jsp, for the project.
# Drop a Hyperlink component onto the first portlet page, PortletPage1. (You can drop the Hyperlink on the page in the Design window or on the PortletPage1 node in the Outline window.) Change the Hyperlink's text property to Next Page.
# Drop a Button component (found in the Basic section of the Palette) onto the second portlet page, PortletPage2.
# Open the Page Navigation Editor. It displays the two pages (PortletPage1.jsp and PortletPage2.jsp) of the application.
# Click the PortletPage1.jsp icon in the Navigation window to expand it, and then drag a connector from hyperlink1 to PortletPage2.jsp. Change the name of the connector from case1 to Page2.
# Click the PortletPage2.jsp icon in the Navigation window to expand it, and then drag a connector from button1 to PortletPage1.jsp. Change the name of the connector from case1 to Page1.
# Run and deploy the portlet. The browser displays PortletPage1 and you should see the Next Page hyperlink. When you click the Next Page hyperlink, the Apache Pluto Portal server displays PortletPage2. Click the Page2 button to return to PortletPage1.
Sherry
Creator Team -
Importing web project into Workshop 9.2
Hi,
I'm trying to import an existing web project into Workshop 9.2.1 from my Subversion source. Unfortunately Workshop doesn't recognize this project as a valid web project.
I imported the code project using 'File>Import>Existing Projects' into Workspace.
Unfortunately, I get the following errors:
- "The library module reference : beehive-netui-1.0 is not allowed from the classpath of a non-web project, only JAR,EJB, and EAR module types are allowed."
- "The library module reference : jstl is not allowed from the classpath of a non-web project, only JAR,EJB, and EAR module types are allowed."
How do I tell Workshop that this project is indeed a web project?
Does anyone have any suggestions?
Thanks,
DerrekWow.... I figured out a workaround (aka Ugly Hack). It seems that Workshop doesn't properly import Portlet projects. Here's how I got around it:
1. Checkout the code from Subversion
d:\MyProjects\Project\trunk\MyComponent\
2. Move MyComponent to a temp directory
d:\MyProjects\Project\trunk\MyComponent\ --> d:\tmp\MyComponent
3. Open Workshop and create a new Portal project and PortalEAR project of the same name as the MyComponent projects
File>New myComponentPortal
4. Copy over the src and WebContent directories in the SVN directory with the files from tmp.
d:\tmp\MyComponent\src -> d:\MyProjects\Project\trunk\MyComponent\src
d:\tmp\MyComponent\src\WebContent -> d:\MyProjects\Project\trunk\MyComponent\WebContent
5. Refresh Workshop and let the spooky voodoo happen. Viola! Now I've got a running portal project with a SVN connection. -
How to create a Portlet application in OPM 10.4
Hello,
We would like to create a portlet application. The purpose of creation of such application is to embedded this in the portal.
Can we get the pointer on this please?The actual interview portlet is found in the zip you download for Oracle Policy Automation runtime components for Java (Oracle Policy Automation Downloads on OTN).
Any basic rulebase will work inside the portlet. The SocialServicesScreening example rulebase has both portlet and non-portlet projects. The rules and data model are the same in both projects but these projects contain different summary screens because portlets impose a restriction on the use of relative URLs to reference static resources. See the explanatory note in the "Change the layout or appearance of interview screens" topic of the OPM User's Guide (http://docs.oracle.com/html/E48373_01/toc.htm#Interviews%20and%20flows/Change_layout_or_app_of_interview_screens.htm?Highlight=Portlet)
The OPA Developer Guide contains an entire section on the Interview Portlet - see the topic "The Interview Portlet" (http://docs.oracle.com/html/E48376_01/toc.htm#Interviews/The_Interview_Portlet.htm)
.Brad.
Maybe you are looking for
-
My ipod classic have no software and I am stuck with it. It was formatted for apple but I use windows 8. Please help. Thanks in advance.
-
Reader won't install on Windows 7
I can't instal Acrobat Reader 9.1 on my computer... I get "Error 1327. Invalid drive z:\" I am running windows 7 build 7100, via Fusion 2.0.4 on Mac No idea why it is trying to access z:\ Programs are usually installed in c:\ Z:\ is the mac shared f
-
FocusListener problem with JComboBox
Hi, I am facing a problem with JComboBox. When I make it as Editable it is not Listening to the FocucListener Event.... Please tell me if there is any way to overcome this.. Regards, Chandan Sharma
-
Multiple materialized views against same mv logs
Hi, I am currently moving an apex installation that uses materialized views for data source from one machine to another (both 11.1.0.6, diff nls_character sets WE8MSWIN1252 to AL32UTF8, so dpexp/dpimp is not working due to bug). I am looking at exp/i
-
Hi, I am trying to build a new website to show some of my photographs but I am really not liking how iWeb works with photographs. When I place them on the photo page, if a user selects on one it then within the same window shows a larger view with sm