Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dave Willis
Exceptions During Deploy [resolved]
August 12, 2009 1:19 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

I just created a new portlet using the SDK's create.sh script. It's a Struts portlet so I finished fleshing it out with files from my previous portlet, changing names and references accordingly. The build path didn't have any JAR files in it at all so I added each JAR that was in my previous portlet to this one and refreshed the project. I also added ext and portal to the sources tab. Basically, I tried to make it just like my previous, working, portlet but with the names and references changed accordingly. When I deploy it compiles just fine and then copies over all the files but as soon as it starts to deploy I get a ton of exceptions. These are as follows:

 121:13:21,349 INFO  [PortletAutoDeployListener:87] Portlets for /Users/davidwillis/Sites/deploy/sports-ticker-portlet-5.2.4.1.war copied successfully. Deployment will start in a few seconds.
 2Aug 10, 2009 9:13:27 PM org.apache.catalina.startup.HostConfig checkResources
 3INFO: Reloading context [/sports-ticker-portlet]
 4Aug 10, 2009 9:13:27 PM org.apache.catalina.core.ApplicationContext log
 5INFO: Initializing Spring root WebApplicationContext
 621:13:27,636 ERROR [PortletContextLoaderListener:105] java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
 7java.lang.ClassNotFoundException: com.liferay.util.bean.PortletBeanLocatorUtil
 8    ...
 921:13:27,842 INFO  [PortletHotDeployListener:227] Registering portlets for sports-ticker-portlet
1021:13:28,463 ERROR [PortletHotDeployListener:448] java.lang.ClassNotFoundException: com.liferay.portlet.StrutsPortlet
11java.lang.ClassNotFoundException: com.liferay.portlet.StrutsPortlet
12    ...
1321:13:28,472 INFO  [PortletHotDeployListener:351] 0 portlets for sports-ticker-portlet are available for use
14Aug 10, 2009 9:13:28 PM org.apache.catalina.core.ApplicationContext log
15INFO: Marking servlet PortletActionServlet as unavailable
16Aug 10, 2009 9:13:28 PM org.apache.catalina.core.ApplicationContext log
17SEVERE: Error loading WebappClassLoader
18  delegate: false
19  repositories:
20    /WEB-INF/classes/
21----------> Parent Classloader:
22org.apache.catalina.loader.StandardClassLoader@601bb1
23 com.liferay.portal.struts.PortletActionServlet
24java.lang.ClassNotFoundException: com.liferay.portal.struts.PortletActionServlet
25    ...
26Aug 10, 2009 9:13:28 PM org.apache.catalina.core.StandardContext loadOnStartup
27SEVERE: Servlet /sports-ticker-portlet threw load() exception
28java.lang.ClassNotFoundException: com.liferay.portal.struts.PortletActionServlet
29    ...


I have NO idea what's going on here. Any suggestions? Thanks!

Edit: I trimmed some of the error log to make it more readable. Hopefully I didn't trim anything important to solving this issue.
-Dave
Dave Willis
RE: Exceptions During Deploy
August 11, 2009 9:39 AM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

Still having this error. I'm completely stuck and cannot move forward with this project until this is resolved and I'm out of ideas. Help?
Dave Willis
RE: Exceptions During Deploy
August 12, 2009 1:19 PM
Answer

Dave Willis

Rank: Expert

Posts: 301

Join Date: July 13, 2009

Recent Posts

It magically went away. No idea what I did, just glad it's working now.