Hi Eder,
I've only run the application from IntelliJ using the settings as per
[1], never really built it as a war. But now it seems I've got the same
problem when running with antrun:run.
I used the Apache Isis add on template from [2] but didn't add any
dependencies. Just renamed the xxx-strings to wizard and added a few
classes. I did change the compileSource and compileTarget properties to
1.8 though, because I was using Java 8 streams.
Erik
[1] http://isis.apache.org/guides/dg.html#2.1.3.-running
[2] https://github.com/isisaddons/template
On 02/21/2017 08:58 PM, L Eder wrote:
Hi members:
Could anyone help me with this issue?
I am getting this error in Git Bash console, after ran the command
"mvn antrun:run -P self-host" and then clicked Start in the java
westart UI.
The build step was all ok.
Thanks in advance, eder
Error message:
“
[exec] Exception in thread "Thread-4"
java.util.ServiceConfigurationError:
javax.servlet.ServletContainerInitializer: Provider
org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
could not be instantiated
Then
Caused by: java.lang.NoClassDefFoundError: javax/websocket/DeploymentException
Then
Caused by: java.lang.ClassNotFoundException: javax.websocket.DeploymentException
”
application's pom.xml:
"
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2014~2015 Dan Haywood
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific
language governing permissions and limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.isisaddons.module.wizard</groupId>
<artifactId>isis-module-wizard</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Isis Addons Wizard Module</name>
<packaging>pom</packaging>
<prerequisites>
<maven>3.0.4</maven>
</prerequisites>
<properties>
<isis.version>1.13.0-SNAPSHOT</isis.version>
<isis-module-wizard.version>1.13.0-SNAPSHOT</isis-module-wizard.version>
<assertj-core.version>2.0.0</assertj-core.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>http://repository-estatio.forge.cloudbees.com/snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.3.1</version>
<configuration>
<rules>
<requireMavenVersion>
<version>[3.0.5,)</version>
</requireMavenVersion>
<requireJavaVersion>
<version>[1.8.0,)</version>
</requireJavaVersion>
<requirePluginVersions>
<message>All plugin versions must be
defined!</message>
<banLatest>true</banLatest>
<banRelease>true</banRelease>
</requirePluginVersions>
<!--
RELAXED!
<DependencyConvergence />
-->
</rules>
</configuration>
<!-- goal:enforce supposedly binds to
phase:validate, but explicit binding seems to be required -->
<executions>
<execution>
<id>validate-enforce</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgument>-parameters</compilerArgument>
</configuration>
<executions>
<execution>
<id>source</id>
<phase>compile</phase>
</execution>
<execution>
<id>test</id>
<phase>test-compile</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/*Test$*.java</include>
<include>**/*Test_*.java</include>
<include>**/*Spec*.java</include>
</includes>
<excludes>
<exclude>**/Test*.java</exclude>
<exclude>**/*ForTesting.java</exclude>
<exclude>**/*Abstract*.java</exclude>
</excludes>
<useFile>true</useFile>
<printSummary>true</printSummary>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.16</version>
<configuration>
<showSuccess>false</showSuccess>
</configuration>
<executions>
<execution>
<phase>test</phase>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.1</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.26</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- http://simplericity.com/2009/11/10/1257880778509.html -->
<plugin>
<groupId>org.simplericity.jettyconsole</groupId>
<artifactId>jetty-console-maven-plugin</artifactId>
<!-- update to 1.54 reversed,since seems compiled
against 1.7 (major.minor version 51.0) -->
<version>1.56</version>
</plugin>
<!-- Apache Release Audit Tool -->
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.10</version>
<configuration>
<addDefaultLicenseMatchers>true</addDefaultLicenseMatchers>
<excludeSubProjects>true</excludeSubProjects>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/target-ide/**</exclude>
<exclude>**/*.project</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.settings/**</exclude>
<exclude>**/*.launch</exclude>
<exclude>src/site/resources/ide/eclipse/**</exclude>
<exclude>**/rebel.xml</exclude>
<exclude>**/*.gitignore</exclude>
<exclude>**/*.log</exclude>
<exclude>**/*.pdn</exclude>
<exclude>**/*.svg</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.min.js</exclude>
<exclude>**/*.js</exclude>
</excludes>
<licenses>
<license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>AL2</licenseFamilyCategory>
<licenseFamilyName>Apache License
2.0</licenseFamilyName>
<notes/>
<patterns>
<pattern>Licensed to the Apache
Software Foundation (ASF) under one</pattern>
</patterns>
</license>
<license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>JQRY</licenseFamilyCategory>
<licenseFamilyName>MIT</licenseFamilyName>
<notes/>
<patterns>
<pattern>Dual licensed under the
MIT or GPL Version 2 licenses.</pattern>
</patterns>
</license>
<license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>JMOCK</licenseFamilyCategory>
<licenseFamilyName>JMock</licenseFamilyName>
<notes/>
<patterns>
<pattern>Copyright (c) 2000-2007,
jMock.org</pattern>
</patterns>
</license>
<license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>DOCBK</licenseFamilyCategory>
<licenseFamilyName>DocBook
4.5</licenseFamilyName>
<notes/>
<patterns>
<pattern>Permission to copy in any
form is granted for use</pattern>
<pattern>Permission to use, copy,
modify and distribute the DocBook DTD</pattern>
<pattern>is hereby granted in
perpetuity, provided that the above copyright
</pattern>
<pattern>This is the catalog data
file for DocBook XML V4.5. It is provided as
</pattern>
<pattern>XML Catalog data for
DocBook XML V4.5</pattern>
<pattern>DocBook additional
general entities V4.5</pattern>
<pattern>XML EXCHANGE TABLE MODEL
DECLARATION MODULE</pattern>
</patterns>
</license>
<license
implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
<licenseFamilyCategory>W3C</licenseFamilyCategory>
<licenseFamilyName>XHTML</licenseFamilyName>
<notes/>
<patterns>
<pattern>Copyright (c) 1998-2002
W3C (MIT, INRIA, Keio),</pattern>
</patterns>
</license>
</licenses>
<licenseFamilies>
<licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>Apache License 2.0</familyName>
</licenseFamily>
<licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>MIT</familyName>
</licenseFamily>
<licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>JMock</familyName>
</licenseFamily>
<licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>DocBook 4.5</familyName>
</licenseFamily>
<licenseFamily
implementation="org.apache.rat.license.SimpleLicenseFamily">
<familyName>XHTML</familyName>
</licenseFamily>
</licenseFamilies>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.isis.core</groupId>
<artifactId>isis</artifactId>
<version>${isis.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- this project's own modules -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>isis-module-wizard-dom</artifactId>
<version>${isis-module-wizard.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>isis-module-wizard-fixture</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>isis-module-wizard-app</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>isis-module-wizard-integtests</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>isis-module-wizard-webapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>cloudbees-snapshots</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>http://repository-estatio.forge.cloudbees.com/snapshot/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<directory>target-ide</directory>
</build>
</profile>
</profiles>
<modules>
<module>app</module>
<module>dom</module>
<module>fixture</module>
<module>integtests</module>
<module>webapp</module>
</modules>
</project>
"
2017-02-21 11:14 GMT-04:00, L Eder <[email protected]>:
Hi Erik:
i tried to build and run your demo app, however i am unable to launch
because of this runtime error:
“
[exec] Exception in thread "Thread-4"
java.util.ServiceConfigurationError:
javax.servlet.ServletContainerInitializer: Provider
org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer
could not be instantiated
Then
Caused by: java.lang.NoClassDefFoundError:
javax/websocket/DeploymentException
Then
Caused by: java.lang.ClassNotFoundException:
javax.websocket.DeploymentException
”
I even tried a tip - deleting of all javax.websocket*.jar files from
inside the simple.WAR file, but without success.
Do you have any other suggestion to fix this issue? Thanks,
Eder
Tip found here:
http://stackoverflow.com/questions/32202344/javax-servlet-servletexception-not-running-on-jetty-jsr-356-support-unavailabl/32207436
2017-02-20 20:00 GMT-04:00, Stephen Cameron <[email protected]>:
Previously the idea of an object builder object has been suggested, it
would seem a simple approach that could work in each tab is a step.
On Tuesday, February 21, 2017, L Eder <[email protected]> wrote:
Cool Erik, thanks for your time. I browsed your code and perceived your
alternate approach, not using the memento service. Just going to run
both
approaches. Regards, Eder
On Feb 20, 2017 5:10 PM, "Erik de Hair" <[email protected]
<javascript:;>>
wrote:
Hi Eder,
I've created a demo app [1] to show my approach. It could probably be
more
generic and I probably broke some Apache Isis module naming
conventions
but
i believe it's a good starting point.
As I said in my previous post, this solution is based on the wicket
wizard
module. I asked for some wizard functionality long ago. Dan created
the
module but I couldn't give him proper feedback at that moment :-/
Right now I wasn't able to create my demo in the wicket-module because
this module was built using Apache Isis 1.6 or so and I had to fix a
lot
to
get it working. In the mean time a lot has changed (like view models
without memento's and XML lay outs) and I believe it would be much
easier
to make it more generic than before. If anyone is interested I could
try
to
'merge' the 2 modules and make the wizard reusable.
I didn't change the README but you should be able to run the app the
same
way as the other modules.
Erik
[1] https://github.com/erikdehair/isis-module-wizard
On 02/20/2017 04:42 PM, Erik de Hair wrote:
Hi Eder,
I've been using some concepts form the Apache Isis wizard add on [1]
and
added some things like a bread crumb. Also use layout-xml files for
the
pages and buttons instead of using the fixed buttons. Didn't have the
time
yet to share this. I will try to do that this week, so you can check
that
out.
Erik
[1] https://github.com/isisaddons/isis-wicket-wizard
On 02/20/2017 03:59 PM, L Eder wrote:
Hi members:
Anyone having a tip to share on how to build such a type of form?
Idea is to have one form with Back and Next buttons, navigating
through
screens related to layout groups, say General, Details, Misc, etc.
Regards, Eder