Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located - eclipse

I am trying to generate webservice client using axix2 on Eclipse
so I followed the tutorial here.
but at the last step when clicking finish, I am getting the error:
Exception occurred during code generation for WSDL : javax.xml.stream.FactoryConfigurationError: Requested factory com.ctc.wstx.stax.WstxOutputFactory cannot be located. Classloader =org.eclipse.osgi.internal.framework.ContextFinder#2de030
So I downloaded wstx-asl-4.0.0.jar and added it to the build path of the project, but still keep getting same error.
How can I fix this issue?

I ve got the same issue but:
I place the jar in WEB-INF/lib , check that it is also in build path
and restart eclipse
Without restarting eclipse I was stucked like you.
Hope that help

Related

Gatling Build from Frontline Exception

Gatling Build is failing with exception:
[ERROR] Failed to execute goal
io.gatling.frontline:frontline-maven-plugin:1.0.3:package (default) on
project msg-service-prf: Execution default of goal
io.gatling.frontline:frontline-maven-plugin:1.0.3:package failed:
java.util.zip.ZipException: error in opening zip file -> [Help 1].
Same thing is working fine from local laptop.
Gatling version using: 3.3.1.
More details on what I did:
Since, the existing Gatling support is not able providing support for multiple connections, we tried to extend it from Gatling code. As part of that, one scala Gatling source file is modified and tried testing it.
It worked fine in local laptop. But, I configured the TC in Frontline and started test, it went to Broken state. logs showing the above error.
What I did to resolve this:
1) excluded the Gatling jms jar in pom.xml. because, "gatling jms" source project is available for the targeted project as source. locally, it's not giving any issue.
If anyone of you come across such issue, please let me know how did you solve the issue.
It looks like maven didn't properly download the frontline-maven-plugin jar and it ended up corrupted in the maven local cache on your FrontLine machine.
Please remove ~/.m2/repository/io/gatling/frontline/frontline-maven-plugin directory and try again.

i got a eclipse neon EE ver. and made a spring project, but it's o stuck like those, 2 errors

2 errors : like this (follow the pict)
enter image description here
in a detail.. it's said
1.
Description Resource Path Location Type
Archive for required library: 'C:/Users/Administrator/.m2/repository/org/hibernate/hibernate-core/4.2.1.Final/hibernate-core-4.2.1.Final.jar' in project 'spring' cannot be read or is not a valid ZIP file spring Build path Build Path Problem
2.
Description Resource Path Location Type
The project cannot be built until build path errors are resolved spring Unknown Java Problem
i think it's cuz of a wrong path or no jar file
yeah but so what?
could you advice me some steps to solve it? plz...
Check the jar file written in the error message:
C:/Users/Administrator/.m2/repository/org/hibernate/hibernate-core/4.2.1.Final/hibernate-core-4.2.1.Final.jar
Is it there? Can you open it manually as a zip?
Occasionally it happens that the jar file is not correctly downloaded from the artifactory (when it happens it usually has 0kb size).
Delete the jar file, and let Maven redownload it again, it usually does the trick.
If it does not solve it, there may be a permission problem (does Eclipse has right to write under that path?), or an artifactory problem (are you using the central repository?) or even antivirus could block the download.

Eclipse hadoop mapreduce plugin is not working?

I just have copied hadoop-eclipse-plugin-1.0.3.jar to the eclipse/plugins directory in order to get things going. But unfortunately it did not work for me. When I tried to connect eclipse to my Hadoop Version 1.1.1 cluster it threw this error :
An internal error occurred during: "Map/Reduce location status updater".
org/codehaus/jackson/map/JsonMappingException
you get this error because there are some jars missing from the plugin which comes along with the hadoop distribution. you need to add these required jars and re-jar the plugin in order to make it work. you might find this link helpful, wherein i have tried to show the entire procedure.

Nutch Exception: ''..cannot be resolved to a type"

I followed the steps using this site : http://wiki.apache.org/nutch/RunNutchInEclipse
I encountered a problem while running which that says
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
String cannot be resolved to a type
Exception cannot be resolved to a type
System cannot be resolved
at org.apache.nutch.crawl.Crawl.main(Crawl.java:53)
The build was successful.
I am using nutch 1.4.
Moreover, I would like to tell that i didnt understood the point 3 of section "Establish the Eclipse environment for Nutch" and skipped it. I guess the problem lies there only.
Can you please help me as the more I try to resolve it, the more i get frustrated.Trying it from past 2 days.
It's a humble request please help.
Do you want it to run from eclipse? AFAIK only if you want to modify Nutch code it makes sense to run from eclipse and do all set up. In case if you want to run from eclipse for some reason, 3rd point means: You need to add those path. i.e within plugin folder there are many other folder. You need to manually expand each folder and add src/test and src/java. Ex: there is folder called creative commons. In that there src and within that there is java and test folder. You need to select both. Similarly do for all directories within plugin folder.

Spring STS can't find META-INF/spring.schemas

Trying to set up a new project, and running into a weird issue. I made a new app context file named backend-context.xml, I've added spring-context as a dependency, and am trying to add namespaces through the bean config file, but it's showing as 1 error, with no explaination.
If I browse into problem explorer, it states the following error:
'Unable to load schema mappings from location [META-INF/spring.schemas]'
If I browse through the Maven Dependencies I can see this file located under the spring-beans jar.
If anyone has ideas on how to fix this, that'd be awesome!
Thanks!
Ended up being caused by a local maven jar being corrupt. Found this out by uploading the code to github and trying on a different computer which worked like a charm. So, cleaned out my local repository from all spring jars and redownloaded.