Ver Mensaje Individual
  #21 (permalink)  
Antiguo 19/03/2015, 17:11
jelastic
 
Fecha de Ingreso: diciembre-2014
Ubicación: Lima
Mensajes: 68
Antigüedad: 9 años, 4 meses
Puntos: 0
Respuesta: Problemas con Jboss

Pude levantarmi sistema en jboss, al final el pom.xml quedo asi:
Código XML:
Ver original
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>com.jonathan</groupId>
  5.     <artifactId>FerrerteriaWeb</artifactId>
  6.     <version>1.0</version>
  7.     <packaging>war</packaging>
  8.     <name>FerreteriaWeb</name>
  9.  
  10.     <repositories>
  11.         <repository>
  12.             <id>prime-repo</id>
  13.             <name>PrimeFaces Maven Repository</name>
  14.             <url>http://repository.primefaces.org</url>
  15.             <layout>default</layout>
  16.         </repository>
  17.     </repositories>
  18.  
  19.     <dependencies>
  20.         <dependency>
  21.             <groupId>com.sun.faces</groupId>
  22.             <artifactId>jsf-api</artifactId>
  23.             <version>2.2.8</version>
  24.             <scope>provided</scope>
  25.         </dependency>
  26.         <dependency>
  27.             <groupId>com.sun.faces</groupId>
  28.             <artifactId>jsf-impl</artifactId>
  29.             <version>2.2.8</version>
  30.             <scope>provided</scope>
  31.         </dependency>
  32.         <dependency>
  33.             <groupId>org.primefaces</groupId>
  34.             <artifactId>primefaces</artifactId>
  35.             <version>5.0</version>
  36.         </dependency>
  37.         <dependency>
  38.             <groupId>junit</groupId>
  39.             <artifactId>junit</artifactId>
  40.             <version>4.11</version>
  41.         </dependency>
  42.         <dependency>
  43.             <groupId>org.hibernate</groupId>
  44.             <artifactId>hibernate-core</artifactId>
  45.             <version>4.3.5.Final</version>
  46.         </dependency>
  47.         <dependency>
  48.             <groupId>mysql</groupId>
  49.             <artifactId>mysql-connector-java</artifactId>
  50.             <version>5.1.32</version>
  51.         </dependency>
  52.         <dependency>
  53.             <groupId>commons-fileupload</groupId>
  54.             <artifactId>commons-fileupload</artifactId>
  55.             <version>1.3.1</version>
  56.         </dependency>
  57.         <dependency>
  58.             <groupId>commons-io</groupId>
  59.             <artifactId>commons-io</artifactId>
  60.             <version>2.4</version>
  61.         </dependency>
  62.         <dependency>
  63.             <groupId>org.primefaces.themes</groupId>
  64.             <artifactId>afterwork</artifactId>
  65.             <version>1.0.10</version>
  66.         </dependency>
  67.         <dependency>
  68.             <groupId>org.apache.poi</groupId>
  69.             <artifactId>poi</artifactId>
  70.             <version>3.11</version>
  71.         </dependency>
  72.         <dependency>
  73.             <groupId>com.lowagie</groupId>
  74.             <artifactId>itext</artifactId>
  75.             <version>4.2.1</version>
  76.         </dependency>
  77.     </dependencies>
  78.  
  79.  
  80.  
  81.     <build>
  82.         <plugins>
  83.             <plugin>
  84.                 <groupId>org.apache.maven.plugins</groupId>
  85.                 <artifactId>maven-compiler-plugin</artifactId>
  86.                 <version>3.1</version>
  87.                 <configuration>
  88.                     <source>1.7</source>
  89.                     <target>1.7</target>
  90.                 </configuration>
  91.             </plugin>
  92.         </plugins>
  93.     </build>
  94.  
  95. </project>
Talvez pueda guiarme y deba quitar algo del pom que sea necesario.
en el faces-config que era asi:
Código XML:
Ver original
  1. <?xml version="1.0"?>
  2. <faces-config version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
  5.     <application />
  6.     <render-kit>
  7.         <renderer>
  8.         <component-family>org.primefaces.component</component-family>
  9.             <renderer-type>org.primefaces.component.FileUploadRenderer</renderer-type>
  10.             <renderer-class>com.jonathan.beans.MyFileUploadRederer</renderer-class>
  11.         </renderer>
  12.     </render-kit>
  13.    
  14.     <lifecycle>
  15.         <phase-listener>com.jonathan.beans.AuthorizationListener</phase-listener>
  16.     </lifecycle>
  17.    
  18. </faces-config>
quedo asi
Código XML:
Ver original
  1. <?xml version="1.0"?>
  2. <faces-config version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
  3.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd">
  5.     <application />
  6. <!--    <render-kit> -->
  7. <!--        <renderer> -->
  8. <!--            <component-family>org.primefaces.component</component-family> -->
  9. <!--            <renderer-type>org.primefaces.component.FileUploadRenderer</renderer-type> -->
  10. <!--            <renderer-class>com.jonathan.beans.MyFileUploadRederer</renderer-class> -->
  11. <!--        </renderer> -->
  12. <!--    </render-kit> -->
  13.    
  14. <!--    <lifecycle> -->
  15. <!--        <phase-listener>com.jonathan.beans.AuthorizationListener</phase-listener> -->
  16. <!--    </lifecycle> -->
  17.    
  18. </faces-config>
pues resulta que en consola aparecia que tenia problemas con el face-config, por eso lo comente

Luego de eso cuando levante el sistema casi salto de alegria, pero cuando intente logear no me permitio, eso intentare arreglar usando debug.
Pero mi preocupacion es sobre el faces-config, pues yo necesito eso para mi session y para el fileupload, alguna sugerencia...
PD: No puedo usar ningunan funcionalidad del sistema sin logearme, lo programe de tal forma que si no me logeo no puedo entrar nisiquiera al menú.

Extra, cuando quiero hacer un clean and install: sale esto en consola.
Código XML:
Ver original
  1. [ERROR] location: class com.jonathan.beans.LoginBean
  2. [ERROR] /D:/Proyectos/Java/JSF/FerrerteriaWeb/src/main/java/com/jonathan/beans/LoginBean.java:[79,17] cannot find symbol
  3. [ERROR] symbol:   class HttpSession
  4. [ERROR] location: class com.jonathan.beans.LoginBean
  5. [ERROR] /D:/Proyectos/Java/JSF/FerrerteriaWeb/src/main/java/com/jonathan/beans/LoginBean.java:[79,40] cannot find symbol
  6. [ERROR] symbol:   class HttpSession
  7. [ERROR] location: class com.jonathan.beans.LoginBean
  8. [ERROR] -> [Help 1]
  9. [ERROR]
  10. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  11. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  12. [ERROR]
  13. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  14. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
La ultima linea me confunde, ya no se que hacer.

Última edición por jelastic; 19/03/2015 a las 17:23