[Tomcat, HTTPD, Servlets & JSP] - Reading files from another archive
by eriksson.viktor
I have this web-application which is distributed to different end users. The application consists of servlet, classfiles and xsl files.
The xsl-files are end-user specific. As it looks now I have to package my application for each end user and that is a bit of a pain in the bum.
What I would like to do is to divide the application in two parts. The servlet/classes part and an xsl-part. So when bugfixes and such has been made and a new version is about to be sent out, I only need to sent out the servlet/classes-part.
My problem is that I don't know how to use the xsl-files from the servlet/classes application which are located in the other "application".
I think this is the way to do it when the files are in the current application:
getServletContext().getResourceAsStream("/WEB-INF/myresource");
But how do I read files from another archive/application ?
Another question I have is how should I package the xsl-files, jar file ? war-file ? other ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217674#4217674
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217674
17 years, 3 months
[JBoss Cache: Core Edition] - Unknown Magic Number
by ykahlon
Hello,
I use Jboss-Cache version 2.2 and I get the following error:
java.lang.Exception: Unknown magic number 57
| at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:633)
| at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:534)
| at org.jboss.cache.marshall.CacheMarshaller200.objectFromObjectStream(CacheMarshaller200.java:137)
|
Also I get:
(org.jboss.cache.marshall.VersionAwareMarshaller getMarshaller:304) WARN - () Unknown replication version String. Falling back to the default marshaller installed
I put in the cache an ArrayList (I tried with Set) with 12 items (when I put less it works fine).
Please help
BTW, I am running on Tomcat and in my case there are no Parallel threads.
Thanks,
Ykahlon
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217672#4217672
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217672
17 years, 3 months
[JBoss Tools (users)] - Re: Feedback on the Smooks editor
by max.andersen@jboss.com
I think we are talking about the same thing and yes I would love to go on a chat with you guys - but not until we get GA out; i'm fully booked until then, so some time next week.
With respect to broken syntax readers imagine if the java editor in eclipse would stop being able to code complete, syntax color etc. if you did not make sure every key you pressed were correct ?
Anyhow - I agree it might be ok for a smooks editor to be more strict if we can get a lot of features "for free" by giving up some others.
Next after binding to specific versions of Smooks (which you say is not so big a deal because Smooks is built to be backwards and possibly also forwards compatible - thanks for that!) then my biggest issue is being able to read smooks configuration files without having all the listed classes/resources available to the reader (i.e. classes might not be compiled, templates might not be where you want it to be etc.)
But let's chat about that next week.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217667#4217667
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4217667
17 years, 3 months