pdeploy problem

Hi,

While pdeploy I am getting null as output. I have given the code here please verify.

/opt/sun/portal/bin/pdeploy deploy u amadmin -w password -d " uid=amAdmin,ou=People,dc=<name>,dc=com" p password examples.war

[DEBUG] Getting Jar File from war...

[DEBUG] Getting Portlet DD as Stream...

null

I have tried to run the example for my first webapplication followed the steps given in the chapter 6 of sun one guide. But I am facing the above problem.

I have verified the pdeploy.debug file. It shows me the following

ERROR: Exception:

java.lang.NullPointerException

at java.util.zip.ZipFile.getInputStream(ZipFile.java:287)

at java.util.jar.JarFile.getInputStream(JarFile.java:380)

at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:92)

at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCom mand.java:209)

at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:60 )

I am using linux centos.

I am using portalserver 6.0 and application server as a webcontainer.

I would appreciate if any help to solve this problem. Thanks in advance.

Thanks,

Muthu x+

[1252 byte] By [MuthuJAVA] at [2007-11-25 22:09:22]
# 1
It looks like the .war file might have the wrong structure. Double check the war file has a structure like:$ jar tvf examples.warWEB-INF/WEB-INF/web.xmlWEB-INF/portlet.xmlWEB-INF/classes/examples/PrefPortlet.class
ziebold at 2007-7-5 1:50:03 > top of Java-index,Web & Directory Servers,Portal Servers...
# 2

Hi,

Thanks for the reply,

I have tried with the format which you have specified. This time while pdeploy I am getting different exception. I have state below

/opt/sun/portal/bin/pdeploy deploy -u amadmin -w <password> -d "uid=amAdmin,ou=People,dc=<name>,dc=com" -p <password> examples.war

Exception getting xml as stream: java.io.IOException: No such file or directory

The pdeploy.debug shows me the following error message

ERROR: Exception:

com.sun.portal.portlet.cli.PortletDeployerException: Exception getting xml as stream: java.io.IOException: No such file or directory

at com.sun.portal.portlet.cli.PDDeploy.process(PDDeploy.java:113)

at com.sun.portal.portlet.cli.PortletDeployerCommand.runCommand(PortletDeployerCommand.java:209)

at com.sun.portal.portlet.cli.PortletDeployerMain.main(PortletDeployerMain.java:60)

I have changed the path of the dtd file in the web.xml from http://java.sun.com/dtd/web-app_2_3.dtd to /opt/sun/appserver/lib/dtds/web-app_2_3.dtd and tried process again. But getting the same error stated above.

Any help appriciated Thanks in advance.

Thanks

Muthu x+

MuthuJAVA at 2007-7-5 1:50:03 > top of Java-index,Web & Directory Servers,Portal Servers...
# 3
Here is the declaration that I use:<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "file:/etc/opt/SUNWps/dtd/web-app_2_3.dtd"> - Jim
jimfaut at 2007-7-5 1:50:03 > top of Java-index,Web & Directory Servers,Portal Servers...
# 4

Hi Jim,

After I have changed the web.xml as you mentioned then also getting the same

exception.

Exception getting xml as stream: java.io.IOException: No such file or directory

Any help would be appricieated. Thanks in advance.

Thanks,

MuthuJAVA

MuthuJAVA at 2007-7-5 1:50:03 > top of Java-index,Web & Directory Servers,Portal Servers...