Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build ispyb with java 11.0.5. #463

Open
IvarsKarpics opened this issue Mar 3, 2020 · 5 comments
Open

Unable to build ispyb with java 11.0.5. #463

IvarsKarpics opened this issue Mar 3, 2020 · 5 comments

Comments

@IvarsKarpics
Copy link
Contributor

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ispyb-ejb3: Compilation failure: Compilation failure: 
[ERROR] /home/karpics/ispyb/ispyb-ivars/ispyb-ejb/src/main/java/ispyb/server/common/util/ejb/Ejb3ServiceLocator.java:[27,17] package javax.rmi does not exist
[ERROR] /home/karpics/ispyb/ispyb-ivars/ispyb-ejb/src/main/java/ispyb/server/common/services/proposals/Proposal3Service.java:[29,17] package javax.jws does not exist
[ERROR] /home/karpics/ispyb/ispyb-ivars/ispyb-ejb/src/main/java/ispyb/server/mx/services/collections/BeamLineSetup3Service.java:[27,17] package javax.jws does not exist
[ERROR] /home/karpics/ispyb/ispyb-ivars/ispyb-ejb/src/main/java/ispyb/server/common/services/sessions/Session3ServiceBean.java:[37,17] package javax.jws does not exist
[ERROR] /home/karpics/ispyb/ispyb-ivars/ispyb-ejb/src/main/java/ispyb/server/mx/services/collections/BeamLineSetup3Service.java:[75,10] cannot find symbol
[ERROR]   symbol:   class WebMethod
[ERROR]   location: interface ispyb.server.mx.services.collections.BeamLineSetup3Service

What could be a generic solution to this?

@antolinos
Copy link
Collaborator

Dear @IvarsKarpics

We are not using Java 11 yet but a quick search in google brings this result:
https://stackoverflow.com/questions/54516361/how-to-use-webservices-on-java-11-package-javax-jws-does-not-exist

It proposes:

<dependency>
  <groupId>com.sun.xml.ws</groupId>
  <artifactId>jaxws-ri</artifactId>
  <version>2.3.0</version>
  <type>pom</type>
</dependency>

and even better:
https://stackoverflow.com/questions/48204141/replacements-for-deprecated-jpms-modules-with-java-ee-apis/48204154#48204154

@IvarsKarpics
Copy link
Contributor Author

Hi @antolinos

Thanks for the links. Somehow just adding dependencies it did not fully work. I will play a bit and come back to the issue if I find the solution.

@igvaz
Copy link

igvaz commented Mar 17, 2023

@IvarsKarpics @antolinos Hello!

I'm trying to build ispyb with java 8, but I'm getting some errors in "ispyb-ui":

1 - [ERROR] Failed to execute goal on project ispyb-ui: **Could not resolve dependencies for project ispyb:ispyb-ui:war:5.28: Failed to collect dependencies at tomcat:commons-fileupload:jar:1.0-5.5.23:** Failed to read artifact descriptor for tomcat:commons-fileupload:jar:1.0-5.5.23: Could not transfer artifact tomcat:commons-fileupload:pom:1.0-5.5.23 from/to java.net (https://maven.java.net/content/repositories/public/): Transfer failed for https://maven.java.net/content/repositories/public/tomcat/commons-fileupload/1.0-5.5.23/commons-fileupload-1.0-5.5.23.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ispyb-ui: Could not resolve dependencies for project ispyb:ispyb-ui:war:5.28: Failed to collect dependencies at tomcat:commons-fileupload:jar:1.0-5.5.23

Do you can imagine what possibly could causing it? :(
image

@hormiai76
Copy link
Contributor

I got the same error. The library has been removed from the maven repository so you need to install manually locally.
Can someone having the jar file locally push the it somewhere?

@bodinm
Copy link
Contributor

bodinm commented Mar 19, 2023

Hi,
I added the jar in this commit
5762230
you can then do a cd dependencies && mvn initialize and it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants