[nbj2ee] NB7.1.2, Glassfish 3.1.1 deployment error - context path with ${...}

  • From: "itserg" < >
  • To:
  • Subject: [nbj2ee] NB7.1.2, Glassfish 3.1.1 deployment error - context path with ${...}
  • Date: Wed, 27 Jun 2012 03:22:40 -0400

Threre is a problem on deploying war project in Netbeans 7.1.1, 7.1.2 to 
Glassfish 3.1.1.

The war project contains sun-web.xml file, with maven variable as context 
root:

...
<sun-web-app error-url="">
  <context-root>/${my-web-context}</context-root>
...

Here is deployment string:

Initializing...
deploy?DEFAULT=D:\path_to_project\my-war-project\target\my-war-project-1.0&name=my-war-project_war_1.0-SNAPSHOT&contextroot=/${my-web-context}&force=true
 
...

 Error occurred during deployment: Exception while loading the app : 
java.lang.IllegalStateException: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: java.lang.RuntimeException: 
com.sun.faces.config.ConfigurationException: 
java.util.concurrent.ExecutionException: javax.faces.FacesException: 
java.net.URISyntaxException: Illegal character in path at index 14: 
jndi:/server/${my-web-context}/WEB-INF/faces-config.xml. Please see 
server.log for more details.

On building maven correctly replace his vars to origin values. 
On deploy look in "target" directory - all is ok. IMHO, the problem in deploy 
parameters in Netbeans Glassfish plugin.

Thank you in advance!






[nbj2ee] NB7.1.2, Glassfish 3.1.1 deployment error - context path with ${...}

itserg 06/27/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close