Error in building Liferay 6.2 portlet in Eclipse Juno? - eclipse

I am getting below error when trying to create a portlet in Eclipse Juno using liferay 6.2 EE. Can you please let me know what i am missing in this? I am new to Liferay 6.2
BUILD FAILED
D:\Working\Liferay 6.2\liferay-plugins-sdk-6.2.10.1\portlets\build.xml:5: The following error occurred while executing this line:
D:\Working\Liferay 6.2\liferay-plugins-sdk-6.2.10.1\build-common-plugins.xml:5: The following error occurred while executing this line:
D:\Working\Liferay 6.2\liferay-plugins-sdk-6.2.10.1\build-common.xml:47: The following error occurred while executing this line:
D:\Working\Liferay 6.2\liferay-plugins-sdk-6.2.10.1\build-common-ivy.xml:34: The following error occurred while executing this line:
D:\Working\Liferay 6.2\liferay-plugins-sdk-6.2.10.1\build-common-ivy.xml:50: impossible to resolve dependencies:
resolve failed - see output for details
Total time: 1 minute 1 second

Are you getting the following message, mentioned in the forum?
[ivy:resolve] Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
If so this means ivy is attempting to access an SSL protected URL (https) that is using an invalid certificate.
You must provide more detail (full stacktrace and applicable ivy code) in order to diagnose further.

Related

Issues Running and Debugging Spring Boot Gradle application in Eclipse

I have imported a gradle spring boot project in Eclipse (latest version). When I go to Gradle Tasks -> bootRun. I am able to run the gradle tasks. The application is working fine and am able to call controller classes using Postman.
But, I need to debug the code. So, I right click on project and Debug As -> Java Application. But application fails to run with following error
ERROR o.a.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections of pool.
IO Error: IO Error PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
...
Caused by: java.io.IOException: IO Error PKIX path building failed:..
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed:
Why I can bootRun the application but not Debug As -> Java Application

Maven install command in Eclipse fails with error Access denied , Error code 403, Forbidden

When I do Eclipse maven install, it fails with the below error message:
Access denied to http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom. Error code 403, Forbidden
Below is the complete error message :
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project IoTIPDev: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4 -> org.apache.maven.surefire:maven-surefire-common:jar:2.12.4 -> org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1: Failed to read artifact descriptor for org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.1: Could not transfer artifact org.apache.maven.plugin-tools:maven-plugin-annotations:pom:3.1 from/to central (http://repo.maven.apache.org/maven2): Access denied to http://repo.maven.apache.org/maven2/org/apache/maven/plugin-tools/maven-plugin-annotations/3.1/maven-plugin-annotations-3.1.pom. Error code 403, Forbidden -> [Help 1]
[ERROR]
What can be the issue?
For some reason eclipse's maven is not allowed access to maven-plugin-annotations-3.1.pom.
Verify that Eclipse is using the same version of maven than the one used with command line.
If running in windows run Eclipse as Admin.

An error occurred after hosting of jsp web application

I have created a jsp web application. The real task is i have to host my project in the university server using WINSCP. But when i test the project using the university domain i am getting this error
type Exception report
message Unable to compile class for JSP:
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [15] in the generated java file: [C:\tomcat\work\Catalina\localhost\ROOT\org\apache\jsp\student\gtalluri\workspace\java\MSUVotingSystem\WebContent\index_jsp.java]
Only a type can be imported. edu.msu.isa.jdbc.SQLServer resolves to a package
An error occurred at line: [20] in the generated java file: [C:\tomcat\work\Catalina\localhost\ROOT\org\apache\jsp\student\gtalluri\workspace\java\MSUVotingSystem\WebContent\index_jsp.java]
Only a type can be imported. edu.msu.isa.jdbc.DateStore resolves to a package
An error occurred at line: 108 in the jsp file: /student/gtalluri/workspace/java/MSUVotingSystem/WebContent/index.jsp
SQLServer cannot be resolved
I am unable to understand what the actual problem is , i tried to change the tomcat settings but this did not solve my problem.
To find the exact error please go to the following link ad guide me what is the exact problem
There is a compilation issue .According to the log printed I come to know that there is an issue with the Import statement within JSP.
<%# page import="" %>
SQLServer.class file is not residing in the package provided in the above import statement.

Cannot deploy application to glassfish server

Got the above error when trying to deploy to glassfish server.
Any suggestion to fix this issue?
This is the error.
Error occurred during deployment: Exception while deploying the app [pintar_detection] : org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'filter'. One of '{"http://java.sun.com/xml/ns/javaee":description, "http://java.sun.com/xml/ns/javaee":param-name}' is expected.. Please see server.log for more details.
Need to solve this ASAP.

PDE headless build issues with eclipse RCP migration from 3.7.2 to 4.3.2

We are in the process of migrating our application from 3.7.2 to 4.3.2, but facing few issues during pde-build. Though I can get the application to build and launch and work well from the Eclipse 4.3.2 IDE itself, the command line build fails with messages about many missing plugins, compile failures etc.
In the log file there are lots of missing plugin messages, but the Eclipse 4.3.2 folder I am providing for the pde build has all these missing jars in it's plugins folder. I have confirmed this by searching for the actual jar names in the Eclipse SDK directory unzipped by the build for its later consumption.
These are the messages from the log after the pde-build target is run:
[eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied.
[eclipse.generateFeature] Bundle org.eclipse.cdt.core.nl1:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.core_[5.5.0,5.6.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.core.nl2a:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.core_[5.5.0,5.6.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.core.nl2:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.core_[5.5.0,5.6.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.core.nlBidi:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.core_[5.5.0,5.6.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.debug.core.nl1:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.debug.core_[7.3.0,7.4.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.debug.core.nl2a:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.debug.core_[7.3.0,7.4.0) has not been found.
[eclipse.generateFeature] Bundle org.eclipse.cdt.debug.core.nl2:
[eclipse.generateFeature] Host plug-in org.eclipse.cdt.debug.core_[7.3.0,7.4.0) has not been found.
I also get errors related to compile failures after all those missing plugin messages:
[83 units compiled]
[javac] ----------
[javac] 1. ERROR in C:\vobs\chechand_CM_cm521\vobs\build\toolkit\plugins\com.app.ecm.configmgr.engine\src\com\app\ecm\configmgr\engine\util\XmlDoc.java (at line 0)
[javac] /* app Confidential
[javac] ^
[javac] ***The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files***
*[javac] ----------
[javac] 1 problem (1 error)
[javac] Compilation failed. Compiler errors are available in C:\vobs\chechand_CM_cm521\vobs\build\toolkit\plugins\com.app.ecm.configmgr.engine/#dot.log
BUILD FAILED
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\productBuild\productBuild.xml:43: The following error occurred while executing this line:
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\build.xml:105: The following error occurred while executing this line:
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\templates\headless-build\customTargets.xml:12: The following error occurred while executing this line:
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\productBuild\allElements.xml:20: The following error occurred while executing this line:
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\genericTargets.xml:118: The following error occurred while executing this line:
C:\Users\Administrator\chechand_Common_3PT_3\vobs\fnet_3pt\Eclipse\4.3.2\eclipse\plugins\org.eclipse.pde.build_3.8.100.v20130514-1028\scripts\genericTargets.xml:123: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\features\org.eclipse.pde.build.container.feature\build.xml:30: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\features\org.eclipse.pde.build.container.feature\build.xml:16: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\features\com.app.ecm.configmgr.ui.feature\build.xml:63: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\features\com.app.ecm.configmgr.ui.feature\build.xml:19: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\plugins\com.app.ecm.configmgr.engine\build.xml:329: The following error occurred while executing this line:
C:\vobs\chechand_CM_cm521\vobs\build\toolkit\plugins\com.app.ecm.configmgr.engine\build.xml:290: Compile failed; see the compiler error output for details.
I have searched through the forum but didn't find anything related to issues I am facing.
Edit: I have added Bundle-RequiredExecutionEnvironment= JavaSE-1.7 in my MANIFEST.MF for my product but I still face this issue.
Thank you for the help.