-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inability to use WebLogic native support without providing Tomcat, JBossWeb, etc. libs #873
Comments
You need all the atmosphere-compat-xxx dependendencies to make it work. If you use Maven that should not be a problem? |
Yes, with Maven it isn't a problem, as I said. But:
|
Na just spotted the issue. I will fix the logging issue, and that should make it work. |
Fixed. Try 1.0.10-SNAPSHOT (atmosphere-weblogic-1.0.10-20130130.203304-21.jar) |
Thanks. Could you please tell, are there a lot of couplings between primary and compatibility libraries? |
If you look at Atmosphere code, and to make it work with all Server, dependencies like this are required. Just exclude the atmosphere-compat-* from your pom.xml and Atmosphere will work. It is not a choice to do that, but to make sure application are portable. |
No, small coupling and class are loaded by reflection, hence no issues unless a bug. I will also exclude the compat dependencies from atmosphere-weblogic so you should be fine. Give me 10 minutes |
Thanks a lot, great responsiveness. I'm just researching the Atmosphere for potential use in my project and seems it's the right choice :) |
Ok fixed. Let me know how it goes. |
Hello,
Following exception occurs during attempt to deploy WAR, which contains atmosphere-weblogic and uses org.atmosphere.weblogic.AtmosphereWebLogicServlet:
Problem is actually simple: line 38 of AtmosphereWebLogicServlet refers to AtmosphereServlet, which, in turn, implements org.apache.catalina.CometProcessor, org.jboss.servlet.http.HttpEventServlet:
protected static final Logger logger = LoggerFactory.getLogger(AtmosphereServlet.class);
According to the JLS, class literals will cause classloader to load class, and during this process NoClassDefFoundError can be thrown, exactly as in this case.
Not sure, whether it is an intended behaviour (that AtmosphereWebLogicServlet's logger is named equal to AtmosphereServlet's) or just a mistake.
Also, I've noted that Maven artifact atmosphere-runtime depends on atmosphere-compat-jbossweb, atmosphere-compat-tomcat, etc., so if one will assemble an app using Maven and won't exclude these artifacts - no problem will (obviously) occur. Is it actually possible to decouple runtime from container-specific artefacts?
"Structure of an Atmosphere's Application" states that: "You can remove some of the file if you don't need portability."
The text was updated successfully, but these errors were encountered: