Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

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

$
0
0

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


Viewing all articles
Browse latest Browse all 1091

Trending Articles