1. Cannot deploy Enterprise Application to glassfish stackoverflow.comI've been working on a web application created on Netbeans 6.9.1, and everything works fine and I'm able to deploy it without problems. Today I've created an Enterprise Application and replaced ... |
2. Deploy EAR and WAR file to glassfish 2.1 stackoverflow.comI do have two different deployment units. One is a war file and the second one is a ear file. Each of them works fine, when they are deployed seperatly. If ... |
3. JSF - referencing images outside of deployed .ear java.net[code] package com.horstmann.qq.web; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; public class GetImageServlet extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { HttpSession session = request.getSession(); String id = request.getParameter("id"); String extension = id.substring(id.lastIndexOf('.') + 1); response.setContentType("image/" + extension); String imageDirectory = getServletContext().getInitParameter("com.horstmann.qq.imagePath"); FileInputStream in = new FileInputStream(new File(new File(imageDirectory), id)); OutputStream out = response.getOutputStream(); final ... |
4. Install jsf lib elsewhere that my ear java.net |