java-ee-5

Single/complete Maven dependencies for Java EE 5 API

自闭症网瘾萝莉.ら 提交于 2019-12-23 07:45:38
问题 Is there a single maven dependency containing whole Java EE 5 spec API. Just like <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> for Java EE 6. I'm using JBoss 5 and want to add single (or several) dependency as provided scope and be sure that I have everyting that is available in JBoss. Maybe some kind of archetype exist for JBoss 5.x.x deployed project? 回答1: Based on maven central I think you need the following: <dependency>

Any open source java library which can parse an EDI file in both ANSI x12 and UN/EDIFACT standards?

匆匆过客 提交于 2019-12-22 08:14:27
问题 Is there any open source java library which can parse an EDI file in both ANSI X12 and UN/EDIFACT standards? I have found smooks (http://www.smooks.org), which supports UN/EDIFACT standard but not sure whether this will support EDI files in ANSI X12 standard. Thanks in advance. 回答1: Smooks team publish their future release would start supporting the X12 version.I eagerly waiting here too. 回答2: According documentation EDIReader can parse both ANSI X12 and UN/EDIFACT. 回答3: I have successfully

Which are the differences/similarities between hibernate and other frameworks or specifications?

萝らか妹 提交于 2019-12-18 18:33:43
问题 I want to know the differences/similarities between Hibernate and simple persistence in Java EE 5? I'm not clear if Hibernate implements Java EE 5 persistence implementation or if it is a totally different approach to data representation over back-end systems. I'm confused about Hibernate and its relation with the concepts about java persistence given in the Java EE 5 tutorial... could you clarify the role of Hibernate in the context of Entities and EJBs? Also, I want to know other approaches

How do I upgrade an existing enterprise project from Java EE5 to Java EE 6 in Netbeans (6.9)

一世执手 提交于 2019-12-18 04:24:16
问题 The project has an EJB module & a web module. Changing the server is easy, but I'd like to switch to EJB 3.1 also but I believe I need to change all kind of configuration files since I can't do it from the project properties window(s). Any tips or links do useful documentation will be greatly appreciated. Thank you! 回答1: Apparently it's not that complicated. It worked for me by modifying the following files: <project-folder> /nbproject/project.properties change the following lines: j2ee

Servlet Mapping using web.xml

南笙酒味 提交于 2019-12-17 03:09:27
问题 I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why we have such a pattern in the deployment descriptor. <web-app> <servlet> <servlet-name>Servlet1</servlet-name> <servlet-path>foo.Servlet</servlet-path> </servlet> <servlet-mapping> <servlet-name>Servlet1</servlet-name> <url-pattern>/enroll</url-pattern> </servlet-mapping> </web-app> Now as far as my understanding whenever a request is

Servlet Mapping using web.xml

泄露秘密 提交于 2019-12-17 03:09:11
问题 I have a confusion regarding the structure of the web.xml for the servlet mapping, I don't have any problem by executing it but I am trying to figure it how why we have such a pattern in the deployment descriptor. <web-app> <servlet> <servlet-name>Servlet1</servlet-name> <servlet-path>foo.Servlet</servlet-path> </servlet> <servlet-mapping> <servlet-name>Servlet1</servlet-name> <url-pattern>/enroll</url-pattern> </servlet-mapping> </web-app> Now as far as my understanding whenever a request is

Migration solution for singletons in an OSGI environment

半城伤御伤魂 提交于 2019-12-13 16:20:53
问题 I'm working in a Java EE Environment in which each application is in a war file of its own. In the WEB-INF/lib of each application war file there is a common jar that is shared by all applications. This common jar contains several Singletons which are accessed from many points in the code. Because of the war-file boundaries each application has its own instances of the Singletons. Which is how we operate today, since we want to configure some of the singletons differently in each application.

Class not found Exception from Weblogic 9.2

南楼画角 提交于 2019-12-13 07:14:56
问题 In my JSF project workspace, I have a Java project A and a Weblogic EJB project B that uses the Java project. On generating the EAR I can see that the jar for Project A and B are there in the EAR as well as that of other projects in the workspace. However, on trying to access class from A in B i am getting a class not found exception. The Ejb Project B has the managedbean/dao/ejb/delegate and at this point the EJB is not getting called at all. The managedbean is instantiated and from another

WebLogic 10.5.3 + Seam 2.2.1: Application does not start

穿精又带淫゛_ 提交于 2019-12-13 02:54:13
问题 we have a WAR packaged web application which works on a development machine. It consists of Java EE 5 + Seam 2.2.1 + Hibernate 3.3.1. It uses an Oracle 10g XE database and runs on the latest Tomcat 6 using JDK 1.6.0_24. The system is a 64bit Windows 7 Pro and uses Firefox 6. Now, we tried to migrate the application to Oracle WebLogic 10.3.5. We followed the Seam manual for specifying the datasource, deploying the JSF lib and configuring the necessary xml-Files. In parallel to that, we

Where is my ejb-jar.xml?

匆匆过客 提交于 2019-12-12 12:41:38
问题 i created a Java EE 5 Enterprise Application on NetBeans 7.4 including a WAR and an EJB using Weblogic 10.3.0 Im using JPA so i need to use the datasource for my persistence.xml My problem is i'm trying to make a JDBC Datasource following this: http://docs.oracle.com/cd/E15051_01/wls/docs103/jdbc_admin/wwimages/jdbc_package_simple.gif But Netbeans didn't add a ejb-jar.xml to the EJB, which i need for a resource reference. Oracle's documentation says it needs to be inside META-INF folder but