| Author |
Message |
|
|
Post subject: MyFaces/facelets deployment problem from MyEclipse, Weblogic
Posted: Jul 18, 2008 - 06:05 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
I trying to deploy a JSF application to Weblogic 10 and I get a classnotfound error within MyEclipse;
Stack Trace:
<18-Jul-2008 12:55:22 o'clock PM EDT> <Warning> <Application Poller> <BEA-149417> <Another process is using this file 'D:\CPO\Applications\bea\user_projects\domains\cpoDomain\autodeploy\cpo'. The server will attempt to deploy the application once it is unlocked by the other process.>
<18-Jul-2008 12:55:26 o'clock PM EDT> <Error> <HTTP> <BEA-101371> <There was a failure when processing annotations for application D:\CPO\Applications\bea\user_projects\domains\cpoDomain\autodeploy\cpo. Please make sure that the annotations are valid. The error is javax.faces.webapp.FacesServlet>
<18-Jul-2008 12:55:26 o'clock PM EDT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1216400126655' for task '0'. Error is: 'weblogic.application.ModuleException: Failed to load webapp: 'cpo''
weblogic.application.ModuleException: Failed to load webapp: 'cpo'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:311)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Truncated. see log file for complete stacktrace
>
<18-Jul-2008 12:55:26 o'clock PM EDT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application '_appsdir_cpo_dir'.>
<18-Jul-2008 12:55:26 o'clock PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: Failed to load webapp: 'cpo'
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:311)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:360)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
Truncated. see log file for complete stacktrace
Any ideas??
Jarrod |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 18, 2008 - 08:06 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
Jarrod,
Can you give me some details about the project? What specification level web project is this? What capabilities have been added to it?
Can you make sure the JSF jars a present under the /lib directory of weblogic.? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 21, 2008 - 03:32 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
The Web Project consists of the following (see pom.xml), it uses MyFaces v1.2.2;
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>********-war</artifactId>
<packaging>war</packaging>
<version>1.2.3_SNAPSHOT</version>
<name>********</name>
<description>********</description>
<url />
<parent>
<groupId>********</groupId>
<artifactId>********</artifactId>
<version>1.2.3_SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<version>${pom.version}</version>
<artifactId>serviceWSClient-jar</artifactId>
<type>jar</type>
<exclusions>
<exclusion>
<groupId>bea</groupId>
<artifactId>xmlbeans</artifactId>
</exclusion>
<exclusion>
<groupId>bea</groupId>
<artifactId>wseeclient</artifactId>
</exclusion>
<exclusion>
<groupId>bea</groupId>
<artifactId>wls-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.0-rc4</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>saaj-api</artifactId>
<version>1.3</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>wss4j</groupId>
<artifactId>wss4j</artifactId>
<version>1.5.0</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.7.0</version>
<artifactId>commons-beanutils</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<version>0.2</version>
<artifactId>commons-discovery</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.3</version>
<artifactId>commons-codec</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>3.1</version>
<artifactId>commons-collections</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.6</version>
<artifactId>commons-digester</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.0</version>
<artifactId>commons-el</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.1.1</version>
<artifactId>commons-fileupload</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>2.1</version>
<artifactId>commons-lang</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.0.4</version>
<artifactId>commons-logging</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>1.3.0</version>
<artifactId>commons-validator</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>2.0.8</version>
<artifactId>jakarta-oro</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>myfaces</groupId>
<version>1.2.2</version>
<artifactId>myfaces-api</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>myfaces</groupId>
<version>1.2.2</version>
<artifactId>myfaces-impl</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>myfaces</groupId>
<version>1.1.6</version>
<artifactId>tomahawk</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.java</groupId>
<version>1.1.13</version>
<artifactId>facelets</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>struts</groupId>
<version>1.2.8</version>
<artifactId>struts</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>userInterface</groupId>
<version>0.9.0</version>
<artifactId>EasySI</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>cpcCrypto</groupId>
<version>0.1.0</version>
<artifactId>cpcCrypto</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>no.fast</groupId>
<version>2.0</version>
<artifactId>dsapi</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>no.fast</groupId>
<version>1.1</version>
<artifactId>xmlrpc</artifactId>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<version>2.5</version>
<artifactId>servlet</artifactId>
<scope>provided</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<version>2.1</version>
<artifactId>jsp</artifactId>
<scope>provided</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax</groupId>
<version>1.0</version>
<artifactId>el</artifactId>
<scope>provided</scope>
<type>jar</type>
</dependency>
</dependencies>
</project>
The deployment within MyEclipse uses a configured Weblogic 10 server with the following configuration;
__Step 12 - Add Web Capabilities __
--> Right click on ***-war and select MyEclipse > Add Web Project Capabilities
* Web Root Directory - /src/main/webapp
* Web Context Root - /companyPortal
* Unselect create web.xml
* J2EE Spec Level - J2EE 5.0
* DO NOT Add J2EE libraries to build path
__Step 12b) - Add JSF Capabilities
--> Right click on ****-war and select MyEclipse > Add JSF Capabilities
The strange thing is I had this working about 4 months ago..
Any help would be greatly appreciated,
Jarrod |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 21, 2008 - 10:46 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
Jarrod,
Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me. Did you upgrade MyEclipse or install some plugin recently? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 23, 2008 - 02:22 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
Nipun,
Here is the installation detail;
*** Date:
Wednesday, July 23, 2008 9:21:14 o'clock AM EDT
** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.0 GA
Build id: 6.5.0-GA-20080609
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.0 GA
Build id: 6.5.0-GA-20080609
Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800
Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800
Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800
Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800
Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800
Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
D:\CPO\Applications\MyEclipse\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
D:\CPO\Applications\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
D:\CPO\Applications\MyEclipse\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
8d0_70
-clean
-vm
D:\CPO\Applications\MyEclipse\jre\bin\javaw.exe |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 23, 2008 - 02:25 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
I've also done a full maven build of the war then deployed it to the autodeploy folder of weblogic and inspected it's /lib folder. I've noticed a difference between what MyEclipse places in the /lib folder and the above. It is the provided jars for servlet/jsp;
<groupId>javax.servlet</groupId>
<version>2.5</version>
<artifactId>servlet</artifactId>
<scope>provided</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<version>2.1</version>
<artifactId>jsp</artifactId>
<scope>provided</scope>
I'm not sure if this is causing the problem... |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 23, 2008 - 02:33 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
| Just validated my theory above. I re-deployed the MyEclipse deployment in my webogic autodeploy this time without the jsp and servlet jars.. it worked.. Is there a way in MyEclipse to specify that these jars do not get included with the deployed jars to the /lib folder? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Jul 23, 2008 - 08:25 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
| You can go to Windows > Prefs > MyEclipse > Java Enterprise Project > Web Project > > Deployment and uncheck "deploy jars on projects build path". Let me know if that doesn't help. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Aug 15, 2008 - 09:40 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
Hi Nipun,
I removed my deployment and attempted to re-introduce the web project to WebLogic 10, I again have been getting very inconsostent results. It doesn't always deploy correctly. It's the same project as above;
These are my selections while creating web project capabilities;
* Web Root Directory - /src/main/webapp
* Web Context Root - /<developer to decide>
* Unselect create web.xml
* J2EE Spec Level - J2EE 5.0
* DO NOT Add J2EE libraries to build path
After many attempts I was able to get it to deploy however now others on our team are having similar issues and I can't figure out next steps.. Do you have a best practices or other recommendations for us to try??
Cheers,
Jarrod |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Aug 18, 2008 - 06:48 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 5657
|
|
jarrodwl ,
Did you setup MyEclipse with Eclipse Classic or Eclipse RCP? You need to setup MyEclipse with Eclipse Classic. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Aug 18, 2008 - 06:59 PM
|
|
Registered Member


Joined: May 27, 2005
Posts: 7
|
|
Hi Nipun,
I installed MyEclipse with the following exe, MyEclipse_6.5.0GA_E3.3.2_Installer_A.exe (it's the all-in-one install).
Jarrod |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: MyFaces/facelets deployment problem from MyEclipse, Webl
Posted: Aug 21, 2008 - 11:43 PM
|
|
Moderator


Joined: Jan 06, 2004
Posts: 23305
|
|
Jarrod,
I saw a few posts up that the deployment worked but then you mentioned that it's a bit unpredictable, when it does fail, what is the problem?
If you are trying to deployed then redeploy to a running app server that will likely fail every time as the server has a read lock on the files. Once you do an exploded deployment however, MyEclipse will keep the remote resources up to date automatically as you save the files in the IDE. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|