Thanks to everyone in advance -
So I setup a simple test to see how <%@ page errorPage="error.jsp" %> behaves. It seems to execute the said page "error.jsp" when I throw an exception, but if I test syntax errors like missing a ";", I am still getting the tomcat error page. Am I missing something or shouldnt this execute the error page o...
How can i deploy J2EE Shared libraries in Weblogic server from NetBeans 6.7 IDE. What I mean by Shared libraries is available in the following URL
http://download.oracle.com/docs/cd/E13222_01/wls/docs92/ConsoleHelp/pagehelp/J2EElibraryoverviewtitle.html
...
Why aren't cookies able to be referenced from a servlet filter? It just seems beyond me that J2EE wouldn't allow you to sanitize cookie values:
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
throws ServletException, IOException {
r...
Any recommendation on which Java open source helpdesk system i should use ?
i need these criteria
- come with dynamic approval level support for certain request (workflow)
...
Can we update a jar / war file in a deployed server and then reload the new jar / war file ?
if so how simple we can achieve this, and please if possible list web servers which support this feature.
...
I am using Rational Application Developer v7.0 that ships with an integrated test environment. When I get to debugging my webapp, the server startup time in debug mode is close to 5-6 minutes - enough time to take a coffe break!
At times, it so pisses me off that I start cursing IBM for building an operating system! instead of an app s...
Hi
Ive written a application with a custom login system. And then written my own security filter for it which sets the area that can be accessed. Yet i always get redirected to the login page and then to the index page with is the logged in home page. I have discovered that the session ID is different from when i login to when i try to ...
I am currently writing a template for OpenCms, a Java based CMS with a very good taglib-support and a powerfull API.
Anyway, when I look at tutorials or the source, its about 50-50 that taglibs or Javaclasses are used to generate (html)-output.
I try to keep my JSPs clean, meaning not to much scriplet code (instead using JSTL and so o...
Suppose we have some project with next structure:
web
articles
main.jsp
sidearts.jsp
central.jsp
forum
main.jsp
css
js
WEB-INF
web.xml
Note that we don't have front controller at this point yet.
After deploying with some facet (let it be 'asdf') we can access our pages using next URLs:
http://localho...
I am trying to use Hibernate/Spring in an OSGi (Equinox) environment. It works great if I explicitly point it to the Entity classes in the Persistence.xml:
<class>com.es.t.eee.domain.StuffSource</class>
<class>com.es.t.eee.domain.PostalAddress</class>
What I want is for Hibernate to "find" all of the Entity classes just as it does ...
Hi! As a Java newbie I'm wondering: of all the languages in the world, why is Java frequently used for enterprise applications? What makes it that way compared to the other languages? Will it continue to be this way in the upcoming years?
I'd appreciate your insights. Thanks in advance :)
...
Dears,
I used NetBeans to create a Metro Web service and GlassFish to be deployed on.
I get an error when I try to build -but only- if one of the operations in the web service return an Object instead of primitive types or String.
the Error is
Deploying application in domain failed; Deployment Error -- Exception occured in the wsgen ...
I've noticed recently that spring can wire up my ejb's for me if I annotate the ejb with @Interceptors(SpringBeanAutowiringInterceptor.class). I've never actually done this so don't know the details.
I was wondering, is there a way to get this to work with other kinds of beans, for example, @WebService annotated ones as well.
At the mo...
I have a servlet calling a session bean via a local interface. There is a 3 second pause between the last statement of the session method and the statement following that method call in the servlet.
I have identified what statement in the session bean causes the extra delay upon method return, but I just have no idea why there is such ...
I worked at a fortune 500 insurance company for almost 2 years. I worked on a reporting application that used Java, XML, XSLT, JavaScript, AJAX.
It was a J2EE application but it didn't use any of the major frameworks like Struts, Spring, EJB, any ORM, JAXP, JAXB.
But we developed our own software in house that could do that stuff. But ...
Hello good fellas! in my journey of learning hibernate i came across an article on hibernate site. i' learning spring too and wanted to do certain things to discover the flexibility of spring by letting you implement you own session.yes i don't want to use the hibernateTemplate(for experiment). and i'm now having a problem and even the t...
I'm working on a layered business application written in Java that should be packaged as an EAR file and deployed to a JBoss application server. There's a web-application layer, a service layer, a domain layer but no persistence layer. At least on paper.
What is the best practice for deploying the different layers? In our team we have a...
We have an application that uses SiteMesh, and when WebLogic tries to parse the TLD files, it sees the DOCTYPE specification, containing the reference to the TLD DTD, at "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd".
The server can not initiate outbound connections to the Internet, and so cannot retrieve the DTD, which causes the ...
I need to replicate a sequence/counter across an eight node cluster. This means that each http request receives the next value in the sequence by calling something like getNextIntAndIncrement(), where the sequence state is synchronized across all servers. To clarify, this must exist at application/global scope, not session. I know it ...
We have two applications a legacy struts app and and a new Seam application. We are using Hibernate and JPA on the Seam side and want to try to do so on the Struts side. I am trying to do:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("foo");
on the struts side, but I am seeing the following error:
o...