Все вопросы: [jakarta-ee]

805 вопросов

похожие теги: junit-eejava-ee-6java-ee-5java-ee-7
13
голосов
2ответов
15276 просмотров

Do not understand passing parameters in seam

As I debug my seam application, it dawns on me that I don't really understand how parameter passing works. The following terminology really has me confused. So I am asking this very general question in the hopes of getting a good explanation of what works with what and what certain things are f...

1
голосов
1ответов
941 просмотров

Strange Spring behavior on Jetty when spring.jar is in WEB-INF/lib/ instead of classpath

I'm running Eclipse with the run-jetty-run plugin to launch my J2EE web apps. My project uses Spring, and the spring configuration uses things like HttpInvokerProxy and properties placeholder. When the spring jars are on the classpath (I mean configured in the "classpath" tab of the "run config...

1
голосов
1ответов
3663 просмотров

Replacing JavaServer Faces Error Pages

Is it possible to replace the standard error pages from JavaServer Faces such as 500 Internal Server Error ? These include information such as the stack trace, etc. But for the users, when the page is in Production Mode, I want to show a friendlier page saying that the request did not succeed.

2
голосов
6ответов
8047 просмотров

Using entity id as a reference in Hibernate

I would like to hold a ref of some other entity using its identifier. The object model which I am working on is huge and related entities hold lot of data. Also few pieces are cyclic in nature and I suspect that holding objects directly will be a problem. So consider following as an example sa...

1
голосов
2ответов
520 просмотров

Securing webservice: valid SSL key error "ValidatorException: PKIX path building failed"

I want to secure a webservice using Netbeans with mechansim : "Message Authentication over SSL" and I do everything that Netbeans documentation and Sun WSIT tutorial told to do. I also import the generated SSL key in client jre but when I run the client code, I still got this error : Failed ...

0
голосов
1ответов
366 просмотров

EntityManager refresh

I reverse engineered some db tables, and a facade interface and implementing class were made. I need to do a refresh() on an entity, but the EntityManager is private from the reverse engineering, and I do not want to edit a reverse engineerined class. How do I go about getting the EntityManger so...

572
голосов
9ответов
345939 просмотров

.war vs .ear file

What is the difference between a .war and .ear file?

0
голосов
2ответов
1184 просмотров

Glassfish and Ant

I'm just in search how to deploy my project to the remote Glassfish v.2 server. It's easily could be done by installing Glassfish server on local computer and using as-admin tool but it's just a waste of space, time and recourses... The better way is to use jar files with defined Ant tasks(like y...

1
голосов
1ответов
2546 просмотров

How to download file from inside Seam PDF

In out project we are creating a pdf by using seam pdf and storing that pdf in the database. The user can then search up the pdf and view it in their pdf viewer. This is a small portion of the code that is generated to pdf: <p:html> <a:repeat var="file" value="#{attachment.files}" rowK...

4
голосов
3ответов
1228 просмотров

What Coldfusion 8 standard edition performance monitoring free tools are available?

The company I work for only has standard edition, and can not afford a pricey monitoring solution. And this is installed on windows 2003, IIS 6, Coldfusion 8. But we need a way to remotely look at performance of the coldfusion server, since perfmon can not send data remotely. And we don't want ...

1
голосов
3ответов
1702 просмотров

Clustering a Java EE Web app - Options?

I have a web app deployed to three servers running Apache, Tomcat and a load balancer in front of them. Now I am thinking of clustering them. Here are the options usual options and my constraints that I am aware of: Serialization based Session clustering: In my case, the application uses a lot...

0
голосов
1ответов
1691 просмотров

Lookup Local EJB from Glassfish LifeCycle module

I can look up the remote interface of an EJB3 from a Glassfish 2.1 using the global jndi name. However, as I understand, if this were not a LC module but an EJB (Servlet), I would have an ejb-local-ref entry in its ejb-jar.xml (web.xml). Is there a place to define Local references for an LC modu...

11
голосов
3ответов
11298 просмотров

Why throwing an EJBException is a "recommended" practice?

I keep getting this "suggestion" from many fellow developers over and over again. In my experience I've found that EJBExceptions are well-suited for "end of the world" from the bean instance perspective (like when something is so wrong that the bean instance cannot recover by itself). If an insta...

0
голосов
2ответов
10883 просмотров

how to obtain the relative path of a resource in a j2ee project

I have a Dynamic Web Project having a flat file (or say text file). I have created a servlet in which I need to use this file. My code is as following: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // String resource = ...

2
голосов
2ответов
4751 просмотров

Architecture of Liferay Project?

I have to design High Level Architecture for Liferay Project. Is there any sample document for Portal Architecture related to Liferay / J2EE?

2
голосов
1ответов
217 просмотров

Still Need To Write a Connection Pool Class in J2EE 6 with MySQL 5?

I'm looking around trying to see if anybody has asked this before. I don't think so. Some of the other questions I've looked at seem to talk about this a bit and indicate that using a JNDI datasource setup in Tomcat is the best way to do database stuff in your J2EE app now. It's been three or f...

0
голосов
2ответов
515 просмотров

What's the deal with web service generation and JavaBeans?

I recently wrote some data access methods (plain old Java) that use immutable objects for both the request objects and the resulting data objects. I like the immutable objects because they prevent a good deal of confusion from appearing in the client code which I've seen in the past when people ...

0
голосов
2ответов
8071 просмотров

java.rmi.MarshalException

whenever I try to call my ejb from a client, I get this error : java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is: java.io.InvalidClassException: com.afrikbrain.util.message.MessageInfo; local class incompat...

5
голосов
3ответов
3615 просмотров

Criteria queries in EJB 3

Can I use Criteria queries with EJB3 entities? If so, how can I combine them with EntityManager?

0
голосов
2ответов
283 просмотров

LazyInitialization Exception

I have 2 Hibernate objects : Dero and Motif. a Dero has a set of Motif. I load a Dero object from the DB fine. but when I try to access its set of Motif : assertEquals(dero.getMotifRefus(),deroFromDB.getMotifRefus()); I get an exception : org.hibernate.LazyInitializationException: failed...

9
голосов
3ответов
17679 просмотров

How to check whether a user is logged in or not in Servlets?

In a Java Servlet I want to check programmatically whether a user is logged in or not.

0
голосов
2ответов
3317 просмотров

java.rmi.ServerException: RuntimeException

When trying to access an ejb from a client , I get this exception : java.rmi.ServerException: RuntimeException; nested exception is: java.lang.NullPointerException at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421) at org.jboss.ejb.plugins.LogInterceptor.invoke(L...

0
голосов
1ответов
2654 просмотров

java.rmi.MarshalException: Failed to communicate

I'm using jbossIDE Eclipse 1.6. when deploying my .ear app, I get a java.rmi.MarshalException. what's surprising is that just a few min ago, everything was OK. I feel like this jbossIDE Eclipse thing is really useless. it's crashing all the time. java.rmi.MarshalException: Failed to commun...

0
голосов
2ответов
3391 просмотров

How to get the class loader ObjectName from a JavaEE application under JBoss 5.x

Our JavaEE application has a services which is responsible for installation and start up of other services depending on the configuration stored in a database. Services are installed using the ServiceControllerMBean.install( org.w3c.dom.Element element, javax.management.ObjectName object...

1
голосов
3ответов
5505 просмотров

How can I implement JMS MessageListener?

I tried to implement MessageListener, but it dosen't work, but when I use MessageListner, it doesn't work. So what should I do that MessageListener starts working, I'm using jboss 4.02. recv.receive(); // This works recv.setMessageListener(new ExListener()); // This doesn't work public sta...

0
голосов
3ответов
5801 просмотров

J2EE - JPA - EJB3 - Transactions in MDB methods

I have resource local datasource (Oracle9i) deployed at JBoss 5.1.0: <datasources> <local-tx-datasource> <jndi-name>OracleDS</jndi-name> <connection-url>jdbc:oracle:thin:@IP_ADDRESS:1521:inv9i</connection-url> <driver-class>oracle.jdbc.driv...

3
голосов
3ответов
1942 просмотров

Huge EAR deployment

I'm trying to figure out how to deploy a huge (40-50 MB) EAR file to the server through a rather slow VPN connection. The EAR contains EJB and WAR projects created in Glassfish, and 90% of the file size is from external dependency libraries used. Has anyone came up with a strategy for elegant d...

1
голосов
3ответов
6629 просмотров

How to call an EJB from another EJB?

I use jboss-IDE. so, I created a project with many EJB's in the same project. now, I need a functionality exposed by EJB A in EJB B. so, I need to call EJB A in EJB B. How do I do that ? P.S : dealing with EJB 2.

4
голосов
4ответов
14979 просмотров

Javassist Enhancement failed

I use Jboss IDE as IDE. I have created a Hibernate project. and I get this error when deploying my .har (Hibernate project) : 16:16:30,910 ERROR [BasicLazyInitializer] Javassist Enhancement failed: com.afrikbrain.iard.srv.ref.AssGarantieProduit java.lang.NullPointerException at org.jboss.mx.loa...

0
голосов
5ответов
454 просмотров

suggestion on batch processing db records

I am working on developing a webapp (visual jsf, ejb3, hibernate on glassfish/mysql) that works with an existing legacy system. I have an 'employee' table (with fields such as name (String), location (String), etc.) which is separate from an employee table on the legacy db2 side. I do all of the...