deployment - ear deploying to jboss 7 is successfully but context-root doesn't work -


i'm using maven 3.3.3 create ear application(with war , jars).

web-xml:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee"        xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"        xsi:schemalocation="http://java.sun.com/xml/ns/javaee       http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"        version="3.0">  <welcome-file-list>     <welcome-file>/landingpage.xhtml</welcome-file> </welcome-file-list>  <servlet>     <servlet-name>faces servlet</servlet-name>     <servlet-class>javax.faces.webapp.facesservlet</servlet-class>     <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping>     <servlet-name>faces servlet</servlet-name>     <url-pattern>*.xhtml</url-pattern> </servlet-mapping>  <context-param>     <param-name>javax.faces.project_stage</param-name>     <param-value>development</param-value> </context-param> 

ear pom.xml:

<?xml version="1.0" encoding="utf-8"?> <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/xsd/maven-4.0.0.xsd"> <parent>     <groupid>com.csaszi</groupid>     <artifactid>topmodule</artifactid>     <version>1.0</version> </parent>  <modelversion>4.0.0</modelversion> <artifactid>berszamfejto-ear</artifactid> <packaging>ear</packaging>  <dependencies>     <dependency>         <groupid>com.csaszi</groupid>         <artifactid>berszamfejto-web</artifactid>         <version>1.0</version>         <type>war</type>     </dependency>      <dependency>         <groupid>com.csaszi</groupid>         <artifactid>berszamfejto-ejb</artifactid>         <version>1.0</version>         <type>jar</type>     </dependency>      <dependency>         <groupid>com.csaszi</groupid>         <artifactid>berszamfejto-persistence</artifactid>         <version>1.0</version>         <type>jar</type>     </dependency> </dependencies>  <build>     <plugins>         <plugin>             <groupid>org.apache.maven.plugins</groupid>             <artifactid>maven-ear-plugin</artifactid>             <version>2.10</version>             <configuration>                 <includelibinapplicationxml>true</includelibinapplicationxml>                 <finalname>berszamfejto</finalname>                 <modules>                     <webmodule>                         <groupid>com.csaszi</groupid>                         <artifactid>berszamfejto-web</artifactid>                         <bundlefilename>berszamfejto-web-1.0.war</bundlefilename>                         <contextroot>/berszamfejto</contextroot>                     </webmodule>                     <jarmodule>                         <groupid>com.csaszi</groupid>                         <artifactid>berszamfejto-ejb</artifactid>                         <bundlefilename>berszamfejto-ejb-1.0.jar</bundlefilename>                     </jarmodule>                     <jarmodule>                         <groupid>com.csaszi</groupid>                         <artifactid>berszamfejto-persistence</artifactid>                         <bundlefilename>berszamfejto-persistence-1.0.jar</bundlefilename>                     </jarmodule>                 </modules>             </configuration>         </plugin>     </plugins> </build> 

application.xml(generated maven install):

<display-name>berszamfejto-ear</display-name>   <module> <web>   <web-uri>berszamfejto-web-1.0.war</web-uri>   <context-root>/berszamfejto</context-root> </web> 

i tried following urls none of them worked:

localhost:8081/landingpage.xhtml  localhost:8081/berszamfejto/landingpage.xhtml  localhost:8081/berszamfejto-web/landingpage.xhtml  localhost:8081/berszamfejto-ear/landingpage.xhtml  localhost:8081/berszamfejto-web/  localhost:8081/berszamfejto-ear/  localhost:8081/berszamfejto-web  localhost:8081/berszamfejto-ear  localhost:8081/berszamfejto-web-1.0  localhost:8081/berszamfejto-ear-1.0 

and following logical names...

i think use maven wrong because without found url , war works well. i'm sure port number 8081 , can login administration console , deploy ear. here end of log of deploying:

[2016-05-28 03:04:02,872] artifact berszamfejto-ear:ear exploded:
artifact being deployed, please wait...
15:04:03,204 info [org.jboss.as.server.deployment] (msc service thread 1-8) jbas015876:
starting deployment of "berszamfejto-ear-1.0"
15:04:03,474 info [org.jboss.as.server] (management-handler-thread - 2) jbas018559:
deployed "berszamfejto-ear-1.0"
[2016-05-28 03:04:03,507] artifact berszamfejto-ear:ear exploded:
artifact deployed successfully
[2016-05-28 03:04:03,507] artifact berszamfejto-ear:ear exploded:
deploy took 635 milliseconds


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -