Thanks!

j2:nodbQuickDeploy seemed to do the trick.

I tried to create "hello world" and deploy it using the goal you have stated
above.
Created the webinf/classes/hello.java as well as the webinf/web.xml and
webinf/portlet.xml

Followed teh steps with the exact code as it shows on
http://portals.apache.org/jetspeed-2/guides/guide-simple-portlet.html

On my portal page it shows a tab but in the portlet it shows:


*Title Error: Cannot pass a null PortletDefinition to a PortletEntity. *
**
*  Failed to retrieve Portlet Definition for simplest::SimplestFailed to
retrieve Portlet Definition for simplest::
Simplestjava.lang.IllegalArgumentException: Cannot pass a null
PortletDefinition to a PortletEntity.Failed to retrieve Portlet Definition
for simplest::SimplestFailed to retrieve Portlet Definition for
simplest::Simplest *

Any ideas?

Thanks,
Akshay


On 6/15/06, Randy Watler <[EMAIL PROTECTED]> wrote:

Akshay,

I am not terribly familiar with j2:fullDeploy, but you might want to try
a nodb goal instead if you are just performing portlet development. I am
not sure if that is strictly required for the genapp builds. See the M1
plugin documents for available goals:

http://portals.apache.org/jetspeed-2/j2-maven-plugin.html

HTH,

Randy


On Thu, 2006-06-15 at 12:41 -0400, Akshay Ahooja wrote:
> Hi,
>
>
> 1) When I use j2:quickStart it compiles and runs fine. But when I run
> j2:fullDeploy I get the following error:
>
>  j2:_db.execute:
>     [sql] Executing file: C:\myportal\target\portal-sql\mysql\populate-
> userinfo-for-default-psml.sql
>     [sql] [ERROR] Failed to execute: INSERT INTO PREFS_NODE
> VALUES(1,NULL,'',0,'/','2004-05-22 14:57: 53.586','2004-05-22 14:57:
53.586')
>
> BUILD FAILED
> File...... C:\Documents and Settings\aahuja\.maven\cache\maven-
> jetspeed2-plugin-2.0\plugin.jelly
> Element... sql
> Line...... 839
> Column.... 44
> java.sql.SQLException: Duplicate entry '1' for key 1
> Total time: 54 seconds
> Finished at: Tue Jun 13 12:21:42 EDT 2006
>
> This is on the base demo portal. I have not played around with the
tables in
> mysql at all.
>
> 2) I'm just starting out development - and having a very tough time
getting
> started. With the help of Aaron, everything is installed and set up but
I
> have some basic fundamental questions:
>
> Once jetspeed is set up - I do all my development in the basedir
> (C:/myportal/)- and then use j2:fullDeploy to put it up on tomcat (this
> won't delete my previous information)?
>
>    1. Set up jetspeed with default portal (j2:quickStart)
>    2. Work in the basdir for any development/changes/updates
>    3. Put it back up on tomcat using j2:fullDeploy
>
> Or is another method followed? If anyone has any documentation for this
> please do let me know. I cant seem to find any tutorials like there are
for
> jetspeed-1. Trying to get a concrete base as to how the program flow of
> jetspeed works. Having one complete example (with file paths) of how to
> build a portlet right after initial installation would be great. If this
> does not exist, then if someone can point me to the correct files (file
> paths) to look through in the demo portal to learn basic portlets - it
would
> also be very helpful.
>
> Thanks!
>
> Akshay


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to