You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Nguyen Viet Trieu <jv...@yahoo.com> on 2005/05/16 11:40:29 UTC
problem when deploy first portlet using maven war:deploy
I have tested the pluto sample. It's nice. But when i
try to deploy my portlet so that it
locate in third column I obtain the following
exception:
SEVERE: Error in Portlet
java.lang.NullPointerException
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:109)
at
org.apache.pluto.invoker.impl.PortletInvokerImpl.load(PortletInvokerImpl.java:80)
at
org.apache.pluto.PortletContainerImpl.portletLoad(PortletContainerImpl.java:201)
at
org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.portletLoad(PortletContainerWrapperImpl.java:94)
at
org.apache.pluto.portalImpl.aggregation.PortletFragment.service(PortletFragment.java:120)
at
org.apache.jsp.WEB_002dINF.aggregation.ColumnFragment_jsp._jspService(ColumnFragment_jsp.java:65)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
...............
i think it's due to i have not deploy my portlet by
using maven war:deploy.
So i created folder which name is first and placed it
into E:\test2.
when i typed maven war:deploy i,again,obtain the
follwing error:
E:\test2>maven war:deploy
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
war:init:
war:war-resources:
[copy] Copying 1 file to
E:\test2\target\first\WEB-INF
java:prepare-filesystem:
java:compile:
[echo] Compiling to E:\test2/target/classes
[echo]
==========================================================
NOTE: Targetting JVM 1.5, classes
will not run on earlier JVMs
==========================================================
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
[echo] No test source files to compile.
test:test:
[echo] No tests to run.
war:webapp:
[echo] Assembling webapp first
war:war:
[echo] Building WAR first
[jar] Building jar: E:\test2\target\first.war
war:deploy:
[echo] maven.repo.list is set - using artifact
deploy mode
Will deploy to 1 repository(ies): R1
Deploying to repository: R1
Deploying:
E:\test2\project.xml-->test2/poms/first-.pom
Failed to deploy to: R1 Reason: Unable to connect to
'http://localhost:8080'
BUILD FAILED
File...... C:\Documents and Settings\VIET
TRIEU\.maven\cache\maven-artifact-plug
in-1.4.1\plugin.jelly
Element... artifact:artifact-deploy
Line...... 94
Column.... 13
Unable to deploy to any repositories
Total time: 8 seconds
Finished at: Mon May 16 16:18:06 ICT 2005
Tomcat have already started.
this is my project.xml
<project>
<groupId>test2</groupId>
<artifactId>first</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.8</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<unitTest>
<includes>
<include>**/*.java</include>
</includes>
</unitTest>
</build>
</project>
and build.properties :
maven.username=viet trieu
maven.repo.list=R1
maven.war.src=${basedir}/src/main/webapp
#settings for repository 'R1'
maven.repo.R1=http://localhost:8080
maven.repo.R1.username=admin
maven.repo.R1.password=123456
#maven.repo.R1.directory=/web/repository
Could any one help me?
Thank you very much
Viet Trieu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: problem when deploy first portlet using maven war:deploy
Posted by "David H. DeWolf" <dd...@apache.org>.
It sounds to me like you have not registered the portlet app in the
portletcontexts.txt file. Unfortunately, the deployer does not
currently do that for you. The file is located in
<pluto-webapp>/WEB-INF/data
David
Nguyen Viet Trieu wrote:
> I have tested the pluto sample. It's nice. But when i
> try to deploy my portlet so that it
> locate in third column I obtain the following
> exception:
>
> SEVERE: Error in Portlet
> java.lang.NullPointerException
> at
> org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:109)
> at
> org.apache.pluto.invoker.impl.PortletInvokerImpl.load(PortletInvokerImpl.java:80)
> at
> org.apache.pluto.PortletContainerImpl.portletLoad(PortletContainerImpl.java:201)
> at
> org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.portletLoad(PortletContainerWrapperImpl.java:94)
> at
> org.apache.pluto.portalImpl.aggregation.PortletFragment.service(PortletFragment.java:120)
> at
> org.apache.jsp.WEB_002dINF.aggregation.ColumnFragment_jsp._jspService(ColumnFragment_jsp.java:65)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> ...............
> i think it's due to i have not deploy my portlet by
> using maven war:deploy.
> So i created folder which name is first and placed it
> into E:\test2.
> when i typed maven war:deploy i,again,obtain the
> follwing error:
>
> E:\test2>maven war:deploy
> __ __
> | \/ |__ _Apache__ ___
> | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
> |_| |_\__,_|\_/\___|_||_| v. 1.0.2
>
> build:start:
>
> war:init:
>
> war:war-resources:
> [copy] Copying 1 file to
> E:\test2\target\first\WEB-INF
>
> java:prepare-filesystem:
>
> java:compile:
> [echo] Compiling to E:\test2/target/classes
> [echo]
> ==========================================================
>
> NOTE: Targetting JVM 1.5, classes
> will not run on earlier JVMs
>
> ==========================================================
>
>
> java:jar-resources:
>
> test:prepare-filesystem:
>
> test:test-resources:
>
> test:compile:
> [echo] No test source files to compile.
>
> test:test:
> [echo] No tests to run.
>
> war:webapp:
> [echo] Assembling webapp first
>
> war:war:
> [echo] Building WAR first
> [jar] Building jar: E:\test2\target\first.war
>
> war:deploy:
> [echo] maven.repo.list is set - using artifact
> deploy mode
> Will deploy to 1 repository(ies): R1
> Deploying to repository: R1
> Deploying:
> E:\test2\project.xml-->test2/poms/first-.pom
> Failed to deploy to: R1 Reason: Unable to connect to
> 'http://localhost:8080'
>
> BUILD FAILED
> File...... C:\Documents and Settings\VIET
> TRIEU\.maven\cache\maven-artifact-plug
> in-1.4.1\plugin.jelly
> Element... artifact:artifact-deploy
> Line...... 94
> Column.... 13
> Unable to deploy to any repositories
> Total time: 8 seconds
> Finished at: Mon May 16 16:18:06 ICT 2005
>
> Tomcat have already started.
> this is my project.xml
> <project>
> <groupId>test2</groupId>
> <artifactId>first</artifactId>
> <version>1.0-SNAPSHOT</version>
> <dependencies>
> <dependency>
> <groupId>log4j</groupId>
> <artifactId>log4j</artifactId>
> <version>1.2.8</version>
> </dependency>
> </dependencies>
> <build>
> <sourceDirectory>src/main/java</sourceDirectory>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> </resource>
> </resources>
> <unitTest>
> <includes>
> <include>**/*.java</include>
> </includes>
> </unitTest>
> </build>
> </project>
>
> and build.properties :
>
> maven.username=viet trieu
> maven.repo.list=R1
> maven.war.src=${basedir}/src/main/webapp
>
> #settings for repository 'R1'
> maven.repo.R1=http://localhost:8080
> maven.repo.R1.username=admin
> maven.repo.R1.password=123456
> #maven.repo.R1.directory=/web/repository
>
> Could any one help me?
> Thank you very much
> Viet Trieu
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>