@BKBK
I have attached the full log of what i see since i applied the update. but closest error i see to felix is below:
Error [main] - Unable to install felixclassloader package: org.apache.http.client.ClientProtocolException: URI does not specify a valid host name: file:///D:/coldFusion2021/bundles/felixclassloader-2021.0.02.328618.jar
In my bundles folder i only see felixclassloader-2021.0.0.323925.jar which i got from the latest files on the Adobe updates page.
I also checked my Java version which is 11.0.11+9-LTS-194. Should this be updated? we are using the one that ships with CF by default.
@harshp_0559 ,
Are you looking for a possible solution to the problem of packages not being installed on ColdFusion 2021? Then read on.
It would be handy to update Java to the most recent version, namely, Java SE 11.0.22 (LTS). But I think that this can wait till later. I say this because I think the Java version is not the cause of the current problems.
I think @Dave Watts puts his finger on the root cause. Namely, your ColdFusion 2021 installation does not have access to the current packages, such as felixclassloader-2021.0.02.328618.jar.
There is a possible source of confusion, which can cause such issues: the URL https://www.adobe.com/go/coldfusion-updates. ColdFusion 2021 uses this URL in neo_updates.xml and in other settings. The trouble is, ColdFusion has since been upgraded to ColdFusion 2023, and ColdFusion 2023 uses the same URL Hence using the URL on ColdFusion 2021 will cause a mix-up.
In any case, there is one way to correct the packages issue. It consists of downloading all the current ColdFusion 2021 packages yourself. To do so, proceed as follows:
- Stop ColdFusion.
- Delete the Felix cache using either of the two ways previously described in this thread.
- Check to make sure the directory D:/ColdFusion2021/bundles/ exists. If it does, then back it up by moving it, with all its contents intact, to a location outside ColdFusion. Then ensure that D:/ColdFusion2021/bundles/ is empty.
If the directory doesn't exist to start with, then that is already an issue. In that case, create the directory.
- Check the firewall rules and ensure that ColdFusion has full access to D:/ColdFusion2021/bundles/.
- Open the Command Prompt (cmd) as Administrator;
- Use the DOS cd command to navigate to {CF2021_HOME_DIR}/cfusion/bin;
- Type cfpm and press ENTER. You should get ColdFusion's package manager prompt cfpm;
- Now use the downloadrepo command to download the packages repository. To do so, type downloadrepo D:\ColdFusion2021\bundles and press ENTER. It may take up to half an hour for the download to complete. So be patient. The cfpm cursor will reappear when the download is complete.
- Verify that the directory D:/ColdFusion2021/bundles indeed contains the downloaded packages.
- Edit /lib/neo-updates.xml and make sure it contains the following:
<packagesurl>file:///D:/ColdFusion2021/bundles/bundlesdependency.json</packagesurl>
<defaultpackagesurl>file:///D:/ColdFusion2021/bundles/bundlesdependency.json</defaultpackagesurl>
11. Restart ColdFusion 2021.
12. Check whether ColdFusion 2021 now works as expected.