j2ee

Exclude folder from WAR file in Netbeans 6+

Guys, I have I think simple problem, but somehow it's causing some trouble. I have WAR project in Netbeans, and the contents look like this: WEB-INF images lib src stylesheets Now, folder 'src' contains some other folders with javascript code, that is minified during build process and placed in 'lib' directory. Oviously as js is ...

Seam - Multiple Persistence Units

Hi all, Does Seam support multiple persistence units in its configuration? Also, when would you want to have or need multiple persistence units? I am working on a generic component and right now, it only supports a single persistence unit which makes sense to me as I have never used more than 1 persistence unit per web application. S...

Cell Phone Monitor in J2SE

Need an incoming cell phone call monitoring in my application. In realtime. Java Application is running at PC (Linux or Windows). There is a connection PC to cell phone over serial cable or bluetooth. How to implement monitoring? Are there any frameworks that provide high level interface to major mobile systems (nokia, SE, motorola, sie...

Accessing folders outside application package (.ear/.war file)

Hi guys, Is there any way of making a folder that is NOT packaged in the war file accesible via GET. Probably setting something in web.xml ? ...

Struts2 application giving blank pages while browsing ..

I have struts2 application with struts2 version 2.0, There is no error on server side or client side but frequently its showing blank pages while browsing. It seems like browser could not render the html page. These blank pages are not shown on specific pages but randomly shown on different pages. I have been told to fix problem but co...

Server setup for netbeans web application

I have the code for a web application that's supposed to be set up in Tomcat, on my company's server. I work on this server by SSHing into it. So I am in NetBeans 6.8 on Ubuntu 10.04, setting up a Java Web->New Web Project with Existing Sources. I can copy the code from the server onto my desktop when it asks for the location of the s...

Application.xml vs sun-application.xml

Hi, I'm developing a JSF2 application using Glassfish which contains some EJB's; is there a reason I should use sun-application.xml versus the standard application.xml file? I would like to deploy my application as an exploded EAR. Do I need to do anything special with the application xml configuration? Thanks in advance! ...

'Immediate' window for IntelliJ

Hello, I'm using IntelliJ 9 and I'm curious if there is any IntelliJ equivalent of the Visual Studio 'immediate' debug window. There is ALT-F8 to evaluate an expression, but what I'd like to be able to write code in a window that interacts with what I am currently debugging (if that's even possible). Having breakpoints that log messag...

Why request.getRemoteAddr() returns ipv4 or ipv6 depending on context (post query or ajax query)

Hello, I've donne a web app with Spring/GWT that uses Flash to upload files. When I send an ajax request with GWT and try to get the user ip address, I get an ipv4 address like: 127.0.0.1 but when I upload my files with flash (and so a post request on the same webapp) I get an ipv6 address 0:0:0:0:0:0:0:1 I use the same code to get ...

why use j2ee language?

please explain.. why use j2ee concepts which type of applications using j2ee ...

loggerI18N throws WARN messages

13:03:51,062 WARN [loggerI18N] [com.arjuna.ats.internal.jta.resources.arjunacor e.norecoveryxa] [com.arjuna.ats.internal.jta.resources.arjunacore.norecoveryxa] Could not find new XAResource to use for recovering non-serializable XAResource < 131075, 28, 26, 49454551102535510210110256581009954585299489749101999758495549 455110253551021011...

Problem install seam on weblogic

I guys, I need to install jboss-seam on weblogic server. I read the seam documentation but after many problem, I have another problem which I can't resolve. When I deploy my ear on weblogic, I get this error: java.lang.ClassNotFoundException: org.apache.myfaces.webapp.MyFacesServlet However, I installed jsf as the doc describes and ...

How to set content-type for post request without HttpServlet

Hello, I have created one java class which constructs url to send POST request.I have to use content-type (application/x-www-form-urlencoded) without using HttpServletResponse/Request from simple java class.How should i do this ? ...

StackOverflowError when trying to deploy an application to Weblogic ?

I am working on a J2EE application, to deploy I am using a build.xml (which is used by all team members) to create ear & publish, after the BUILD SUCCESSFUL message appears in Eclipse, I start Weblogic 10.3.2 but weblogic doesn't start properly and shows the following error message in the console: SLF4J: Class path contains multiple SL...

Weblogic throws CompilationException.

javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/content/intro.jsp messages.tag:2:30: The encoding specified on the page cannot be different than detected encoding for the file. <%@ tag body-content="empty" pageEncoding="utf-8" %> ^----------^ If I re...

ClassCastException jboss-seam on weblogic 10.3

Hi guys, I have many problem to installed jboss-seam 2.2.0 on weblogic 10.3. I want to deploy the exemple furnish by jboss but I get the following error: java.lang.ClassCastException: com.sun.faces.application.WebappLifecycleListener cannot be cast to java.util.EventListener at weblogic.servlet.internal.WebComponentContributor.createL...

Any good resource for learning both JEE *and* J2EE simultaneously?

I am looking for a good resource that teaches JEE while also explaining how the same code, concept, and 'mindset' would have been handled in the older, J2EE era. I need the material to cover all the API and developer-architect mindsets that have (significantly) changed in JEE, with EJB and Persistence being two that I know of. Does ther...

Rack port to Java?

Hi there, Do you know if Rack was ported to Java? To be more specific, I am aware of jruby-rack but I am looking for a native Java (re)implementation of Rack, if any?! Thank you in advance, - florin ...

j2ee installation and configuration on mac os

i am a newbie for mac os. i would like to develop J2EE on MAC os. Where can i find the development environment configuration such as how to install j2ee, the file structure of j2ee, where is j2ee.jar file, classpath. i have search for some of keywords, but most of them is about tomcat, jboss configuration. Could anyone provide link or k...

Concurrency in Java EE application

Hi all, Previously I asked this question: http://stackoverflow.com/questions/2941657/read-quicktime-movie-from-servlet-in-a-webpage Basically I used a servlet to stream a movie file to a quicktime plugin on browser (In order to play file outside the root). At the end Ryan Fernandes asked me the question regarding concurrency issue. I ...