ear

Gradle: Could not find method provided()

血红的双手。 提交于 2020-01-01 05:15:30
问题 Which is preferred, provided or provided group and where is this documented? thufir@doge:~/NetBeansProjects/gradleEAR$ thufir@doge:~/NetBeansProjects/gradleEAR$ gradle clean FAILURE: Build failed with an exception. * Where: Build file '/home/thufir/NetBeansProjects/gradleEAR/build.gradle' line: 40 * What went wrong: A problem occurred evaluating root project 'gradleEAR'. > Could not find method provided() for arguments [javax:javaee-api:7.0] on object of type org.gradle.api.internal.artifacts

Wildfly 9.0.1.Final: EAR deployment failed

左心房为你撑大大i 提交于 2019-12-31 05:47:05
问题 I am trying to deploy my struts based web application on Wildfly 9.0.1.Final. I am deploying as an .ear file that contains .war/.jar(EJB) files. But it gives me an error during deployment. Error Stacktrace: Failed to define class AuditMDB in Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link AuditMDB (Module "deployment.webapp.ear.EJB.jar:main" from Service Module Loader) at org.jboss.modules.ModuleClassLoader.defineClass

In java EE, which jars should I put in the library dir?

会有一股神秘感。 提交于 2019-12-30 08:13:15
问题 I have a Java EE project. The project is built using maven into an .ear archive. There is a library jar containing a JPA 2 persistence unit, which is located in the library directory of the ear (so multiple other modules can use it). While adding an implementation of Shiro's Permission interface as an entity in this persistence unit, I had trouble getting the ear to deploy correctly, because the shiro classes where unavailable in the persistence unit. I eventually figured out that I needed to

Which jars needs to be present in WEB-INF\lib and in .classpath

假如想象 提交于 2019-12-25 08:07:17
问题 I am converting a regular J2EE application to use Maven. I was able to successfully convert to Maven and I am getting successful "mvn deploy". The issue is facing after deploying the ear to WAS. I am getting SRVE0203E :Servlet [action] org.apache.struts.action.ActionServlet is missing another required class. I had similar problems for different application and after trying couple of "exclusion" of jars I was able to deploy the application successfully in WAS. I have following question. How

Maven EAR multimodule project not packaging persistence.xml

别说谁变了你拦得住时间么 提交于 2019-12-25 07:26:52
问题 I`m working in a EAR project with Maven which has 2 modules. Images speaks louder than words, so let me show you the structure: Parent pom project and modules sigea-model contains model, repository and service layers (The "M" in MVC ). sigea-web contains web pages and controller beans ( VC ) and sigea-ear is just a wrapper to package the other 2 modules in a EAR package. Configuration files in modules As you can see, sigea-ear has an empty META-INF folder. Both beans.xml files in sigea-model

WAR outside the EAR, not able to reference JAR inside EAR. In wildfly 8

会有一股神秘感。 提交于 2019-12-25 06:47:00
问题 I am migrating to Wildfly 8.2 from JBoss 5.1, I am deploying a Web Service using the resteasy and some EAR which has the code to get the requested data from the DB. Both the EAR which has multiple (6) JARs, but when I call the Web Service, it is not able to find the EAR and refer it's JARs 14:57:48,183 INFO [stdout] (default task-4) InitialContextFactory not defined - using default: org.jnp.interfaces.NamingContextFactory 14:57:48,184 ERROR [stderr] (default task-4) javax.naming

ClassNotFound: Xerces SAXParserFactoryImpl when running in Wildfly 8.2

左心房为你撑大大i 提交于 2019-12-25 05:00:31
问题 I am running Wildfly 8.2.0 and doing some XML Config file parsing. The idea is that I'll be able to use my bundled xercesImpl.jar to provide the JAXP SAXParserFactoryImpl. When running the logic outside of Wildfly, I am successfully able to parse with the SAXParserFactoryImpl. This factory is found by setting the system property: System.setProperty("javax.xml.parsers.SAXParserFactory", "org.apache.xerces.jaxp.SAXParserFactoryImpl"); SAXParserFactory factory = javax.xml.parsers

Gradle custom ear

佐手、 提交于 2019-12-25 03:08:52
问题 I would like to deploy my project with below structure: --MyPrj.ear --APP-INF --classes --lib --META-INF --application.xml --weblogic-application.xml --WEB_MAIN --assets --WEB-INF --conf --web.xml --weblogic.xml And here is my ear configuration ear { appDirName 'APP-INF/src' libDirName 'APP-INF/lib' deploymentDescriptor { applicationName = "MyPRJ" displayName = "My Project" description = "My Project" } } 来源: https://stackoverflow.com/questions/31978589/gradle-custom-ear

What causes java.net.MalformedURLException: no protocol: when trying to deploy .ear in weblogic?

半城伤御伤魂 提交于 2019-12-24 08:57:12
问题 I am trying to deploy an EAR file. I am new to weblogic. I am using oracle enterprise pack for eclipse. I have a running weblogic server. I created an Enterprise Application Project My application.xml is: <?xml version="1.0" encoding="ASCII"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun

How to open a resource file in a WAR using a string pathname?

≡放荡痞女 提交于 2019-12-24 00:52:14
问题 I am building a WAR/EAR and one of my components reads in many custom configuration files using File IO: Reader reader = new BufferedReader(new FileReader(path)); The path above is a String that is passed as a property to this class through Spring's applicationContext.xml file. What String path do I specify if I want to put all these configuration files inside a WAR? Can this even be done? Or is the component incorrect and should be using getResourceAsStream() instead? I browsed around and