[jira] [Comment Edited] (ISIS-1358) Simpleapp created from archetype and packaged to war fails when deploying to Tomcat

2016-05-12 Thread Vladimir Nisevic (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15282430#comment-15282430
 ] 

Vladimir Nisevic edited comment on ISIS-1358 at 5/13/16 5:57 AM:
-

Hi Martin, I've started "mvn clean install", from IntelliJ..

Meanwhile I've adapted pom.xml in webapp module,  as advised by Jörg, with next 
configuration  

{code}

WEB-INF/lib/isis-core-webserver*.jar,
WEB-INF/lib/javax.servlet-api-*.jar,
WEB-INF/lib/javax.websocket-api-*.jar,
WEB-INF/lib/javax-websocket-server-impl-*.jar,
WEB-INF/lib/jetty-*.jar

{code}

I think I had to exclude additional websocket-server-impl, since there are more 
jetty JAR's then jetty-all, I've also adapted the exclude to jetty-*.jar

The webapp launches now fine, but I have now a swagger issue, I don't see any 
restful service, see attached screenshots.

It seems that the service 
org.apache.isis.core.metamodel.services.swagger.SwaggerServiceDefault is not 
recongnized.

When I launch the webapp with IntelliJ launcher, with Jetty, everything works 
fine.





was (Author: niv):
Hi Martin, I've started "mvn clean install", from IntelliJ..

Meanwhile I've adapted pom.xml in webapp module,  as advised by Jörg, with next 
configuration  

{code}

WEB-INF/lib/isis-core-webserver*.jar,
WEB-INF/lib/javax.servlet-api-*.jar,
WEB-INF/lib/javax.websocket-api-*.jar,
WEB-INF/lib/javax-websocket-server-impl-*.jar,
WEB-INF/lib/jetty-*.jar

{code}

I think I had to exclude additional websocket-server-impl, since there are more 
jetty JAR's then jetty-all, I've also adapted the exclude to jetty-*.jar

The webapp launches now fine, but I have now a swagger issue, see attached 
screenshot. It seems that the 
org.apache.isis.core.metamodel.services.swagger.SwaggerServiceDefault is not 
integrated.

When I launch the webapp with IntelliJ launcher, with Jetty, everything works 
fine.




> Simpleapp created from archetype and packaged to war fails when deploying to 
> Tomcat
> ---
>
> Key: ISIS-1358
> URL: https://issues.apache.org/jira/browse/ISIS-1358
> Project: Isis
>  Issue Type: Bug
>  Components: Archetype: SimpleApp
>Affects Versions: 1.12.1
> Environment: Windows 10, Windows 7
> Tomcat version: Apache Tomcat/8.0.33
> JVM: 1.8.0_77-b03
>Reporter: Vladimir Nisevic
>Assignee: Dan Haywood
> Attachments: catalina.2016-03-31.log, 
> restfulServicesWhenLaunchingWithTomcat.png, swagger.issue.png
>
>
> Steps to reproduce:
> * Created simpleapp from archetype (Version 1.12.0)
> * Execute mvn clean package
> * Take the file \webapp\target\simpleapp.war and deploy to tomcat thru e.g. 
> manager UI (http://localhost:8080/manager/html) 
> Attached the catalina.log



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Comment Edited] (ISIS-1358) Simpleapp created from archetype and packaged to war fails when deploying to Tomcat

2016-05-12 Thread Vladimir Nisevic (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15281976#comment-15281976
 ] 

Vladimir Nisevic edited comment on ISIS-1358 at 5/12/16 8:20 PM:
-

Hi Jörg, I tried out your proposal but stil without success.  After googling 
I've found next issue with similar problem 
https://issues.apache.org/jira/browse/AMQ-6154 

Then I've changed the web.xml to newer Servlet Deployment Descriptor - version 
3.1 and added absolute-ordering element. After that, I've redeployed war to 
Tomcat 8.0.33 and simpleapp works now fine!

@[~danhaywood]: maybe this should be adapted in simpleapp archetype as well?

{code}
http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">


{code}


was (Author: niv):
Hi Jörg, I tried out your proposal but stil no success.  After googling I've 
found next issue with similar problem 
https://issues.apache.org/jira/browse/AMQ-6154 

Then I've changed the web.xml to newer Servlet Deploymend Descriptor - 3.1 and 
added absolute-ordering element. After that, I've redeployed to Tomcat 8.0.33 
and simpleapp works now fine.

@[~danhaywood]: maybe this should be adapted in simpleapp archetype as well?

{code}
http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">


{code}

> Simpleapp created from archetype and packaged to war fails when deploying to 
> Tomcat
> ---
>
> Key: ISIS-1358
> URL: https://issues.apache.org/jira/browse/ISIS-1358
> Project: Isis
>  Issue Type: Bug
>  Components: Archetype: SimpleApp
>Affects Versions: 1.12.1
> Environment: Windows 10, Windows 7
> Tomcat version: Apache Tomcat/8.0.33
> JVM: 1.8.0_77-b03
>Reporter: Vladimir Nisevic
>Assignee: Dan Haywood
> Attachments: catalina.2016-03-31.log
>
>
> Steps to reproduce:
> * Created simpleapp from archetype (Version 1.12.0)
> * Execute mvn clean package
> * Take the file \webapp\target\simpleapp.war and deploy to tomcat thru e.g. 
> manager UI (http://localhost:8080/manager/html) 
> Attached the catalina.log



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Comment Edited] (ISIS-1358) Simpleapp created from archetype and packaged to war fails when deploying to Tomcat

2016-05-12 Thread Vladimir Nisevic (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-1358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15281976#comment-15281976
 ] 

Vladimir Nisevic edited comment on ISIS-1358 at 5/12/16 8:19 PM:
-

Hi Jörg, I tried out your proposal but stil no success.  After googling I've 
found next issue with similar problem 
https://issues.apache.org/jira/browse/AMQ-6154 

Then I've changed the web.xml to newer Servlet Deploymend Descriptor - 3.1 and 
added absolute-ordering element. After that, I've redeployed to Tomcat 8.0.33 
and simpleapp works now fine.

@[~danhaywood]: maybe this should be adapted in simpleapp archetype as well?

{code}
http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">


{code}


was (Author: niv):
Hi Jörg, I tried out your proposal but stil no success.  After googling I've 
found next issue with similar problem 
https://issues.apache.org/jira/browse/AMQ-6154 

Then I've changed the web.xml to newer Servlet Deploymend Descriptor - 3.1 and 
added absolute-ordering element. After that, I've redeployed to Tomcat 8.0.33 
and simpleapp works now fine.

[~danhaywood]: maybe this should be adapted in simpleapp archetype as well?

{code}
http://xmlns.jcp.org/xml/ns/javaee;
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd;
 version="3.1">


{code}

> Simpleapp created from archetype and packaged to war fails when deploying to 
> Tomcat
> ---
>
> Key: ISIS-1358
> URL: https://issues.apache.org/jira/browse/ISIS-1358
> Project: Isis
>  Issue Type: Bug
>  Components: Archetype: SimpleApp
>Affects Versions: 1.12.0
> Environment: Windows 10, Windows 7
> Tomcat version: Apache Tomcat/8.0.33
> JVM: 1.8.0_77-b03
>Reporter: Vladimir Nisevic
>Assignee: Dan Haywood
> Attachments: catalina.2016-03-31.log
>
>
> Steps to reproduce:
> * Created simpleapp from archetype (Version 1.12.0)
> * Execute mvn clean package
> * Take the file \webapp\target\simpleapp.war and deploy to tomcat thru e.g. 
> manager UI (http://localhost:8080/manager/html) 
> Attached the catalina.log



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)