简体   繁体   English

使用Glassfish的IMIXS JSF示例部署

[英]IMIXS JSF example deployment with Glassfish

I wanted to try IMIXS workflow solution. 我想尝试IMIXS工作流程解决方案。

I followed the steps mentioned on the below two links. 我遵循以下两个链接中提到的步骤。 Sample Application - http://www.imixs.org/doc/sampleapplication.html Glassfish deployment steps - http://www.imixs.org/doc/deployment/glassfish.html 示例应用程序-http: //www.imixs.org/doc/sampleapplication.html Glassfish部署步骤-http: //www.imixs.org/doc/deployment/glassfish.html

When I try to deploy the war, I get the below error: 当我尝试展开战争时,出现以下错误:

remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer. 远程故障:部署期间发生错误:加载应用程序时发生异常:java.lang.IllegalStateException:ContainerBase.addChild:开始:org.apache.catalina.LifecycleException:org.apache.catalina.LifecycleException:java.lang.ClassNotFoundException:com。 sun.jersey.spi.container.servlet.ServletContainer。 Please see server.log for more details. 请参阅server.log以获取更多详细信息。

PER01003: Deployment encountered SQL Exceptions: PER01000: Got SQLException executing statement "CREATE TABLE DOUBLEITEM (ID BIGINT NOT NULL, ITEMNAME VARCHAR(255), ITEMVALUE FLOAT, PRIMARY KEY (ID))": java.sql.SQLTransactionRollbackException: Table/View 'DOUBLEITEM' already exists in Schema 'APP'. PER01003:部署遇到SQL异常:PER01000:得到了SQLException执行语句“ CREATE TABLE DOUBLEITEM(ID BIGINT NOT NULL,ITEMNAME VARCHAR(255),ITEMVALUE FLOAT,PRIMARY KEY(ID))”:java.sql.SQLTransactionRollbackException:表/视图'模式“ APP”中已经存在“ DOUBLEITEM”。 PER01000: Got SQLException executing statement "CREATE TABLE WRITEACCESS (ID INTEGER NOT NULL, VALUE VARCHAR(255), PRIMARY KEY (ID))": java.sql.SQLTransactionRollbackException: Table/View 'WRITEACCESS' already exists in Schema 'APP'. PER01000:得到了SQLException执行语句“创建表写入(ID整数不为空,值VARCHAR(255),主键(ID))”:java.sql.SQLTransactionRollbackException:表/视图“ WRITEACCESS”已存在于模式“ APP”中。 ................................................... ..................................................... ....................................................... ................................................... ..................................................... .................................................. ......

Something related to database table. 与数据库表有关的东西。 Not sure how to get rid of this error. 不知道如何摆脱这个错误。

Need help to get this working. 需要帮助才能正常工作。 I am no JEE developer, wanted to try out the solution. 我不是JEE开发人员,想尝试解决方案。

If your are running on GlassFish4 than the Jersey Servlet class name in web.xml has changed from 如果您在GlassFish4上运行,则web.xml中的Jersey Servlet类名称已更改为

<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>

to

<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>

You need to fix this in your web.xml for Glassfish4 and Payara Server. 您需要在Glass.fish4和Payara Server的web.xml中修复此问题。 In addition for GlassFish4 it can be necessary to disable the implicit-cdi flag. 此外,对于GlassFish4,可能有必要禁用隐式cdi标志。 This allows to deploy EJBs in embedded jar files. 这允许在嵌入式jar文件中部署EJB。

./asadmin set configs.config.server-config.cdi-service.enable-implicit-cdi=false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM