在Jboss中部署的应用程序无法正常工作

时间:2019-01-02 16:18:01

标签: java spring-boot jboss

我有一个spring boot应用程序,当我在eclipse中执行它时,运行正常,我将其转换为Dynamic Web Module,以便导出WAR并最终将其部署在服务器中。

我从服务器获得了下一条日志:

2019-01-02 12:18:21,777 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0027: Starting deployment of "GeoUsig.war" (runtime-name: "GeoUsig.war")
2019-01-02 12:18:21,810 WARN  [org.jboss.as.logging] (MSC service thread 1-6) WFLYLOG0015: The per-logging deployment property (org.jboss.as.logging.per-deployment) has been deprecated. Please use the use-deployment-logging-config attribute to enable/disable per-deployment logging.
2019-01-02 12:18:21,858 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 581) WFLYUT0021: Registered web context: /GeoUsig
2019-01-02 12:18:21,884 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 578) WFLYSRV0010: Deployed "GeoUsig.war" (runtime-name : "GeoUsig.war")
2019-01-02 12:32:26,847 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 609) WFLYUT0022: Unregistered web context: /GeoUsig
2019-01-02 12:32:26,928 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment GeoUsig.war (runtime-name: GeoUsig.war) in 81ms
2019-01-02 12:32:26,955 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 608) WFLYSRV0009: Undeployed "GeoUsig.war" (runtime-name: "GeoUsig.war")
2019-01-02 12:32:26,956 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 608) WFLYDR0002: Content removed from location /opt/jboss-eap/domain/servers/lktvap1002/data/content/30/e244c783110078bb513726d4dfa559d1982bc5/content
2019-01-02 12:32:44,722 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "GeoUsig.war" (runtime-name: "GeoUsig.war")
2019-01-02 12:32:44,746 WARN  [org.jboss.as.logging] (MSC service thread 1-8) WFLYLOG0015: The per-logging deployment property (org.jboss.as.logging.per-deployment) has been deprecated. Please use the use-deployment-logging-config attribute to enable/disable per-deployment logging.
2019-01-02 12:32:44,781 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 612) WFLYUT0021: Registered web context: /GeoUsig
2019-01-02 12:32:44,812 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 608) WFLYSRV0010: Deployed "GeoUsig.war" (runtime-name : "GeoUsig.war")

它似乎已部署,但根本不执行mi app。

这是我的应用的一些代码:

主要:

@SpringBootApplication
@EnableScheduling
public class GeolocalizacionApplication  extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(GeolocalizacionApplication.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(GeolocalizacionApplication.class, args);
    }


}

控制器:

@Controller
@EnableScheduling
public class GeoController {



    @Autowired
    IUsigRequestService usigRequestService;


    @Autowired
    IUsigResponseService usigResponseService;


    @Autowired 
    IUsigResponseSeqService usigResponseSeqService;

    @Scheduled(cron = "0 * * ? * * ")
    public void ejecutar() throws ParseException, IOException {


             List<UsigRequest> usigReqList = (List<UsigRequest>) usigRequestService.findAll();

            //More code

    }

}

在方法执行过程中,我更新了一些行,因此我希望它会发生,但是不会。

这是我在Eclipse中执行时得到的堆栈:

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v1.5.8.RELEASE)

2019-01-02 13:13:23.724  INFO 5636 --- [           main] c.F.Geo.GeolocalizacionApplication       : Starting GeolocalizacionApplication on DAR-MXL246041T with PID 5636 (C:\Eclipse\Workspace\GeoUsig\target\classes started by f8cygqn in C:\Eclipse\Workspace\GeoUsig)
2019-01-02 13:13:23.744  INFO 5636 --- [           main] c.F.Geo.GeolocalizacionApplication       : No active profile set, falling back to default profiles: default
2019-01-02 13:13:23.854  INFO 5636 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@27c6e487: startup date [Wed Jan 02 13:13:23 ART 2019]; root of context hierarchy
2019-01-02 13:13:26.372  INFO 5636 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2019-01-02 13:13:26.400  INFO 5636 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-01-02 13:13:26.401  INFO 5636 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.23
2019-01-02 13:13:26.599  INFO 5636 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-01-02 13:13:26.599  INFO 5636 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2780 ms
2019-01-02 13:13:26.798  INFO 5636 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
2019-01-02 13:13:26.802  INFO 5636 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-01-02 13:13:26.803  INFO 5636 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-01-02 13:13:26.803  INFO 5636 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-01-02 13:13:26.803  INFO 5636 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
2019-01-02 13:13:26.879  INFO 5636 --- [           main] o.s.j.d.DriverManagerDataSource          : Loaded JDBC driver: com.teradata.jdbc.TeraDriver
2019-01-02 13:13:28.754  INFO 5636 --- [           main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2019-01-02 13:13:28.782  INFO 5636 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
    name: default
    ...]
2019-01-02 13:13:28.951  INFO 5636 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.0.12.Final}
2019-01-02 13:13:28.952  INFO 5636 --- [           main] org.hibernate.cfg.Environment            : HHH000206: hibernate.properties not found
2019-01-02 13:13:28.954  INFO 5636 --- [           main] org.hibernate.cfg.Environment            : HHH000021: Bytecode provider name : javassist
2019-01-02 13:13:29.037  INFO 5636 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2019-01-02 13:13:29.816  INFO 5636 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.TeradataDialect
2019-01-02 13:13:30.088  INFO 5636 --- [           main] o.h.e.j.e.i.LobCreatorBuilderImpl        : HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2019-01-02 13:13:31.018  INFO 5636 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-01-02 13:13:31.969  INFO 5636 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.TeradataDialect
2019-01-02 13:13:32.034  INFO 5636 --- [           main] o.h.e.j.e.i.LobCreatorBuilderImpl        : HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
2019-01-02 13:13:32.870  INFO 5636 --- [           main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@27c6e487: startup date [Wed Jan 02 13:13:23 ART 2019]; root of context hierarchy
2019-01-02 13:13:32.964  INFO 5636 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2019-01-02 13:13:32.965  INFO 5636 --- [           main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2019-01-02 13:13:33.010  INFO 5636 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-01-02 13:13:33.010  INFO 5636 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-01-02 13:13:33.497  INFO 5636 --- [           main] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2019-01-02 13:13:33.864  INFO 5636 --- [           main] o.s.j.e.a.AnnotationMBeanExporter        : Registering beans for JMX exposure on startup
2019-01-02 13:13:33.894  INFO 5636 --- [           main] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
2019-01-02 13:13:34.069  INFO 5636 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2019-01-02 13:13:34.080  INFO 5636 --- [           main] c.F.Geo.GeolocalizacionApplication       : Started GeolocalizacionApplication in 11.089 seconds (JVM running for 12.447)
2019-01-02 13:14:00.366  INFO 5636 --- [pool-1-thread-1] o.h.h.i.QueryTranslatorFactoryInitiator  : HHH000397: Using ASTQueryTranslatorFactory

我还要在此处添加我的项目结构的图像:

Project structure

我做错什么了吗?

谢谢!

0 个答案:

没有答案