History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UP-1792
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Andrew Wills
Reporter: Eric Dalquist
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
uPortal

initportal / deployPortletApp fail if svn.apache.org is inaccessible

Created: 13/Aug/07 10:03 AM   Updated: 29/Aug/07 05:31 PM
Component/s: Build/Deploy Management
Affects Version/s: 2.6.0 GA
Fix Version/s: 2.6.1 RC1

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
The deployPortletApp task fails if http://svn.apache.org/repos/asf/portals/pluto/tags/pluto-1.1.1/pluto-taglib/src/main/resources/META-INF/portlet.tld is not accessible for any reason. This causes dependent tasks such as initportal to fail as well.

The failure may look something like this:

C:\temp\uPortal>ant deployPortletApp -DportletApp=helloworld.war

Buildfile: build.xml

 

prepare:

 

compile:

 

deployPortletApp:

     [echo] Invoking Portlet Application Deployment Tool

 

     [java] ** Deploying the Specified Portlet Application **

     [java] Deploying Portlet Application: helloworld.war

     [java] Exception in thread "main" java.lang.RuntimeException: Unable to inv

oke the specified script: classpath://org/jasig/portal/container/deploy/deploy-

portlet-app.crn

     [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask

.java:91)

     [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(Run

timeTaskDecorator.java:58)

     [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(Ab

stractContainerTask.java:111)

     [java] at org.danann.cernunnos.flow.IfTask.perform(IfTask.java:62)

     [java] at org.danann.cernunnos.flow.ChooseTask.perform(ChooseTask.java:

110)

     [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(Run

timeTaskDecorator.java:58)

     [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.ja

va:182)

     [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.ja

va:143)

     [java] at org.danann.cernunnos.runtime.ScriptRunner.run(ScriptRunner.ja

va:111)

     [java] at org.danann.cernunnos.runtime.Main.main(Main.java:42)

     [java] Caused by: java.lang.RuntimeException: Unable to copy the specified

file [http://svn.apache.org/repos/asf/portals/pluto/tags/pluto-1.1.1/pluto-tagli

b/src/main/resources/META-INF/portlet.tld] in the specified context [file:/C:/te

mp/uPortal/./]to the specified location [C:/Tomcat/webapps/uPortal/../helloworld

/WEB-INF/tld/portlet.tld].

     [java] at org.danann.cernunnos.io.CopyFileTask.perform(CopyFileTask.jav

a:129)

     [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(Run

timeTaskDecorator.java:58)

     [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(Ab

stractContainerTask.java:111)

     [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttribu

teTask.java:66)

     [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(Run

timeTaskDecorator.java:58)

     [java] at org.danann.cernunnos.AbstractContainerTask.performSubtasks(Ab

stractContainerTask.java:111)

     [java] at org.danann.cernunnos.core.SetAttributeTask.perform(SetAttribu

teTask.java:66)

     [java] at org.danann.cernunnos.runtime.RuntimeTaskDecorator.perform(Run

timeTaskDecorator.java:58)

     [java] at org.danann.cernunnos.core.CernunnosTask.perform(CernunnosTask

.java:87)

     [java] ... 9 more

     [java] Caused by: java.net.ProtocolException: Server redirected too many t

imes (20)

     [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht

tpURLConnection.java:1178)

     [java] at org.danann.cernunnos.io.CopyFileTask.perform(CopyFileTask.jav

a:105)

     [java] ... 17 more

 

BUILD FAILED

C:\temp\uPortal\build.xml:1241: Java returned: 1

 

Total time: 18 seconds

C:\temp\uPortal>

 All   Comments   Work Log   Change History      Sort Order:
Eric Dalquist [13/Aug/07 10:04 AM]
The tld file should be included in the distribution and referenced from the local file system.

Andrew Wills [13/Aug/07 03:49 PM]
Changed to copy portlet.tld from the classpath. It resides in the same package as the deploy script (org.jasig.portal.container.deploy).