Posts

Showing posts with the label maven

Eclipse Photon - SVN / Maven not handled as Java-Project

Eclipse Photon - SVN / Maven not handled as Java-Project I moved forward to Eclipse 4.8. My Projects Maven projects under subversion is not displayed as Java Project and the pom.xml is displayed in XML-Editor instead of the well-meant pom-editor. pom.xml Steps I done: The Project's icon is showing the M-Icon-Overlay let me think it is a maven project. The Project's icon does not contain the J-Icon-Overlay what let me think he does not treat it as a Java project. Any ideas? Try to delete the file without deleting its content, delete the .project file and reopen it via File > Open Projects from File System... . – howlger Jun 30 at 10:54 .project 1 Answer 1 Doesnt work at the moment. I created a workspace in an older version and opend the works...

How to migrate JavaFX app from JDK 1.8 to JDK 10 [duplicate]

How to migrate JavaFX app from JDK 1.8 to JDK 10 [duplicate] This question already has an answer here: I have a legacy JavaFX app which compiles and runs correctly on JDK 1.8. To move to JDK 10 I've added these to the pom.xml: <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <release>10</release> <compilerArgs> <arg>--add-modules</arg> <arg>javax.xml.bind</arg> </compilerArgs> </configuration> </plugin> Running mvn clean install -DskipTests with JDK 10.0.1 and mvn 3.3.9 gives mvn clean install...

JBWEB000236: Servlet.service(), maven, jboss, rest

JBWEB000236: Servlet.service(), maven, jboss, rest I try to recover data from a table but when I try to access the method where it gets the data from the database it gives me an error. Executing http://localhost:8080/cart/service/sepsRest/obtenerCatalogo; in the line http://localhost:8080/cart/service/sepsRest/obtenerCatalogo; listaCatalogo = catalogoServicio.obtenerPorGrupoNemonico("TIPOID"); It gives me the following error. 15:48:15,370 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/cart].[javax.ws.rs.core.Application]] (http-/0.0.0.0:8080-6) JBWEB000236: Servlet.service() for servlet javax.ws.rs.core.Application threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:364) [resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.ja...

Use external dependency in Jira 7.x plugin

Use external dependency in Jira 7.x plugin With the SDK 6.3.10, I am trying to develop a plugin for Jira 7.x. This plugin should use an external Java dependency named "maven-handling". I did the following: First I added the dependency in the POM: <dependency> <groupId>some-company</groupId> <artifactId>maven-handling</artifactId> <version>1.0.0-SNAPSHOT</version> </dependency> Then I changed the import-package entry in the maven-jira-plugin to: <Import-Package>org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", some-company.maven_handling*;version="0.0";resolution:="optional", * </Import-Package> Still I get a classNotFound on the class I use from the some-company.maven_handling package. What did I miss? Is the package some-company.maven_handling* correct? furthermore shouldn...

how do I force tycho to include locally build units

how do I force tycho to include locally build units I am building a bundle using maven-bundle-plugin, which I am using as dependency for my eclipse rcp project using tycho. my maven-bundle-configuration is <configuration> <instructions> <!-- @formatter:off --> <Bundle-SymbolicName>${project.artifactId};singleton:=true</Bundle-SymbolicName> <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> <Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment> <Bundle-Version>1.0.0-SNAPSHOT</Bundle-Version> <_removeheaders>Bnd-LastModified,Build-Jdk,Built-By,Created-By,Tool</_removeheaders> <_snapshot>SNAPSHOT</_snapshot> *;scope=compi...

Spring Boot Application immediately shuts down after starting in external TOMCAT

Spring Boot Application immediately shuts down after starting in external TOMCAT Spring boot immediately shuts down after starting in external TOMCAT. But in Eclipse this runs well and JAR with embed too. I use Tomcat 7 and JAVA 8. I read a lot of webs and documentation which do not exist. My Eclipse POM is: http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 <groupId>com.suez.demo</groupId> <artifactId>Myapp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <name>Myappname</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.6.RELEASE</version> <relativePath/> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <proje...

Maven error during compile

Maven error during compile When I try to run mvn -e compile the I get this error . Can someone help me how to resolve this error [ERROR] Failed to execute goal on project mpod-parent: Could not resolve depende ncies for project omega.bigdata:mpod-parent:pom:1.4.5: Failed to collect depende ncies at com.twitter:scalding-json_2.10:jar:0.10.1: Failed to read artifact desc riptor for com.twitter:scalding-json_2.10:jar:0.10.1: Could not transfer artifac t com.twitter:scalding-json_2.10:pom:0.10.1 from/to ext-release-local (https://a rtifactory.dev.bigdata.omega.com/artifactory/ext-release-local): sun.security.va lidator.ValidatorException: PKIX path building failed: sun.security.provider.cer tpath.SunCertPathBuilderException: unable to find valid certification path to re quested target -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o n project mpod-parent: Could not resolve dependencies for project bskyb.bigdata: mpod-parent:pom:1.4.5: Failed ...

Cannot find class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactory] for bean with name 'sessionFactory'

Cannot find class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactory] for bean with name 'sessionFactory' i created a project in spring using maven dependencies but i am getting the above mentioned error. i changed the version of hibernate dependency but stil it does nt get resolved here is the code: pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.shr</groupId> <artifactId>apps</artifactId> <name>SpringJdbcProject</name> <packaging>war</packaging> <version>1.0.0-BUILD-SNAPSHOT</version> <properties> <java-version>1.6</java-version> <org.springframework-...

WebApplicationContext does not Autowire when injecting in Spock Specification

WebApplicationContext does not Autowire when injecting in Spock Specification Although I followed the Spring Boot Guide, when trying: @SpringApplicationConfiguration(classes=MainWebApplication.class, initializers = ConfigFileApplicationContextInitializer.class) @WebAppConfiguration @ActiveProfiles("integration-test") class FirstSpec extends Specification{ @Autowired WebApplicationContext webApplicationContext @Shared MockMvc mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build() def "Root returns 200 - OK"(){ when: response = mockMvc.perform(get("/")) then: response.andExpect(status().isOk()) } } I just get the message that a WebApplicationContext just is not injected. I do have <dependency> <groupId>org.spockframework</groupId> <artifactId>spock-spring</artifactId> </dependency> <dependency> <groupId>org.spockframewo...

maven-site plugins 3.3 java.lang.ClassNotFoundException: org.apache.maven.doxia.siterenderer.DocumentContent

maven-site plugins 3.3 java.lang.ClassNotFoundException: org.apache.maven.doxia.siterenderer.DocumentContent Since this night, maven site 3.3 plugins stop to work. Try to delete local repository, but no change. Maven 3.3.9 java 1.8 No config or dependencies defined in pom for site plugins [WARNING] Error injecting: org.apache.maven.report.projectinfo.CiManagementReport java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent 5 Answers 5 I had just started to get this issue also during builds. What worked for me was to specifically define the maven-site-plugin and the maven-project-info-reports-plugin along with the version numbers in the pom. maven-site-plugin maven-project-info-reports-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.3</version> </plugin...

Error running Maven project: Unsupported protocol: t3

Error running Maven project: Unsupported protocol: t3 I have a Maven project for monitoring of weblogic servers through JMX. In the maven POM.xml , I specify the dependency for wlfullclient.jar through scope tag due to previous errors. POM.xml wlfullclient.jar scope <dependency> <groupId>weblogic</groupId> <artifactId>wlfullclient</artifactId> <scope>system</scope> <systemPath>${basedir}/libs/wlfullclient-11.1.1.4.0.jar</systemPath> <version>11.1.1.4.0</version> </dependency> It builds successfully, however, when running the jar file, I get this error: jar java.net.MalformedURLException: Unsupported protocol: t3 at javax.management.remote.JMXConnectorFactory.newJMXConnector(Unknown Source) at javax.management.remote.JMXConnectorFactory.connect(Unknown Source) I looked into the MANIFEST file in the built jar file, and noticed it lists all jars in the classpath, except this wlfullclient...