getting "/opt/tomcat/apache-tomcat-9.0.60/lib does not exist." error, but jar files are presented in the that directory - build

I'm building an Ant project in GitHub Actions. I have tomcat installed, ant installed on Linux runner. I'm getting /opt/tomcat/apache-tomcat-9.0.60/lib does not exist error, but the jar files are present in the path.- Set ANT_HOME, CATALINA_HOME, JAVA_HOME environment variables in runner and got full permissions to '/opt/tomcat/apache-tomcat-9.0.60/lib' path. Please help me to troubleshoot the issue.
Im expecting some inputs to troubleshoot the issue and fix it.

Related

Issue downloading dependency from Amazon S3

I am currently trying to download a dependency from an Amazon S3 bucket for a maven framework project but Intellij is unable to download when I compile. In the .m2 repository it shows the folder for the dependency, it just doesn't contain the required information. There is also a settings file in the .m2 providing a username and password to the S3. In the Intellij console all dependencies are underlined in red in the maven window but only the two dependencies relying on the S3 are not being imported. Also, when I install the locally they are found and work fine.
Some of the actions I have taken:
Deletion of the repository
Deletion of the .m2 folder
Invalidate and cache
Reloading all projects
Downloading sources and documentation
Rebuilding
Installing locally (as mentioned above)
Reinstalling Intellij
Deleting the project and re-loading from code commit
If anyone has any ideas then I would be very grateful to try them out!
You can locate the proper Maven dependencies in the POM file that is located in the AWS Example Github located here:
https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/javav2/example_code/s3
This POM file is valid within an INtelliJ project:

Trying to add CXF3.1.11 to eclipse Web Service runtime but getting "Missing CXF jar: please select the CXF Home Directory"

Trying to add CXF3.1.11 to eclipse Web Service runtime but getting
Missing CXF jar: please select the CXF Home Directory.
Tried adding extra "apache-cxf-3.1.11-src" to the path of "C:\Program Files\Apache\apache-cxf-3.1.11-src\" as suggested in one of the posts but did not work. Also notice that my bin folder is located in "C:\Program Files\Apache\apache-cxf-3.1.11-src\distribution\src\main\release" but bin does not has any jar instead lib folder has a file named WHICH_JARS
Eclipse is actually looking for a specific jar file and is unable to find it. You appear to have downloaded the CXF source code and not the binary distribution located here (well it's 2.X) but thats likely still not going to help you much as apparently Eclipse seems to be looking for a possibly old CXF 2.X version (it does show Window->Preferences->Web Services->CXF 2.x Preferences) as I added the binary version of apache-cxf-3.1.6 and it found the run time but couldnt locate the jar though they are there. I then tried the linked binary version above, again the runtime is found but I still the error "Missing CXF jar: please select the CXF Home Directory."
So in short (well long) and to answer your question though I dont believe it will help - you'd need to build the source code you downloaded. Sorry I cant be of more help. These people had a similar problem Missing cxf jar: Please select the cxf home directory and were able to solve it but it appears somethings changed in the latest versions of eclipse or possibly apache?

Deploying library to Clojars, get 405

I am trying to deploy a lein project to Clojars:
$ lein deploy clojars
Copying 32 files to /home/chris/IdeaProjects/default-db-format/lib
No namespaces to :aot compile listed in project.clj.
Created /home/chris/IdeaProjects/default-db-format/default-db-format-0.1.0.jar
Wrote pom.xml
Deploying to http://clojars.org/repo/
Uploading: default-db-format/default-db-format/0.1.0/default-db-format-0.1.0.jar to repository clojars at http://clojars.org/repo/
Transferring 13K from clojars
An error has occurred while processing the Maven artifact tasks.
Diagnosis:
Error deploying artifact 'default-db-format:default-db-format:jar': Error deploying artifact: Failed to transfer file: http://clojars.org/repo/default-db-format/default-db-format/0.1.0/default-db-format-0.1.0.jar. Return code is: 405
This seems like an error coming from Maven. I'm guessing I need to go through the steps here, but am unsure.
Can someone who's done this before guide me on what to do next? There's documentation on the Internet but I've found nothing saying 'when you hit a 405, this is what you do next...'
Perhaps the jar has been deployed to Clojars, and thus the error can be ignored??
I didn't need to specify any PGP certificates, which I expected to be asked about. Perhaps there's no need.
I was using the Linux package manager's version of lein which was very old (lein -version gave 1.7.1). I needed to uninstall it (dpkg --remove leiningen) and install it manually. The instructions at the Leiningen site worked perfectly for this. I just cut and pasted into a file called lein, chmod etc...
The error messages I now get are about PGP issues, as expected...

Sitecore TDS on deploy cannot find map.xml

I have created a Sitecore TDS project and when I try to package an update file, I get the following error:
The following exception occured opening the IconPath map: Could not
find a part of the path '{project path}\IconCache\Map.xml'
I'm not sure how I can fix this. Any ideas?
Check the following:
Does the Map.xml file exist in the target location?
Can TDS write to the target location, e.g. is the file read only or are there insufficient privileges.
If neither of these solve your problem then contact Hedgehog support.
That is a very odd error, as the icon cache shouldn't really be a part of the update package. How are you packaging the update file? Are you configuring the Update Package tab in the TDS project properties to generate packages on build for a specific build configuration?

Sitecore Package upload error

I am trying to install a Sitecore package from dev to staging environment, i have used package designer to create this package, but when i try to upload this package on the staging site it results in the following error:
The File exists.<br>
I have also tried uploading the package created using the Sitecore Rocks plugin which also results in the same error.
I am installing the package using installation wizard and uploading the package and i am not overwriting the existing files.
Kindly, help!
This error occurs if the windows temp has more than 65K files. When we cleared those files the issue got resolved.
Maybe there is package with the same name as your new package. Try to rename you package zip file and then upload.
make sure you are installing in the right environment
make sure the file doesnt not already exists (you can look it under the packages folder)
restart app pool and try again. Maybe overwrite the installation file.
there was a issue with sitecore on the staging environment(probably corrupted install). so we took a risk and installed it on live..! It works fine! Thank you all for the help. Much appreciated.