Cannot deploy application to glassfish server - deployment

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.

Related

I am migrating Liferay 6.1 to 7.1 but while server started i am getting below error

'main' o.s.web.context.ContextLoader : Context initialization failed
java.lang.ClassNotFoundException: org.w3c.dom.DOMError cannot be found by msg-searching-portlet_1.0
could anyone suggest how to handle this error.
Thanks in Advance
while running liferay 7.1 tomcat server and after hot deploy of portlets , i am getting the error.
any way to resolve this error.

How to solve "java.lang.NoClassDefFoundError: org/json/JSONException"

I am using marionette driver for testing with selenium. when I run the code it gives me the error:
java.lang.NoClassDefFoundError: org/json/JSONException.
Also gives error :
Found argument '--webdriver-port' which wasn't expected, or isn't valid in this context
Please help for the same
I have used "java-json.jar" however now it's give the error "org.openqa.selenium.WebDriverException: java.net.ConnectException: Connection refused:" so can you suggest what issue is for the same
Try adding java-json/.jar in your classpath.
Download the jar from Jar link

Error in building Liferay 6.2 portlet in Eclipse Juno?

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.

javax.servlet.ServletException: PWC1391: Servlet.init() for servlet <project>.webservice.ApplicationConfig threw exception

What could be the cause for this error while running my Java EE 6 app from embedded container using Eclipse?
HTTP Status 500 -
type Exception report
message
description: The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1391: Servlet.init() for servlet <project>.webservice.ApplicationConfig threw exception
root cause
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.2.2 logs.
Edit: Basically since I ran it successfully, I upgraded eclipse and made some changes in project (refactor/renaming variables) and svn repository setup.
Have you tried the suggestions Google produces when you search for PWC1391? Namely resolving potential version conflicts with the Jersey library (i.e. removing it from project).
Finally figured out that there were some libraries missing...including Glassfish 3.1.2 being the major one from "Web"'s "Java Build Path > Libraries".

Glassfish module deploy fails with "In-place deployment" error message

It was my first time to use Java EE and I am having an error everytime I run my html file.
This is the error I am seeing:
In-place deployment at C:\Documents and Settings\scybermonde\My Documents\NetBeansProjects\Exercises\build\web
deploy?path=C:\Documents and Settings\scybermonde\My Documents\NetBeansProjects\Exercises\build\web&name=Exercises&force=true failed on GlassFish Server 3
C:\Documents and Settings\scybermonde\My Documents\NetBeansProjects\Exercises\nbproject\build-impl.xml:683: The module has not been deployed.
BUILD FAILED (total time: 1 second)
What was wrong if I am receiving an error like this?
I also tried to deployed it referring to what it said in the later part "The module has not been deployed" but still the same error appears...
please help... thanks in advance :)