• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Sql server en Coldfusion 2021

New Here ,
May 03, 2022 May 03, 2022

Copy link to clipboard

Copied

Tengo un problema con la configuración de Coldfusion 2021, ya configuré mis datasource de Microsoft Sql Server y la verificación de los mismos es EXITOSA, el problema viene cuando hago la modificación del "virtual directory", dentro del archivo server.xml ubicado en: C:\ColdFusion2021\Mi_Instancia\runtime\conf, mi Context queda de la siguiente manera: 

<Context path="/app" docBase="C:\ColdFusion2021\Mi_Instancia\wwwroot" WorkDir="C:\ColdFusion2021\Mi_Instancia\runtime\conf\Catalina\localhost\tmp"></Context>

Cabe señalar que esto me ha funcionado desde Coldfusion 2011 y Coldfusion 2018.

Cuando hago la modificación del Contexto de mi aplicación e intento ingresar me devuelve un error diciendome que no tengo instalado el paquete de Sql server.

Error:

miguelitoenamorado_0-1651602551788.png

El paquete de Sql Server si lo tengo instalado:

miguelitoenamorado_1-1651602628627.png

 

El error surge solamente después de hacer la modificación del Context en mi server.xml.

 

Espero alguien me pueda apoyar a encontrar una solución a esto.

 

Gracias.

Views

155

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 04, 2022 May 04, 2022

While I can't explain how the problem leads to the error about the module, I can say that there's a different way to create a virtual directory in tomcat (in that server.xml file). Instead of defining /app in the context element like you do, define it in a preresources element (within a differently defined context element). See a discussion and examples here:

 

https://www.petefreitag.com/item/867.cfm

 

As he notes, this is the way to do it in tomcat 8.5 and above, which cf 2021 and 2018 use or

...

Votes

Translate

Translate
Community Expert ,
May 04, 2022 May 04, 2022

Copy link to clipboard

Copied

While I can't explain how the problem leads to the error about the module, I can say that there's a different way to create a virtual directory in tomcat (in that server.xml file). Instead of defining /app in the context element like you do, define it in a preresources element (within a differently defined context element). See a discussion and examples here:

 

https://www.petefreitag.com/item/867.cfm

 

As he notes, this is the way to do it in tomcat 8.5 and above, which cf 2021 and 2018 use or exceed. I know you say the old way worked for you in 2018. Maybe you really meant cf2016 (and FWIW, the Tomcat version cf uses has changed WITHIN cf versions when Adobe has offered "refreshed" installers). But let's not quibble over that, if this gets you going.

 

Please do let us know if this works for you. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 04, 2022 May 04, 2022

Copy link to clipboard

Copied

LATEST

Muchas gracias Charlie,

En efecto la solución fue poner mi alias en un PreResources, te comparto como quedó mi context:

miguelglezmx_0-1651674192401.png

Te agradezco mucho tu ayuda.

Saludos

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation