« Possible answer to... | Main | Secure Remote Access... »
http://blogs.sun.com/insidemyhead/date/20070703 Tuesday July 03, 2007

New Version of Eclipse Portal Pack with Action Support

I have uploaded the source code for the new version of Eclipse-Portalpack. I have been playing with the idea of making portlet development easy... and not just for rendering the view mode or the edit mode of the portlet but also in processing actions easily from the portlets. To this extent this is my first attempt in making this happen. Check it out and let me know if you find it useful and suggest any enhancements requests if any. I will be enhancing this further myself ( as there are areas I think that need it, but do let me know your suggestions )

Okay back to the new version. The new version supports the following new things :

    - It is now built on the latest version of JAXB .i.e version 2.1.
    - It has a new feature of adding a new portlet action very easily to your portlet, and to implement the action you just need to implement one method "execute()" in your action class and almost no code change to your portlet class is needed. You just specify what page to go to once the action is processed and the portlet has the code to automatically send you to the new page once the action is executed sucessfully. In case of an error that happens in your action's "execute()" method, the portlet will redirect you to the error page that gets created automatically for you when the portlet project was initially created.

Enhancements to this :

There are a couple of enhancements that I am still working on. If you think you can contribute to any of these please join in and contribute.

   - There are enhancements to the GUI for action creation needs some work. 


Suppose I want to develop a simple portlet which shows a form to collect some inputs from the user. The form might ask the user for his first name, last name and the email address. When the user submits this form, the data is collected at the server, and persisted to a data store. Once the data is persisted the user is shown a thank you page. Now assume the above needs to be done in a portlet. The scenario described above can be done using a portlet as shown below in the picture:



When developing this portlet the developer needs to write code in his processAction() method to do the following :


All the above needs to be done by the developer whenever he writes a particular action. ( This is one way of doing this )


I wanted to make this a little easier to do, so I have added new code to the Eclipse Portal Pack project to make this easier. This is a very early version of it, so please bear with it, as I make further improvements. But feel free to try it out and give suggestions, or better still join on the project and contribute.


Developing the above portlet with the Eclipse Portal Pack Project


A screencast of creating a simple portlet project and a sample portlet is shown here.


Now that we have a sample portlet ready. Let's go about adding this new action that we wanted. Let's first create the JSP page that will show the form to the user in the view mode. By default the project would have created a JSP for the view mode called view.jsp in your /WEB-INF/jsps/ folder. Open this JSP file and add the following code to it.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="UTF-8"%>
<%@page import="javax.portlet.*" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<portlet:defineObjects/>
<portlet:actionURL var="portletUrl" />

<form id="form1" name="form1" method="post" action="<%=portletUrl.toString()%>">
First Name : <input type="text" name="fname" type="text"><br/>
Last Name : <input type="text" name="lname" type="text"><br/>
Email : <input type="text" name="email" type="text"><br/>
<input type="submit" name="Submit">
</form>

The lines in bold indicate the form that will be displayed to the user in the view mode. It presents the user with fields to accept his first name, last name and email address and then there is the submit button which submits the form to the portlet via the portlet:actionURL variable defined above.


Now this is where the new Eclipse Plugin can help you in making your life easier. Let's call the action to collect the user data and put it to datastore as "CollectData". Right click on the portlet project in Eclipse, and down at the bottom you will see a menu entry called "Portlets->Create new Portlet Action" as shown below in the picture.



So here is what we want to do, we want to define a new action called CollectData, which we want implemented by a class of our choice, in this case lets say com.sun.portal.test.actions.CollectDataAction, and when our action is complete we want the portlet to take us to the page defined in /WEB-INF/jsps/done.jsp. So fill up the dialog box as shown below and click Ok. ( Like I said this is the first version so I haven't added any error checking as of yet, it will be coming pretty soon though ).



On clicking Ok, you will see a new action class called CollectDataAction created under the package com.sun.portal.test.actions. Open this class in Eclipse and it will appear as below:


package com.sun.portal.test.actions;

import javax.portlet.ActionRequest;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import com.sun.portlet.core.actions.ActionExecuteException;
import com.sun.portlet.core.actions.BaseActionFormBean;

public class CollectDataAction extends BaseActionFormBean {

 public CollectDataAction(ActionRequest request) {
super(request);
}

 @Override
public boolean execute(RenderRequest portletRequest,
RenderResponse portletResponse) throws ActionExecuteException {
// Put your logic of executing the action for this request here.
return true;
}

So as you can see, all you need to do is implement the method "execute()" in your CollectDataAction.java class. In the execute() method, you can access the form parameters that your view.jsp sent in as getParameter(String), getParameterNames() and getParameterValues(String) as usual.


Also to invoke this action the only other thing you will need to do is, add a hidden field in your view.jsp form called ACTION_NAME, and its value must exactly be the action you want executed when the form is submitted, which in our case is "CollectData". So our view.jsp page in completion will look as below :


<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="UTF-8"%>
<%@page import="javax.portlet.*" %>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<portlet:defineObjects/>
<portlet:actionURL var="portletUrl" />

<form id="form1" name="form1" method="post" action="<%=portletUrl.toString()%>">
First Name : <input type="text" name="fname" type="text"><br/>
Last Name : <input type="text" name="lname" type="text"><br/>
Email : <input type="text" name="email" type="text"><br/>
<input type="hidden" name="ACTION_NAME" value="CollectData">
<input type="submit" name="Submit">
</form>

The only changed line is shown in Bold and Italic.


That's all that is needed to implement this action from your side. Ofcourse, you need to write the done.jsp file to which the portlet will dispatch the view after the action is executed.


To summarise, to implement any new action, all you need to do in addition to writing the source JSP and the target JSP is :



Rest of the stuff is handled for you!!


Let me know if you like it, by posting your comments.



Posted by insidemyhead [Sun] ( July 03, 2007 04:03 PM ) Permalink | Comments[46]
Comments:

Great Job! But when I generate my first portlet I see that they lack some imports. WindowState. IOException. And when I click Finish to get the CollectDataAction it doesn't works. I must cancel in that moment. In spite of that, I see it very useful.

Posted by Mark on July 26, 2007 at 11:00 PM IST #

Did you see the following page on the eclipse-portalpack page to see if this is the problem for you..
https://eclipse-portalpack.dev.java.net/issues.html
Also if you can open an issue on the project page for the same and attach the .log file from your <USER_HOME>/workspace/.metadata to the issue report I should be able to help.

Posted by InsideMyhead on July 27, 2007 at 06:31 AM IST #

Hi, Great site. Just a very basic question. I am very new to all this stuff. I download the eclipse plugin and I can see that it is added some new stuff when I create new project, but If I take your example, how can I start the portlet container, i.e. how can I get to run? do I need any other software (glassfish?) Please help me to start! Marvin...

Posted by M Chevron on August 07, 2007 at 01:22 AM IST #

You can use the Open Source Portlet Container which can be downloaded from http://portlet-container.dev.java.net/ It would require you to have Glassfish/Tomcat to run it on. After you are done creating your portlets you can follow any of the methods to deploy the portlet on the Portlet Container listed on the following blog entry : http://blogs.sun.com/portal/entry/modes_of_portlet_deployment_on

Posted by insidemyhead on August 07, 2007 at 07:02 AM IST #

Thank you very much for the info. I thought you can do everything from within Eclipse. I want to be do extensive testing within eclipse before this is depoyed. Do you know how I can deploy portal container in Eclipse followed by deployemt of the portlat. I am already developing apps on tomcat within eclipse. I thank you again for your useful support!
Marvin...

Posted by M Chevron on August 07, 2007 at 06:10 PM IST #

<p>You can use the following plugin from eclipse-portalpack to register the Open Source Portlet Container inside Eclipse.<br />
com.sun.jsr168.portlet.plugin_1.0.0.jar</p>
<p><strong>Start/Stop Open Source Portlet Container from within Eclipse </strong></p>
<p>Ofcourse you will need to have the WTP plugin from Eclipse to be able to support servers inside Eclipse. With this plugin you will be able to start and stop the Portlet Container from within Eclipse.</p>
<p><strong>Now for deploying it from within Eclipse. </strong></p>
<p>Once you have the portlet application project created. A build.xml is created for you. In the build.xml file you will see a line such as the following :</p>
<pre>&lt;property name=&quot;ospc.home&quot; value=&quot;D:/Java/Tools/glassfish/domains/domain1/portlet-container&quot;/&gt; </pre>
<p>Modify this line above to point to the exact directory where your portlet container is installed. The above path is from my machine where the Glassfish container is installed in d:/Java/Tools/glassfish, and under that the portlet container is installed. Once you have modified the above line and then when you run the &quot;deploy&quot; target of the build.xml the portlet application will automatically get deployed on the portlet container from within Eclipse.</p>
<p>Just as a side note, Portlet Container can also be installed on Tomcat. So if you have installed Tomcat already then you can deploy the portlet container on Tomcat following the <a href="https://portlet-container.dev.java.net/public/TomcatInstallation.html">instructions here</a></p>
<p>Then again change the ospc.home path to point to the path of Portlet Container on Tomcat and you should be able to deploy and test on Tomcay as well.</p>
<p>&nbsp;</p>
<p>Thanks</p>
<p>- Sandeep Soni </p>

Posted by insidemyhead on August 07, 2007 at 06:49 PM IST #

hi i have tried creating a new project. but whenever i click the "JSR portlet project creator" i'm getting an error as plug-in "com.sun.jsr168.portlet.plugin was unable to load class com.sun.jsr168.portlet.plugin.wizards.Portletwizard".
I have placed the Jar file of version1.1.0 inside the plug-in folder of Eclipse. Looking forward for your help

Posted by senthil on August 07, 2007 at 06:53 PM IST #

You can use the following plugin from eclipse-portalpack to register the Open Source Portlet Container inside Eclipse.
com.sun.jsr168.portlet.plugin_1.0.0.jar

Start/Stop Open Source Portlet Container from within Eclipse

Ofcourse you will need to have the WTP plugin from Eclipse to be able to support servers inside Eclipse. With this plugin you will be able to start and stop the Portlet Container from within Eclipse.

Now for deploying it from within Eclipse.

Once you have the portlet application project created. A build.xml is created for you. In the build.xml file you will see a line such as the following :

<property name="ospc.home" value="D:/Java/Tools/glassfish/domains/domain1/portlet-container"/>

Modify this line above to point to the exact directory where your portlet container is installed. The above path is from my machine where the Glassfish container is installed in d:/Java/Tools/glassfish, and under that the portlet container is installed. Once you have modified the above line and then when you run the "deploy" target of the build.xml the portlet application will automatically get deployed on the portlet container from within Eclipse.

Just as a side note, Portlet Container can also be installed on Tomcat. So if you have installed Tomcat already then you can deploy the portlet container on Tomcat following the instructions here

Then again change the ospc.home path to point to the path of Portlet Container on Tomcat and you should be able to deploy and test on Tomcay as well.

Thanks

- Sandeep Soni

Posted by insidemyhead on August 07, 2007 at 06:53 PM IST #

Senthil,

You will need to use Eclipse with JRE1.5 for it to run. If you are running with JRE 1.4 this could be the problem. If you want to use with JRE 1.4 you will have to download source code and open it in Eclipse and compile it for JRE 1.4

Posted by insidemyhead on August 07, 2007 at 06:59 PM IST #

hi sandeep,

I have JRE 1.5 installed. but still i'm facing this problem. Or else can u please say me where i can update the JRE path in eclipse to 1.5, so that i may not face this error.

Posted by senthil on August 07, 2007 at 07:14 PM IST #

Senthil, please have a look <a href="http://blogs.sun.com/insidemyhead/resource/installed-jre.PNG">here</a>

Posted by insidemyhead on August 07, 2007 at 07:22 PM IST #

hi sandeep,

Thanks a ton for your help. i have changed the JRE as well as the "path" variable in the environmental variables. thanks.. :-)

Posted by senthil on August 07, 2007 at 07:39 PM IST #

hi sandeep,

i found a propery tag in portlet.xml which shows this path. Also it was mentioned above to enter the container install path. But i have not installed it in my PC rather i kept it as a the plugin as a .jar file

<property name="ospc.home" value="D:/Java/Tools/glassfish/domains/domain1/portlet-container"/>

so can u say me with what path can i replace this..

Posted by senthil on August 09, 2007 at 05:33 PM IST #

ospc = Open Source Portlet Container.

Refer to my previous comment in this post at http://blogs.sun.com/insidemyhead/entry/new_version_of_eclipse_portal#comment-1186493010000

Posted by insidemyhead on August 09, 2007 at 06:37 PM IST #

HI
I can create projects ok, I did the workaround described in "tips".

But when I try to create an action and press finish .. nothing happens

What do I do wrong?

Posted by Pehr on October 05, 2007 at 02:18 PM IST #

What do you mean nothing happens? The classes don't get created? The files generated do not actually get opened in the IDE, you need to open the project hierarchy and open them from there. Are the files not there?

If possible can you open a case on the project site, and attach your .log file created in your Eclipse Workspace folder. On windows it would be at:%USERPROFILE%\workspace\.metadata

Posted by Sandeep Soni on October 18, 2007 at 02:35 PM IST #

How can i implement my CollectDataAction ? , i've tried to follow this example without any other code into CollectDataAction...
The JSP dispatch don't happen!!
Someone can explain an filled example of the class CollectDataAction.
I don't know...
Thanks

Posted by Larry on December 20, 2007 at 03:15 AM IST #

Hi Larry,

Do you have an actions.ini file in your project. Can you see if it is populated with entries you entered in the "Create a new Portlet Action" screen?

Posted by Sandeep Soni on December 20, 2007 at 08:26 AM IST #

Hi,
The actions.ini is populated with entries, like this :
[CollectData]
Class=myportlet.CollectDataAction
NextPage=/WEB-INF/jsps/done.jsp
------------------------
My catalina.out log file :
INFO: Instantiating ActionFormBean : myportlet.CollectDataAction and will redirect to /WEB-INF/jsps/done.jsp after executing action
------------------------
Have i to put always some java-code in the CollectDataAction execute() method ?

It's seems that nothing happen...

Can you post a HelloWord project with action support? (or send to e-mail)
Thanks 10000000000 :)

Posted by Larry on December 20, 2007 at 03:16 PM IST #

Hi,
i've tried to deploy the HelloWorld portlet into the GlassFish/PortletContainer and it work successfully.

I think that my problem is only on the deployment of this HelloWorld portlet into INFOGLUE CMS.
Other simple portlets without actions, in INFOGLUE CMS work successfully... :(

Someone can help me ?
Thanks
Larry

Posted by Larry on December 21, 2007 at 09:34 PM IST #

Hi Larry,

Logs from the Infoglue CMS system should be useful to help diagnose what the problem is.

Right after the "INFO: Instantiating ActionFormBean : myportlet.CollectDataAction and will redirect to /WEB-INF/jsps/done.jsp after executing action" line in the logs, is there a stack trace that is shown in the logs... Make sure you are running Tomcat with the FINEST setting for the log level. Then restart Tomcat and try the portlet again. Hopefully you will see a stacktrace that should help us diagnose the problem further.

Posted by Sandeep Soni on December 22, 2007 at 11:30 AM IST #

Hi,
the logs stacktrace :

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1265)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1243)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
at org.apache.pluto.core.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:193)
at org.apache.pluto.core.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:96)
at com.sun.portlet.core.BasePortlet.populateFormBean(BasePortlet.java:61)
..............

(Tomcat 5.5.25 - Windos XP 32 bit installation)

Have you a idea of what is it?
Thanks
:)

Posted by Larry on December 23, 2007 at 03:33 AM IST #

i've tried the old (?) plugin version, but nothing to do.
I can see only the first view of the Portlet(step 1), but when i click on the submit button... i receive the same exception :
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1265)
at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1243)
at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:130)
at org.apache.pluto.core.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:193)
at org.apache.pluto.core.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:96)
at com.sun.portlet.core.BasePortlet.populateFormBean(BasePortlet.java:61)
..............

I think that is a Session issue of INFOGLUE CMS when process the actions...
Probably is not a "real" error, we have to add something in the portlet for a complete compatibility.

I think that your plugin is very useful, a great utility!
I'm sorry for this issue with INFOGLUE (that is not easy to learn).

Merry Christmas !!
L.

Posted by Larry on December 23, 2007 at 07:12 PM IST #

Ohhhoooooooo solved !! ;)
We have only to serialize action classes.
Now it works successfully in INFOGLUE CMS.
Can you include this code in next release of the plugin!?
Thanks 1000 for the support.
Bye bye (for now eheh)
Larry

import java.io.Serializable;

import javax.portlet.ActionRequest;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import com.sun.portlet.core.actions.ActionExecuteException;
import com.sun.portlet.core.actions.BaseActionFormBean;

public class CollectDataAction extends BaseActionFormBean implements Serializable {

/**
*
*/
private static final long serialVersionUID = 1L;
............

Posted by Larry on December 24, 2007 at 01:10 AM IST #

Hi larry,

Sure, will do that. Thanks a lot. The patch URL I had provided earlier, had made the BaseActionFormBean serializable. Just wanted to see if it solves the problem, but it also requires the various action classes also serializable, and I will incorporate the changes in the next release soon.

Thanks
- Sandeep Soni

Posted by Sandeep Soni on December 24, 2007 at 07:32 AM IST #

I still have a problem, with the actual plugin (com.sun.jsr168.portlet.plugin_1.1.0.jar) & the serialized actions in INFOGLUE CMS i can execute only 1 action for session istance.

Nothing in logs , no ERRORs...
Something in cache?
Is a problem if BaseActionFormBean is not serialized ?
I see that my second action is not executed only a log SYSOUT : Instantiating ActionFormBean... but not executed the relative action class !! :(

I've tried my application in GlassFish/PortletContainer & is ALL ok, perfect... 3 action classes, with DB connection !!... run forever :)...

Can i download the source code of portlet-framework?

Have you tried a portlet with some actions in Infoglue?

Posted by Larry on December 29, 2007 at 02:03 AM IST #

Mmmm,
i've partially solved this issue in INFOGLUE.
I need to set my deliver.properties :

################################
#Properties for the cms
################################

#Cache-settings
isPageCacheOn=false
useSelectivePageCacheUpdate=false

... is a cache issue of the portlet, but i can't parametrize the portlet.xml, because infoglue ignore the cache settings :(... (i think)

Now my portlet with 3 different actions is operative in INFOGLUE...

I hope that some of this tips can help who have the same problems.

Bye bye again
(and sorry for all my posts)

Posted by Larry on December 29, 2007 at 02:25 AM IST #

Hi Larry,

Thanks for posting the last post showing how to get Infoglue to not cache the portlet actions.

I had uploaded the updated version of the portalpack under Document And Files section at https://eclipse-portalpack.dev.java.net/files/documents/6568/60978/com.sun.jsr168.portlet.plugin_1.1.0.jar

This one, will generate the new actionbeans which are serialized. And also the BaseActionBean is serialized as well. You should use this one.

In any case it seems with these changes also you might need to configure deliver.properties to get it to work. But do try the new version with the original deliver.properties and let me know.

Posted by Sandeep Soni on December 29, 2007 at 02:24 PM IST #

I've tried the modified 1.1.0 version of JSR-168 plugin... here a little report:

- There is yet the "issue" with INFOGLUE CMS , if i don't modify my deliver.properties file (cache).

- With deliver.properties modified, the JSR-168 plugin work successfully!! (no errors , or strange logs)... and create serialized action classes :)

- I've seen that you have modified something about "ActionExecuteException" & "error.jsp / dispatching", that are not present in this version of plugin. Is ok ?

Thanks for support & happy new year :)

Larry

Posted by Larry on January 01, 2008 at 09:15 PM IST #

Hi,
I am new to portal technologies, earlier I down loaded "helloworldjspportlet"
and executed on JBossPortal, now I downloaded eclipse portal pack and develope the project but it will not giveing some files (like portlet-instance.xml, *-object.xml)
which are available in downloaded example.
plz give me suggestion how to develope portets and how to deploy and how to call it(I am using JBossPortal)

waiting for ur reply..

Regards,
Dilip

Posted by Dilip on May 27, 2008 at 08:26 PM IST #

hi, i cant use eclipse portal pack as i need to do it using icecore . so can u suggest me what kind of changs i need to do in the code given by you and what changes to be done with respect to the editor?

Posted by shweta on June 21, 2008 at 11:14 AM IST #

The eclipse portalpack is for developing portlets to be deployed in portal servers which can run JSR-168 compliant portlets. So unless icecore is that, you really have no use for the portalpack.

Posted by Sandeep Soni on June 21, 2008 at 11:25 AM IST #

Hello Sandeep! This is a very good tutorial. It added a lot to my knowledge about Portlets. I followed the steps you mentioned in the tutorial. But I am now stuck in running this portlet. I have seen other tutorials to deploy the portlet. One of which is,

http://blogs.sun.com/portal/entry/modes_of_portlet_deployment_on

This too was a good tutorial. But the major problem is that Eclipse treats the Portlet project as Java Application, not as a J2EE Application. This is the reason that I am not able to generate the WAR file, and thus unable to deploy the portlet. Please help me in this hour of need.

Posted by Muhammad Kashif Nazar on June 27, 2008 at 12:00 PM IST #

See the comment above for :
http://blogs.sun.com/insidemyhead/entry/new_version_of_eclipse_portal#comment-1186492765000

A build.xml is generated in your project
which can be used to get the WAR file.

There is work in progress that is going
to make the project a J2EE project as well. FYI.

Posted by Sandeep Soni on June 27, 2008 at 12:09 PM IST #

See this

http://blogs.sun.com/insidemyhead/resource/eclipse-build.png

for how you can use build.xml that is
generated in the project to build a war
file.

Posted by Sandeep Soni on June 27, 2008 at 04:04 PM IST #

Thanks again for your response. Please bear with me as I am still having problem. When I try the above suggestion, I get this error

D:\Projects\Eclipse\FirstPortlet\build.xml:33: Error starting modern compiler

I have followed the above tutorial and no modification did I make on my side. Please help me. Thanks

Posted by Muhammad Kashif Nazar on June 27, 2008 at 04:16 PM IST #

You need to have Eclipse use a JDK
and not a JRE.

In Eclipse go to Window->Prefernces

Under Java->Installed JRE, make sure
there is a JDK listed there and not a JRE.

Remove all JRE entries and add an entry for a JDK. Then run the ant build
again.

Posted by Sandeep Soni on June 27, 2008 at 04:24 PM IST #

Thanks. I have got the solutions of my problem the other way. The Portlet project can be converted into J2EE project using the following steps.

Right click the Project Name -> MyEclipse -> Add Web Project Capabilities and then Select the J2EE Level according to your requirements.

The problem was there with build.xml generated by Portlet Creator. I just commented line # 33. I hope there won't be any consequences.

I am now deploying the war file into GlassFish Portlet Driver using PortletDriver admin.

Can I do this same thing automatically, using Eclipse?

and my second question is regarding to portlet contents?

Where can I define the contents of a portlet?

Posted by Muhammad Kashif Nazar on June 27, 2008 at 05:10 PM IST #

Hi,
I am developing application using Jboss portal 2.6.5. I followed the tutorial but it is not creating the portlet.xml file. Can you please suggest me how to do this using portalpack?

Posted by Sudip on July 24, 2008 at 06:47 PM IST #

Did you check the issues page on the eclipse portalpack website on the right hand side of the home page.

-Sandeep Soni

Posted by Sandeep Soni on July 24, 2008 at 06:56 PM IST #

Sandeep i just accesed that page but i am not getting the solution.In addtion to i am trying to create the application using jboss portal server, but the files like portle-instances.xml and xyz-object.xml is not creating.Is there any way to create these files through portal pack?

Posted by Sudip on July 24, 2008 at 10:20 PM IST #

No. The artifacts that are generated are the pure JSR-168 specific artifacts. Any portal server specific artifacts are not generated automatically and you will have to manually write them.

Posted by Sandeep Soni on July 24, 2008 at 10:24 PM IST #

I went through the issue page and i followed the steps described there.But under [ECLIPSE_HOME] folder there is no file with name 'jaxb-api.jar'.Can you help regarding this ?

Posted by Sudip on July 25, 2008 at 10:21 AM IST #

When creating a new JSR-168 portlet class, the dialog box remains on screen even when the finish button is pressed.

I followed the link https://eclipse-portalpack.dev.java.net/issues.html but no use.
My eclipse.ini values are
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Djava.endorsed.dirs=C:\Eclipse 3.4\eclipse\configuration\org.eclipse.osgi\bundles\7\1\.cp\lib
-Xms40m
-Xmx512m

Note: There were no previous entries for the jaxb jars.

Am I editing the exact file?

Posted by Srinivasa Babu on October 18, 2008 at 12:46 AM IST #

Hi,

I have the same problem as Sudip and Srinivasa Babu: I have the problem described on the issues page, and was hoping to solve it using the described solution, but I can't find any jaxb*.jar file on my computer. I'm using Eclipse 3.4.1 .
Also, in the solution it is said that the correct JAXB version is shipped with the plugin: after looking for it in the plugin's jar files, I haven't found anything.

Thanks !

--
Vincent

Posted by Vincent on February 04, 2009 at 04:40 AM IST #

hi sir,
This is Nagi reddy working as assistant professor in G.Pulla reddy engineering college,kurnool.. i heard that you have good experience in teaching of ms.net...please can you help me by providing material for ms.net...
thanking you sir,

yours faithfiully,
Nagi reddy.

Posted by Nagi reddy on April 02, 2009 at 04:38 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed