- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 Web > Dynamic Web Project 结构在 Eclipse IDE 中构建的 Web 应用程序。该项目在 WildFly 10.0 服务器下运行。 Web 资源存储在 WebContent 文件夹下:
./WebContent
但是,我想遵守 maven 约定,所以整个文件夹都移到了下面:
./src/main/webapp
然后问题来了:应用程序可以在服务器上启动,但浏览器显示消息“禁止访问”。我不知道这是什么意思,为什么会出现。用于显示index.html
首页内容,URL为http://localhost:8080/jsr352/
。以下是一些可能有用的详细信息:
mvn clean install
正确安装项目。index.xml
、部署文件web.xml
等Web资源存在于./target
文件夹及其子文件夹下。 有人可以帮忙吗?谢谢。
使用命令 mvn clean install
的 Maven 构建日志:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Hibernate Search - JSR352 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jsr352 ---
[INFO] Deleting /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jsr352 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ jsr352 ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 23 source files to /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/target/classes
[INFO] /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/src/main/java/io/github/mincongh/batch/IndexingContext.java: Some input files use or override a deprecated API.
[INFO] /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/src/main/java/io/github/mincongh/batch/IndexingContext.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jsr352 ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ jsr352 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jsr352 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ jsr352 ---
[INFO] Packaging webapp
[INFO] Assembling webapp [jsr352] in [/Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/target/jsr352]
[INFO] Processing war project
[INFO] Copying webapp resources [/Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/src/main/webapp]
[INFO] Webapp assembled in [64 msecs]
[INFO] Building war: /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/target/jsr352.war
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ jsr352 ---
[INFO] Installing /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/target/jsr352.war to /Users/mincong/.m2/repository/io/github/mincongh/jsr352/0.0.1-SNAPSHOT/jsr352-0.0.1-SNAPSHOT.war
[INFO] Installing /Users/mincong/Documents/GitHub/gsoc-hsearch/jsr352/pom.xml to /Users/mincong/.m2/repository/io/github/mincongh/jsr352/0.0.1-SNAPSHOT/jsr352-0.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.548 s
[INFO] Finished at: 2016-06-14T00:34:11+02:00
[INFO] Final Memory: 23M/215M
[INFO] ------------------------------------------------------------------------
网络资源位于目标文件夹下。其中一些被省略了:
Mincongs-MBP:jsr352 mincong$ find ./target/jsr352
./target/jsr352
./target/jsr352/index.html
./target/jsr352/META-INF
./target/jsr352/WEB-INF
./target/jsr352/WEB-INF/beans.xml
./target/jsr352/WEB-INF/classes
./target/jsr352/WEB-INF/classes/...
./target/jsr352/WEB-INF/classes/META-INF
./target/jsr352/WEB-INF/classes/META-INF/batch-jobs
./target/jsr352/WEB-INF/classes/META-INF/batch-jobs/mass-index.xml
./target/jsr352/WEB-INF/classes/META-INF/MANIFEST.MF
./target/jsr352/WEB-INF/classes/META-INF/persistence.xml
./target/jsr352/WEB-INF/page
./target/jsr352/WEB-INF/page/search-results.jsp
./target/jsr352/WEB-INF/web.xml
启动应用 jsr352
时 WildFly 10.0 服务器的日志。
00:07:46,024 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
00:07:46,239 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
00:07:46,312 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
00:07:47,496 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found jsr352.war in deployment directory. To trigger deployment create a file called jsr352.war.dodeploy
00:07:47,496 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found mvnwebapp.war in deployment directory. To trigger deployment create a file called mvnwebapp.war.dodeploy
00:07:47,555 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
00:07:47,582 INFO [org.xnio] (MSC service thread 1-7) XNIO version 3.3.4.Final
00:07:47,590 INFO [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.3.4.Final
00:07:47,636 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
00:07:47,662 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
00:07:47,675 INFO [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 4.0.18.Final
00:07:47,691 INFO [org.jboss.as.connector] (MSC service thread 1-6) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.2.Final)
00:07:47,697 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
00:07:47,801 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
00:07:47,816 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
00:07:47,802 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
00:07:47,821 INFO [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
00:07:47,828 INFO [org.jboss.as.security] (MSC service thread 1-5) WFLYSEC0001: Current PicketBox version=4.9.4.Final
00:07:47,835 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = h2
00:07:47,851 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
00:07:47,860 INFO [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
00:07:47,860 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
00:07:47,860 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.3.15.Final starting
00:07:47,861 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0003: Undertow 1.3.15.Final starting
00:07:47,871 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
00:07:47,872 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0018: Started Driver service with driver-name = mysql
00:07:48,062 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path '/Users/mincong/Documents/wildfly-10.0.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
00:07:48,085 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0012: Started server default-server.
00:07:48,086 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
00:07:48,093 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
00:07:48,093 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.
00:07:48,219 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
00:07:48,385 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
00:07:48,385 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:/MySqlDS-addresses]
00:07:48,546 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory /Users/mincong/Documents/wildfly-10.0.0.Final/standalone/deployments
00:07:48,547 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "mvnwebapp.war" (runtime-name: "mvnwebapp.war")
00:07:48,548 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "jsr352.war" (runtime-name: "jsr352.war")
00:07:48,817 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
00:07:48,817 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-7) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.0.Final
00:07:49,002 INFO [org.jboss.ws.common.management] (MSC service thread 1-1) JBWS022052: Starting JBossWS 5.1.3.Final (Apache CXF 3.1.4)
00:07:49,847 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 60) WFLYUT0021: Registered web context: /mvnwebapp
00:07:50,662 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry jaxb-api.jar in /Users/mincong/Documents/wildfly-10.0.0.Final/standalone/deployments/jsr352.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar does not point to a valid jar for a Class-Path reference.
00:07:50,662 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry jaxb-impl.jar in /Users/mincong/Documents/wildfly-10.0.0.Final/standalone/deployments/jsr352.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar does not point to a valid jar for a Class-Path reference.
00:07:50,663 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry jsr173_1.0_api.jar in /Users/mincong/Documents/wildfly-10.0.0.Final/standalone/deployments/jsr352.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar does not point to a valid jar for a Class-Path reference.
00:07:50,663 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0059: Class Path entry activation.jar in /Users/mincong/Documents/wildfly-10.0.0.Final/standalone/deployments/jsr352.war/WEB-INF/lib/com.sun.tools.xjc_2.2.0.jar does not point to a valid jar for a Class-Path reference.
00:07:50,717 INFO [org.jboss.as.jpa] (MSC service thread 1-8) WFLYJPA0002: Read persistence.xml for us-address
00:07:50,886 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 60) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'jsr352.war#us-address'
00:07:50,917 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 60) HHH000204: Processing PersistenceUnitInfo [
name: us-address
...]
00:07:50,922 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment jsr352.war
00:07:51,030 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.2.3.Final
00:07:51,074 INFO [org.hibernate.Version] (ServerService Thread Pool -- 60) HHH000412: Hibernate Core {5.0.7.Final}
00:07:51,076 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 60) HHH000206: hibernate.properties not found
00:07:51,078 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 60) HHH000021: Bytecode provider name : javassist
00:07:51,121 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'IndexSession' in deployment unit 'deployment "jsr352.war"' are as follows:
java:global/jsr352/IndexSession!io.github.mincongh.session.IndexSession
java:app/jsr352/IndexSession!io.github.mincongh.session.IndexSession
java:module/IndexSession!io.github.mincongh.session.IndexSession
java:global/jsr352/IndexSession
java:app/jsr352/IndexSession
java:module/IndexSession
00:07:51,121 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'BatchSession' in deployment unit 'deployment "jsr352.war"' are as follows:
java:global/jsr352/BatchSession!io.github.mincongh.session.BatchSession
java:app/jsr352/BatchSession!io.github.mincongh.session.BatchSession
java:module/BatchSession!io.github.mincongh.session.BatchSession
java:global/jsr352/BatchSession
java:app/jsr352/BatchSession
java:module/BatchSession
00:07:51,122 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'SearchSession' in deployment unit 'deployment "jsr352.war"' are as follows:
java:global/jsr352/SearchSession!io.github.mincongh.session.SearchSession
java:app/jsr352/SearchSession!io.github.mincongh.session.SearchSession
java:module/SearchSession!io.github.mincongh.session.SearchSession
java:global/jsr352/SearchSession
java:app/jsr352/SearchSession
java:module/SearchSession
00:07:51,142 INFO [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 60) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead
00:07:51,153 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 60) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
00:07:51,387 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
00:07:51,389 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
00:07:51,391 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
00:07:51,393 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 60) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
00:07:51,393 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) WFLYWELD0006: Starting Services for CDI deployment: jsr352.war
00:07:51,466 INFO [org.jboss.weld.Version] (MSC service thread 1-5) WELD-000900: 2.3.2 (Final)
00:07:51,495 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0009: Starting weld service for deployment jsr352.war
00:07:51,739 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 61) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'jsr352.war#us-address'
00:07:51,993 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 60) WFLYCLINF0002: Started client-mappings cache from ejb container
00:07:52,265 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 61) HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
00:07:52,322 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 61) Envers integration enabled? : true
00:07:52,820 INFO [org.hibernate.search.engine.Version] (ServerService Thread Pool -- 61) HSEARCH000034: Hibernate Search 5.5.1.Final
00:07:52,993 INFO [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator] (ServerService Thread Pool -- 61) HHH000397: Using ASTQueryTranslatorFactory
00:07:53,158 WARN [org.hibernate.search.engine.impl.ConfigContext] (ServerService Thread Pool -- 61) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified: using LUCENE_CURRENT.
00:07:54,961 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,962 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.OptimisticLockExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,962 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.IllegalArgumentExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,963 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.unversioned.EntityResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,964 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.EntityExistsExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,964 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.PessimisticLockExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,964 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.ConversionExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,964 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.QueryResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,964 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.NamingExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,965 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.PersistenceExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,965 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.IllegalAccessExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,965 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.IOExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,965 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.InvocationTargetExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,966 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.RollbackExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,966 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.TransactionRequiredExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,966 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.NoResultExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,966 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.PersistenceUnitResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.JAXBExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.NoSuchMethodExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.MalformedURLExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.NonUniqueResultExceptionExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.ClassNotFoundExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,967 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.IllegalStateExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceUnitResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.unversioned.QueryResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.PersistenceResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.SingleResultQueryResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.EntityNotFoundExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,968 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.JPARSExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.EntityResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.unversioned.SingleResultQueryResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.DatabaseExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.QueryTimeoutExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002205: Adding provider class org.eclipse.persistence.jpa.rs.exceptions.JPARSConfigurationExceptionMapper from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:54,969 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 58) RESTEASY002200: Adding class resource org.eclipse.persistence.jpa.rs.resources.unversioned.PersistenceResource from Application class org.eclipse.persistence.jpa.rs.service.JPARSApplication
00:07:55,207 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 58) WFLYUT0021: Registered web context: /jsr352
00:07:55,234 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "mvnwebapp.war" (runtime-name : "mvnwebapp.war")
00:07:55,235 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "jsr352.war" (runtime-name : "jsr352.war")
00:07:55,360 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
00:07:55,360 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
00:07:55,360 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) started in 9668ms - Started 532 of 806 services (394 services are lazy, passive or on-demand)
最佳答案
检查项目的 Deployment Assembly设置。
或者,您可以让m2e 通过Configure -> Convert to Maven project 设置您的项目。这可能需要新项目...即从工作区中删除项目,删除项目文件夹中的 Eclipse 文件(.settings
、.classpath
、.project
, ...) 并将文件夹导入为新的通用项目。然后使用转换为 Maven 项目。
关于java - 将 WebContent 移动到 src/main/webapp 后无法访问主页,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37800292/
我有一个在 Tomcat 7.0.54 上运行的 Java webapp。我在 webapp 中使用 Spring。当用户登录到/favicon.ico 时。当用户第二次登录时,他们将被重定向到正确的
如何使用通用的 webappclassloader 为 tomcat 中的所有 webapps 自定义 webapp 类加载器? 我看到我可以扩展类加载器并将其添加到每个 web 应用程序的上下文标记
我有一个 jquery mobile 和 php webapp,可以在 iOS7 中正常工作。我最近升级到 iOS8 进行一些测试,但我遇到了状态栏现在与 Web 应用程序标题重叠的问题。这似乎也导致
我注意到这些文件夹具有非常不同的属性。我最近在 webapps 文件夹下部署了一个 .war 文件。我注意到,一旦部署了 .war 文件,项目的未压缩版本就会添加到目录中。当我尝试修改未压缩版本中的任
假设您在本地主机的 Tomcat 上部署了一个名为 MyWebApp 的网络应用程序。如果您像这样使用浏览器访问它: localhost:8080/MyWebApp 那为什么会显示index.html
我正在寻找一种提示/解决方案来生成一个具有自定义设计的模板 Web 应用程序,然后我所有其他 Web 应用程序都应该采用模板 Web 应用程序的设计。那可能吗?背后的想法是,我们有多个用于项目的 We
我有一扇 Azure 前门。主要区域有一个 azure 功能,辅助区域有一个功能应用程序。当这两个功能都启动时,它工作正常。它正在向每个区域分配 50-50 个负载。但是当我故意停止主要功能时。所有流
这个问题已经有答案了: Getting Python error "from: can't read /var/mail/Bio" (7 个回答) 已关闭去年。 几天前我开始使用 python nfl
按照目前的情况,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我有一个在 Apache Tomcat 5.5 中完美运行的 Web 应用程序,我需要“转换它”以便它可以部署在 Oracle 应用服务器 10.1.3 中。 现在我制作了一个应用程序的 WAR 文件
我在 jsp 中有 2 个 webapps,其中一个供公共(public)使用,另一个供本地使用。 是否可以在 Apache tomcat 中的一个端口上托管一个 Web 应用程序而在另一个端口上托管
最近,我一直在对模块化JS进行大量试验,但我仍然想知道是否以“正确的方式”编写它。 例如,如果我有一个页面,其中包含输入和提交按钮,这些页面应在提交后显示数据(例如表格和图形),所以我在IFFE下编写
我有一个部署为 web 应用程序的 google 脚本。此 webapp 需要发送带有 webapp 的 URL 的电子邮件,以便收件人可以使用 URL 访问 webapp。如何获取 webapp 中
我们正在部署在.Net core中开发的微服务,并将部署在Azure WebApp中 这些 WebApp 之间将进行大量通信。 现在,由于 WebApp 面向互联网,它们之间的所有调用都将通过互联网,
这个问题已经有答案了: SEVERE: Failed to initialize Jenkins [closed] (1 个回答) 去年关闭。 我在 Ubuntu 12.04 中安装了 Jenkins
我看到一个奇怪的问题。我有两个网络应用程序。一个用于我们使用 Jersey 公开的其余 Web 服务。另一个具有 JSF 前端实现,它调用上面的 web 服务来获取详细信息。我们使用 Tomcat 作
这是我在探索工作场所中某些任务自动化的世界时遇到的一个普遍问题。 我们的企业网站上有一个门户/启动板环境,其中的应用程序显示为图 block 。 其中一个应用程序打开后有一个主页,其中有一堆搜索字段和
我有两个 Google 电子表格,每个电子表格都附加了一些 Apps 脚本。最终,我想将两者部署为 Web 应用程序,以便它们可以通过其公共(public) URL 相互通信。目前,我只部署了其中一个
当我尝试运行 ngserve 时,我得到以下信息 ERROR in ./src/main/webapp/manifest.webapp Module parse failed: /home/ferga
这个问题在这里已经有了答案: Eclipse Output Folders (6 个答案) 关闭 5 年前。 我正在使用 Tomcat 5,当我启动服务器并从 webapp 文件夹加载我的应用程序时
我是一名优秀的程序员,十分优秀!