package com.felees.hbnpojogen.persistence does not exist - java

I cant find this package anywhere.
package com.felees.hbnpojogen.persistence does not exist.
Has anybody come across it?
The error came up when I tried to build a new CVS repository. In the pom.xml there is a dependency
<dependency>
<groupId>com.felees</groupId>
<artifactId>hbnpojogen</artifactId>
<version>1.4.4</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
.

You can download the package here

Related

Maven Dynamic Web Project dependencies defined in pom.xml file not working

I have a university project which involves setting up multiple Java Eclipse Dynamic Web Projects. These projects require JAXWS annotations which are set up by adding a couple of properties and dependencies into the pom.xml file of the project.
<dependencies>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId>
<version>2.2.6</version>
</dependency>
<dependency>
<groupId>com.sun.org.apache.xml.internal</groupId>
<artifactId>resolver</artifactId>
<version>20050927</version>
</dependency>
</dependencies>
Upon trying to use the JAX-WS annotations required (#WebService, #WebResult, etc.) in the project's Java interface I get an error message stating i.e. " "WebService" cannot be resolved to a type".
I have tried manually importing these libraries into the interface class (i.e. import javax.jws.WebService) but get an error message "The import javax.jws cannot be resolved".
My lecturer has stated that the only reason he can think of the annotations not working is if the dependencies haven't been added, even though I've done that? It's really confusing me, any help would be much appreciated.
You are not using the correct dependency for WebService, WebResult
Try this:
<!-- https://mvnrepository.com/artifact/javax.xml.ws/jaxws-api -->
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.6</version>
</dependency>

package io.rsocket.core does not exist during maven build

I'm facing some strange problem.
During maven build I'm getting package io.rsocket.core does not exist.
My pom.xml contains following dependencies
<dependency>
<groupId>io.rsocket</groupId>
<artifactId>rsocket-core</artifactId>
<version>1.0.0-RC6</version>
</dependency>
<dependency>
<groupId>io.rsocket</groupId>
<artifactId>rsocket-transport-netty</artifactId>
<version>1.0.0-RC6</version>
</dependency>
Analyzing reactor-core jar file showes that there is no core package in that jar. Did I missed some dependencies?
Thanks
Package is found in the artifact (spring-cloud-function-rsocket) Add this to your pom:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-function-rsocket</artifactId>
<version>3.1.0-SNAPSHOT</version>
</dependency>

The import org issue in spring java project

I am a novice to java and novice to spring as well...
I am creating my first java spring application using following link:
https://www.tutorialspoint.com/spring/spring_hello_world_example.htm
But I am getting this error on MainApp.jav-
The import org cannot be resolved.
Please see link given for steps i followed.
Please note I am not creating maven project.
Please help...
You have to add dependencies in your pom file , for imports. When you add a dependency , a jar file gets added in your maven or any other project, then you can import the org you want.
Issue resolved !
What i did - removed the import references and resolved it automatically by its class names.
You need to have the dependencies in the project in order to get the import statements.
add this to the pom.xml in to resolve the issue.
<properties>
<org.springframework.version>3.0.5.RELEASE</org.springframework.version>
</properties>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.context</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.web.servlet</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>org.springframework.transaction</artifactId>
<version>${org.springframework-version}</version>
</dependency>

Cannot find spring 4 maven artifact

According to the springio documentation here I should be able to just cut and paste this...
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework</artifactId>
<version>4.0.5.RELEASE</version>
</dependency>
</dependencies>
...into my maven pom, which I did, but it fails to resolve the version.
So I looked and found this and I added a proxy repository to my nexus for the [release] (http://repo.spring.io/release) repository but still failed to locate the artifact.
Then I navigated to the http://repo.spring.io/release repo and manually searched and CANNOT FIND the artifact.
So, where I am going wrong?
That's a mistake in the guide.
Somewhere below it mentions "spring-context", so I believe that should have been:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.5.RELEASE</version>
</dependency>
Notice "spring-context" instead of "spring-framework".
Github issue to have that fixed: Github issue.

The import javax.xml.rpc.encoding cannot be resolved

I'm trying to run this code
http://www.nactem.ac.uk/software/termine/webservice/termine_soap_client.java
and I get the following error: The import javax.xml.rpc.encoding cannot be resolved.
I'm using Oracle Java 7. What do I need to add to get this resolved?
Thanks,
Ivelina
Add the relevant jars to your build path :
axis.jar, jaxrpc.jar and xerces.jar.
In case someone is using Maven, these are the only dependencies I needed in order to make wsdl2java goal work:
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxrpc-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>

Categories

Resources