Good morning,
I'm trying to deploy a spring application on a local tomcat, using generated jaxb classes. The classes are contained in the build directory build/jaxb/archifant/wsdl in a subproject.
When I try to run the application on server, I get the following error:
error reading file D:\eclipse_rio_workspace\rio\06_Development\archifant-communication-for-spring\build\classes\jaxb
D:\eclipse_rio_workspace\rio\06_Development\archifant-communication-for-spring\build\classes\jaxb (access denied)
I followed the getting started guide: https://spring.io/guides/gs/consuming-web-service/ and use gradle as build tool. The subproject is set up as a dependency. How do I solve this? I checked file permissions and classpath of tomcat.
To me this looks like tomcat is trying to read a directory as file?
"Solved" it by moving the generated classes into a package in the source folder.
Related
Repository - https://github.com/wso2/product-apim
Branch - 2.x-dependency-upgrade
Recently, While working with WSO2 API Manager, I found that some war files are generated and deployed.
To experiment with the war files, I deployed them on tomcat server. Deployment doesn't work and gives Error creating bean with name 'cxf' defined in class path resource META-INF/cxf/cxf.xml.
Detailed Error Log : https://gist.github.com/anonymous/4c2378967ffcc1bb7a9bb475507120e9
.war file location: \product-apim\modules\distribution\product\target\wso2am-2.2.0-SNAPSHOT\repository\deployment\server\webapps
I tried to play with dependencies but with no change in error status.
Why does these war files work well with the WSO2 standalone server, but not with the tomcat server ?
How could we resolve the dependency issue ?
First of all, don't use 2.x-dependency-upgrade branch, which is a temporary one. Use 2.x branch instead.
Those war files need dependencies coming from carbon platform. (You can see lots of NoClassDefFoundError errors in the log) So, without those, they won't be working properly.
After deploying my project in IDE, all ok. But when I make 'package' at Maven, and tried to execute 'war' archive at the console, I get this exception:
Unable to open nested entry
'WEB-INF/lib/spring-aspects-4.3.8.RELEASE.jar'. It has been compressed
and nested jar files must be stored without compression. Please check
the mechanism used to create your executable jar file
At Spring Boot 1.5.2 was all good.
Looks like spring-aspects-4.3.8.RELEASE.jar that inside WEB-INF/lib/ is not extracted after compilation and your application can't extract classes from *.jar when you executing app.
Use maven dependencies instead direct *.jar files or specified plugin that will extract classes from *.jar's and add them to your app.
If you can't find public repository that provide required dependencies then use this instruction to add your external JAR files into your local maven repository. Then just add such dependency and build app again.
I got an Ear with a war inside, deployed in Weblogic 12c.
The project is a Maven multi-module project.
I'm trying to find a very simple way to accomplish my boss's request to put an unique properties file inside the ear (let's say in src\main\application\config), and access it by any module project.
No file within domain server (so the file got to be located in the ear) and no command input lines are allowed.
I've tried to read how to weblogic handles custom global property file here:
External properties file with Weblogic
...hey what is this mess? Seriously...everything in weblogic got to be so complicated?
Maybe with a maven plugin am I able to copy during build the property file inside any "src\main\resources" folder of the other sub-modules?
Any idea is appreciated...
thanks!
I am using Stanford NLP library for an IBM Bluemix app. I have added both stanford-corenlp-3.5.1-models.jar and stanford-corenlp-3.5.1.jar to build path. And consequently, the app is running fine in the local webshpere liberty server.
When I build the WAR file through ant build of build.xml, I ensure that both the files are included. I can also see them present inside the WAR file. But when I deploy the WAR file on Bluemix, and run it, I get the following error:
ERR java.lang.NoClassDefFoundError: edu/stanford/nlp/pipeline/StanfordCoreNLP
What might be the problem?
I have ensured that the jar file is in the war file:
Please ensure that the jar files are present in the WEB-INF\lib folder in the WAR file.
I have faced the same issue and by making the jar available in WEB-INF\lib folder it was resolved.
I am trying to run a JSF application on Tomcat 6 which is only for connecting to the Sesame repository. I added all the external Jar files needed for Sesame and the the project is created as Dynamic Web Project for JSF. I also configured everything for JSF by following some tutorials. In Eclipse, I export the WAR file to deploy it on Tomcat 6 as follows:
Right-click on the project -> Export -> WAR file.
The WAR file is stored in webapps folder in Tomcat. When I insert the URL: http://localhost:8080/JSFSesame/faces/index.jsp, I get the following message:
An Error Occurred:
org/openrdf/repository/config/RepositoryConfigException
Caused by:
java.lang.ClassNotFoundException - org.openrdf.repository.config.RepositoryConfigException
I do not know what is missing at this point. It seems like I need to add JAR files that I am not aware of. Could anyone please assist me to solve this problem? Your help would be very much appreciated.
The Class RepositoryConfigException is missing.
It is e.g. part of the following JAR sesame-repository-api-2.5.0.jar.
Alternatively use Ctrl+Shift+H in eclipse and look, fro which jar it is retrieved from there - copy the jar.