Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Reference topic link
Hi @alfonso_c ,
I have similar issue, I don't find the cb main library to this location /tomcat/webapps/cb/WEB-INF/lib/cb-<version>.jar.
I mention that first of all under /tomcat/webapps/ the cb folder doesn't exist.
Actually I have a task to make a java codebeamer extension.
This extension should be able to communicate with cloud, to send a message there.
I don’t know exactly how to approach this in codebeamer context but ideally i need to have a REST API most probably a new spring rest controller which can send that message. I mention that I tried to implement a REST api under package
com.intland.codebeamer.controller.rest.v2
but codebeamer doesn't look like find my API. I mention that I created by myself the cb folder and tried to add a jar which contains the new API under /tomcat/webapps/cb/WEB-INF/lib/ and under /tomcat/webapps/cb/WEB-INF/classes my-applicationContext.xml file . After codebeamer restart the new api is not found. Any guidance may help. Thanks!
Solved! Go to Solution.
Hello,
in docker you can find that folder in this path:
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib
Dear @CM_10827504 ,
thank you for your question.
Please reinstall the application and make sure that you have the "cb" folder under /tomcat/webapps. The installer will create the folder, please do not create it manually. If this folder is missing, it can cause additional issues later.
Thank you.
I mention that i use Kubernetes and docker on a linux environment, so i use the image codebeamer:22.10-SP11 , in this context since I don't use the installer is the same, i should be able to find the cb folder there which means I have some wrong configuration?
Hello,
in docker you can find that folder in this path:
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib
Hi,
Thanks for your answer, so i should be able to add there my custom plugins jar and after restart should work right?
Are the custom jars taken into consideration also if they are under such a path?
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib/myCustomLib
Hello,
due to docker container nature, if you put a custom file into that folder, it will be there only for that time, while the container is running.
If you want permanent solution, you have to define a volume for it.
You can read about docker volumes here: https://docs.docker.com/engine/storage/volumes/
Hi,
I agree that I need a volume in order to keep my custom jar there but the question was if the sub folders of
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib/
are also scanned when cb container starts otherwise I need to make the volume exactly here
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib/
and to copy my custom jars into lib folder before container is initialized and important without overrating the existing libs correct?
Hello,
if you login to the running container with this command:
docker exec -it CONTAINER_ID /bin/bash
you can see that there is no subfolder within this folder:
/home/appuser/codebeamer/tomcat/webapps/ROOT/WEB-INF/lib/
only jar files.
So I think it is enough if you create the volume for this path (above).