Comments (5)
I think javax.websocket.server.ServerContainer
is loaded by multiple ClassLoaders. We shipped a websocket api jar file in WEB-INF/lib
. Tomcat also include a websocket api jar. I don't known why tomcat8 can work. Can you remove WEB-INF/lib/javax.websocket-api-1.0.jar
from war file and deploy that war file again.
from moqui-framework.
Aside from the Websocket API (not sure why that is having a binding issue with Tomcat 7...) you'll likely have issues with other things once you're past that (i.e. if removing javax.websocket-api-1.0.jar works). Like you mentioned, Moqui is using the Servlet 3.1 spec now.
In general with the current code base and the 2.0.0 release we're finally moving to some newer stuff like requiring Java 8 and more recent servlet containers too. There was never any official support for external servlet containers, but I generally test with at least Tomcat and Jetty now and it should work on any that support the spec versions used in Moqui (which you can see most easily in the framework/build.gradle file with the javax spec dependencies).
In short no, Tomcat 7 is no longer supported just like Java 7 is no longer supported since the 1.6.2 release (along with various other deprecations and updates in the upcoming 2.0.0 release).
from moqui-framework.
FYI: The reason tomcat 8 not throw this exception is because WebappClassLoader
in tomcat8 filter out javax.websocket
.
from moqui-framework.
@chunlinyao it did not work by removing the WEB-INF/lib/javax.websocket-api-1.0.jar from the WAR file, but it did work by configuring tomcat 7 classloader with delegate=true for the context in which moqui is loaded.
However, it seems to be a fragile fix, as moqui will be using the classes provided by the server instead of the ones shipped in the WAR.
from moqui-framework.
For things like spec jars Moqui really doesn't care which one is used, and it should even work fine with a Websocket 1.1 spec jar instead of the 1.0 (if that is what the underlying websocket implementation supports).
from moqui-framework.
Related Issues (20)
- Need to support custom SQL HOT 1
- Connection pool issues HOT 3
- docker - moqui server not running https://moqui.local HOT 2
- CVE-2023-26049 (Medium) detected in jetty-http-10.0.13.jar HOT 1
- CVE-2023-26048 (Medium) detected in jetty-server-10.0.13.jar HOT 1
- CVE-2023-24998 (High) detected in commons-fileupload-1.4.jar HOT 1
- When entity find has pk and other conditions, only pk takes effect
- WS-2023-0236 (Low) detected in jetty-xml-10.0.13.jar, jetty-xml-10.0.15.jar - autoclosed HOT 2
- CVE-2023-34478 (Critical) detected in shiro-core-1.11.0.jar HOT 1
- Xss risk HOT 3
- Issues when using sendJsonResponse in service for rest call HOT 4
- If the parameter type of service is BigDecimal, it will be unconditionally cast. HOT 1
- After clicking "Clear Parameters" to query the order, the query results are incorrect
- After the order is unapproved, an error is reported when importing inventory HOT 1
- Catalog/Search: ordering is broken HOT 1
- Any plans to upgrade to Java 17 or Java 21? HOT 2
- 100% CPU for pressure testing database HOT 4
- Client Side Template Injection Vulnerability HOT 5
- Is jetty mode startup of Moqui not supporting HTTPS? HOT 2
- CVE-2023-46750 (Medium) detected in shiro-web-1.12.0.jar HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moqui-framework.