Dan Farrow

Greenhorn
+ Follow
since Sep 18, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dan Farrow

I created a WAR file to deploy on JBOSS 4.2.2 and tested it on my development box where it worked fine. When the client deploys it to their JBoss 4.2.2 server, they see this error:

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:574)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

java.util.MissingResourceException: Can't find bundle for base name org.eclipse.jdt.internal.compiler.problem.messages, locale en_US
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:726)
java.util.ResourceBundle.getBundle(ResourceBundle.java:576)
org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.loadMessageTemplates(DefaultProblemFactory.java:179)
org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory.<init>(DefaultProblemFactory.java:42)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:339)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


Does anyone have any ideas how I should go about tracking down the problem?
14 years ago
Ok, I realized the problem was that servlet-api.jar was being copied to my WAR file, causing the problem. If I open the WAR file and delete the serlet-api.jar package, everything works in JBoss. How do I make the web app compile using servlet-api.jar, but not have it included in the web app?
Ok, I saw that I could simply include the servlet-api.jar and have the javax.servlet.* package available. However, when I do this and compile my project, I get this error:

java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/jasper/servlet/JasperLoader) previously initiated loading for a different type with name "javax/servlet/http/HttpServletRequest"

So it appears there is some conflict with using this package on JBoss, for some reason. All of the tutorials that use this package seem to assume you are going to use Tomcat, but I need to use JBoss (as that is what my client is using). How can I get Servlets working under JBoss?
Hello I am a newbie and I am building a Java Web app using the Netbean 6.7.1 IDE. My client uses JBoss server, so I am using that server. When I try to create a servlet in Netbeans, I get an error showing me that NetBeans doesn't know where to get the package javax.servlet.*. I guess this is included when you use Tomcat Server, but not JBoss? How do I use Servlets with JBoss?
Cool, thanks for the information. I do have a file path in my code, so I changed the code so that the separators come from the Java.lang.System "file.separator" property. I also re-uploaded my WAR file via binary mode FTP. Hopefully that will work.
14 years ago
I am new to Java development. I am building a Java app on my Windows machine in NetBeans IDE and it creates WAR files when I build the project. I sent these WAR files to the client and they said I need to build the WAR files for the UNIX file system. How does one accomplish this on Windows?

Thanks,
Dan
14 years ago