apermir Posted May 18, 2016 Posted May 18, 2016 I properly deploy the war in the JBOSS , and cant no see errors in the JBOSS log. But I cant see the inital jasper file. jasperserver.war/WEB-INF/jboss-web.xml has no root context <?xml version="1.0" encoding="UTF-8" ?> <jboss-web> <resource-ref> <res-ref-name>jdbc/jasperserver</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/jdbc/jasperserver</jndi-name> </resource-ref> <resource-ref> <res-ref-name>jdbc/sugarcrm</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/jdbc/sugarcrm</jndi-name> </resource-ref> <resource-ref> <res-ref-name>jdbc/foodmart</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/jdbc/foodmart</jndi-name> </resource-ref> </jboss-web> The log of the Jboss domain is 18:57:37,977 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-10) JBAS010409: Fuente de datos desenlazados [java:jboss/datasources/ExampleDS] 18:57:37,984 INFO [org.apache.catalina.core] (MSC service thread 1-8) JBWEB001079: Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started 18:57:37,988 INFO [org.jboss.web] (ServerService Thread Pool -- 322) JBAS018224: Borrar el registro del contexto web: /jasperserver 18:57:37,998 INFO [org.apache.coyote.ajp] (MSC service thread 1-7) JBWEB003048: Pausing Coyote AJP/1.3 on ajp-/10.27.246.134:8309 18:57:37,999 INFO [org.apache.coyote.ajp] (MSC service thread 1-7) JBWEB003051: Stopping Coyote AJP/1.3 on ajp-/10.27.246.134:8309 18:57:37,999 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) JBWEB003075: Coyote HTTP/1.1 pausing on: http-/10.27.246.134:8743 18:57:37,999 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) JBWEB003075: Coyote HTTP/1.1 pausing on: http-/10.27.246.134:8380 18:57:38,000 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-5) JBWEB003077: Coyote HTTP/1.1 stopping on : http-/10.27.246.134:8743 18:57:38,000 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) JBWEB003077: Coyote HTTP/1.1 stopping on : http-/10.27.246.134:8380 18:57:38,224 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Se detuvo la implementaciónjasperserverd (runtime-name: jasperserver.war) en 252ms 18:57:38,247 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015950: JBoss EAP 6.4.6.GA (AS 7.5.6.Final-redhat-2) detenido en 266ms 21:53:33,410 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.7.Final-redhat-1 21:53:33,641 INFO [org.jboss.msc] (main) JBoss MSC version 1.1.5.Final-redhat-1 21:53:33,729 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015899: JBoss EAP 6.4.6.GA (AS 7.5.6.Final-redhat-2) iniciando 21:53:33,736 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Propiedades del sistema configuradas: [server:DevJasper-A] = awt.toolkit = sun.awt.X11.XToolkit file.encoding = UTF-8 file.encoding.pkg = sun.io file.separator = / java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment java.awt.headless = true java.awt.printerjob = sun.print.PSPrinterJob java.class.path = /usr/share/jbossas/jboss-modules.jar java.class.version = 52.0 java.endorsed.dirs = /usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/endorsed java.ext.dirs = /usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/ext:/usr/java/packages/lib/ext java.home = /usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre java.io.tmpdir = /tmp java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.net.preferIPv4Stack = true java.runtime.name = Java SE Runtime Environment java.runtime.version = 1.8.0_71-b15 java.specification.name = Java Platform API Specification java.specification.vendor = Oracle Corporation java.specification.version = 1.8 java.util.logging.manager = org.jboss.logmanager.LogManager java.vendor = Oracle Corporation java.vendor.url = http://java.oracle.com/ java.vendor.url.bug = http://bugreport.sun.com/bugreport/ java.version = 1.8.0_71 java.vm.info = mixed mode java.vm.name = Java HotSpot 64-Bit Server VM java.vm.specification.name = Java Virtual Machine Specification java.vm.specification.vendor = Oracle Corporation java.vm.specification.version = 1.8 java.vm.vendor = Oracle Corporation java.vm.version = 25.71-b15 javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder javax.net.ssl.trustStore = /etc/pki/java/cacerts javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory javax.xml.soap.MessageFactory = org.apache.axis.soap.MessageFactoryImpl javax.xml.soap.SOAPConnectionFactory = org.apache.axis.soap.SOAPConnectionFactoryImpl javax.xml.soap.SOAPFactory = org.apache.axis.soap.SOAPFactoryImpl javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory jboss.domain.base.dir = /usr/share/jbossas/domain jboss.domain.config.dir = /usr/share/jbossas/domain/configuration jboss.home.dir = /usr/share/jbossas jboss.host.name = educap-eap2 jboss.modules.dir = /usr/share/jbossas/modules jboss.modules.policy-permissions = true jboss.modules.system.pkgs = org.jboss.byteman jboss.node.name = master:DevJasper-A jboss.qualified.host.name = educap-eap2.educacion.navarra.es jboss.server.base.dir = /usr/share/jbossas/domain/servers/DevJasper-A jboss.server.config.dir = /usr/share/jbossas/domain/servers/DevJasper-A/configuration jboss.server.data.dir = /usr/share/jbossas/domain/data/servers/DevJasper-A jboss.server.deploy.dir = /usr/share/jbossas/domain/data/servers/DevJasper-A/content jboss.server.log.dir = /usr/share/jbossas/domain/log/servers/DevJasper-A jboss.server.name = DevJasper-A jboss.server.persist.config = true jboss.server.temp.dir = /usr/share/jbossas/domain/tmp/servers/DevJasper-A line.separator = logging.configuration = file:/usr/share/jbossas/domain/data/servers/DevJasper-A/logging.properties module.path = /usr/share/jbossas/modules org.jboss.resolver.warning = true org.xml.sax.driver = __redirected.__XMLReaderFactory os.arch = amd64 os.name = Linux os.version = 2.6.32-573.18.1.el6.x86_64 path.separator = : sun.arch.data.model = 64 sun.boot.class.path = /usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-oracle- 1.8.0.71.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/jfr.jar:/usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/classes sun.boot.library.path = /usr/lib/jvm/java-1.8.0-oracle-1.8.0.71.x86_64/jre/lib/amd64 sun.cpu.endian = little sun.cpu.isalist = sun.io.unicode.encoding = UnicodeLittle sun.java.command = /usr/share/jbossas/jboss-modules.jar -mp /usr/share/jbossas/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.server sun.java.launcher = SUN_STANDARD sun.jnu.encoding = UTF-8 sun.management.compiler = HotSpot 64-Bit Tiered Compilers sun.os.patch.level = unknown user.country = ES user.dir = /usr/share/jbossas user.home = /var/lib/jbossas user.language = es user.name = jboss user.timezone = Europe/Madrid 21:53:33,737 DEBUG [org.jboss.as.config] (MSC service thread 1-7) Argumentos de VM: -D[server:DevJasper-A] -XX:PermSize=32m -XX:MaxPermSize=512m -Xms1024m -Xmx2048m -XX: +UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl - Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryImpl -Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl - Djavax.net.ssl.trustStore=/etc/pki/java/cacerts -Djboss.modules.system.pkgs=org.jboss.byteman -Duser.language=es -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true - Djboss.home.dir=/usr/share/jbossas -Duser.country=ES -Djboss.modules.policy-permissions=true -Djboss.server.log.dir=/usr/share/jbossas/domain/log/servers/DevJasper-A - Djboss.server.temp.dir=/usr/share/jbossas/domain/tmp/servers/DevJasper-A -Djboss.server.data.dir=/usr/share/jbossas/domain/data/servers/DevJasper-A - Dlogging.configuration=file:/usr/share/jbossas/domain/data/servers/DevJasper-A/logging.properties 21:53:33,820 INFO [org.xnio] (MSC service thread 1-7) XNIO Version 3.0.15.GA-redhat-1 21:53:33,825 INFO [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.0.15.GA-redhat-1 21:53:33,841 INFO [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 3.3.7.Final-redhat-1 21:53:35,211 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 25) JBAS010153: La propiedad del identificador de nodos está configurada con el valor predeterminado. Por favor asegúrese de que sea única. 21:53:35,215 INFO [org.jboss.as.security] (ServerService Thread Pool -- 32) JBAS013371: Activando el sub-sistema de seguridad 21:53:35,216 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 12) JBAS015537: Activando WebServices Extension 21:53:35,236 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013370: Versión PicketBox actual=4.1.2.Final-redhat-1 21:53:35,265 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 37) JBAS011800: Activando el sub-sistema de nombrado 21:53:35,271 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 45) JBAS010280: Activando el sub-sistema Infinispan. 21:53:35,271 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 49) JBAS016200: Activando el sub-sistema ConfigAdmin 21:53:35,282 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 48) JBAS010403: Implementación del controlador que cumple con los requerimientos de JDBC class org.h2.Driver (versión 1.3) 21:53:35,291 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 39) JBAS012615: Se activaron las siguientes implementaciones JSF: [main, 1.2] 21:53:35,314 INFO [org.jboss.as.connector.logging] (MSC service thread 1-9) JBAS010408: Iniciando JCA sub-sistema (IronJacamar 1.0.35.Final-redhat-1) 21:53:35,376 INFO [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Iniciando el servicio de nombrado 21:53:35,376 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Sesión de correo enlazada [java:jboss/mail/Default] 21:53:35,584 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/10.27.246.134:8743 21:53:35,584 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-9) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/10.27.246.134:8380 21:53:35,592 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-9) JBWEB003000: Coyote HTTP/1.1 starting on: http-/10.27.246.134:8380 21:53:35,592 INFO [org.apache.coyote.ajp] (MSC service thread 1-14) JBWEB003046: Starting Coyote AJP/1.3 on ajp-/10.27.246.134:8309 21:53:35,598 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) JBWEB003000: Coyote HTTP/1.1 starting on: http-/10.27.246.134:8743 21:53:35,837 INFO [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.6.Final-redhat-1 21:53:35,913 INFO [org.jboss.as.remoting] (MSC service thread 1-9) JBAS017100: Escuchando en 10.27.246.134:4747 21:53:35,918 INFO [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015876: Iniciando la implementación de jasperserverd" (runtime-name: "jasperserver.war") 21:53:35,921 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Fuente de datos enlazados [java:jboss/datasources/ExampleDS] 21:53:38,388 INFO [org.jboss.web] (ServerService Thread Pool -- 55) JBAS018210: Registrar el contexto web: /jasperserver 21:53:38,555 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015859: Implementado "jasperserverd" (runtime-name : "jasperserver.war") 21:53:38,560 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.4.6.GA (AS 7.5.6.Final-redhat-2) inició en 5485ms - Inició 204 de 240 servicios (57 servicios son perezosos, pasivos o por demanda) When i Try http://10.27.246.134:8380/jasperserver/ i get the 404 JBWEB000065: HTTP Status 404 - /jasperserver/ JBWEB000309: type JBWEB000067: Status report JBWEB000068: message /jasperserver/ JBWEB000069: description JBWEB000124: The requested resource is not available.
hozawa Posted May 19, 2016 Posted May 19, 2016 FYI, Oracle is not supported as a repository in JasperReports Server community edition. JasperReports Server needs a repository table to hold information. The tables are created during installation. Unfortunately, only schemas for MySQL and PostgreSQL are included in the community edition.
apermir Posted May 19, 2016 Author Posted May 19, 2016 Hi Hozawa.I know that , so Im using PostgreSQL for the repository . And it seems properly working . The reference in the log to Oracle are related to the Oracle Java HOME.Thanks anyway
apermir Posted May 23, 2016 Author Posted May 23, 2016 The problem seems to be related to the context. After the deploymentIf get a 404 withhttp://MYIP:8080/jasperserver/errorPage.htmhttp://MYIP:8080/jasperserver/http://MYIP:8080/jasperserver/login.htmlBut I can see DB sessions conected to the postgreSQL jasperserver dbAnd i get 200 http OK code with the pagehttp://MYIP:8080/jasperserver/jasperserver.war/errorPage.htmAny idea?It seems that my war is not properly setMay i modify the jboss-web.xml to add context-root<?xml version="1.0" encoding="UTF-8"?> <jboss-web > <context-root>/jasperserver</context-root> ...</jboss-web>
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now