Skip to main content

Embedded: Fail to load implementation class org.apache.el.ExpressionFactoryImpl

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
153446
Offline
Joined: 2004-01-07

Have been unable to use the Eclipse Ivy plugin to retrieve GlassFish JARs. Failures include:


[By failure I mean numerous "download failed: org.glassfish.... " messages in "Problems" view of Eclipse Kepler.]

So accordingly, I'm using a manually downloaded "glassfish-embedded-all-3.1.2.jar". However, upon embedded server deployment with the following code:

// ****************
// * Start Server *
// ****************
final GlassFishProperties glassfishProperties = new GlassFishProperties();
glassfishProperties.setPort("http-listener", 8082);

final GlassFish glassfish = GlassFishRuntime.bootstrap()
.newGlassFish(glassfishProperties);

glassfish.start();

// **********************
// * Deploy Application *
// **********************
final Deployer deployer = glassfish.getDeployer();
final ScatteredArchive archive = new ScatteredArchive("testapp",
ScatteredArchive.Type.WAR);
archive.addClassPath(new File(resourceWebPO
.getWebContainerResourceList().get(0).getWebappPath(),
"classes"));
archive.addMetadata(new File(resourceWebPO
.getWebContainerResourceList().get(0).getWebappPath(),
"web.xml"));
appName = deployer
.deploy(archive.toURI(), "--contextroot=TestWeb1");

// **************
// * User Input *
// **************
final Scanner keyboard = new Scanner(System.in);
System.out.println("Enter an integer to stop the server.");

... the following exception occurs... I'm unclear as to which JAR/JARs are required:

Sep 16, 2013 3:07:28 PM com.sun.enterprise.deployment.archivist.Archivist readAnnotations
SEVERE: Annotations processing failed for file:/C:/Users/mtoll4/AppData/Local/Temp/gfembed7493673123638749645tmp/applications/testapp/
Sep 16, 2013 3:07:32 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/TestWeb1'
Sep 16, 2013 3:07:44 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
javax.el.ELException: Fail to load implementation class org.apache.el.ExpressionFactoryImpl

...

Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
153446
Offline
Joined: 2004-01-07

The following dependencies were removed from the previous post:

dependency org="org.glassfish.extras" name="glassfish-embedded-web" rev="3.1.1"