I tried to create the tutorial that you referrenced in Eclipse and deploy it.
I ended up with the 4 xml files specified (default-object.xml, portlet.xml, portlet-instances.xml, and web.xml) under WEB-INF. I have a path WEB-INF/classes/org/jboss/portal/portlet/samples to my SimplestHelloWorldPortlet.class In addition, I have a WEB-INF/lib directory that contains the following jars: explode.jar, portal-common-lib.jar, and portlet-api-lib.jar I needed to add these jars for the class file. I zipped everything beneath the WebContent directory which included the WEB-INF and META-INF contents. When I dropped it into the deploy directory I get the following error message: 16:04:42,134 WARN [PortletAppDeployment] Failed to create instance SimplestHelloWorldInstance of portlet /SimplestHelloWorldPortlet.SimplestHelloWorldPortlet because portlet /SimplestHelloWorldPortlet.SimplestHelloWorldPortlet is not available The tutorial did not specify the contents for web.xml so I used the following: <?xml version="1.0"?> | <!DOCTYPE web-app PUBLIC | "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" | "http://java.sun.com/dtd/web-app_2_3.dtd"> | <web-app> | </web-app> Here are the contents for the remaining xml files: portlet-instances.xml: <?xml version="1.0" standalone="yes"?> | <!DOCTYPE deployments PUBLIC | "-//JBoss Portal//DTD Portlet Instances 2.6//EN" | "http://www.jboss.org/portlet/dtd/portlet-instances_2_6.dtd"> | <deployments> | <deployment> | <instance> | <instance-id>SimplestHelloWorldInstance</instance-id> | <portlet-ref>SimplestHelloWorldPortlet</portlet-ref> | </instance> | </deployment> | </deployments> portlet.xml <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd | http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" | version="2.0"> | <portlet> | <portlet-name>SimplestHelloWorldPortlet</portlet-name> | <portlet-class> | org.jboss.portal.portlet.samples.SimplestHelloWorldPortlet | </portlet-class> | <supports> | <mime-type>text/html</mime-type> | </supports> | <portlet-info> | <title>Simplest Hello World Portlet</title> | </portlet-info> | </portlet> | </portlet-app> default-object.xml <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE deployments PUBLIC | "-//JBoss Portal//DTD Portal Object 2.6//EN" | "http://www.jboss.org/portal/dtd/portal-object_2_6.dtd"> | <deployments> | <deployment> | <parent-ref>default</parent-ref> | <if-exists>overwrite</if-exists> | <page> | <page-name>SimplestHelloWorld</page-name> | <window> | <window-name>SimplestHelloWorldWindow</window-name> | <instance-ref>SimplestHelloWorldInstance</instance-ref> | <region>center</region> | <height>0</height> | </window> | </page> | </deployment> | </deployments> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181116#4181116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181116 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
