http://coldfusion.com logo
Join Slack
Powered by
# box-products
  • r

    ryan

    03/28/2022, 1:37 PM
    Good morning, all! The past couple of
    box
    startups have been showing the following. Is this of any concern?
    Copy code
    Ryan@Ryan-Y70 MINGW64 ~
    $ box
    The module (commandbox-cfformat) cannot be loaded as it does not have a ModuleConfig.cfc in its root. Path Checked: F:\code\.CommandBox\cfml\modules/commandbox-cfformat
    I have checked the directory and confirmed that the ModuleConfig.cfc file is missing. Do I need to somehow pull this again in some way? This is the latest version.
    b
    • 2
    • 74
  • m

    mithlond

    03/28/2022, 4:41 PM
    recommended way to go about using web sockets w/ ColdBox? I saw the REST-over-STOMP, but wasn't sure if that's The Way or if I should just use the raw CF capabilities, documented-ish here: https://helpx.adobe.com/coldfusion/developing-applications/coldfusion-and-html-5/using-coldfusion-websocket.html
    b
    • 2
    • 5
  • r

    romanstr

    03/29/2022, 11:36 AM
    Hi. Is it possible to setup Commandbox with embedded server and IIS on same server/port80 to use with external web-sites? I want to use Coldbox API Rest, but it doesn't work by IIS AJP Connector (rewrites don't override)
    b
    p
    • 3
    • 4
  • b

    bockensm

    03/29/2022, 8:23 PM
    First - I'm extending
    logbox.system.logging.appenders.FileAppender
    and wish to have non-alphanumeric characters in the file name. However,
    FileAppender
    strips these out as part of its init method. Can a new function be added to that component to do the sanitization so that my extending component can override the default behavior? Alternately, allowing characters like ".", "-", and "_" feel like a good idea to me.
    b
    • 2
    • 2
  • b

    bockensm

    03/29/2022, 8:24 PM
    Second - and again in
    FileAppender
    - the
    initLogLocation
    method writes a default first line that's hardcoded but doesn't allow me to have a different first line depending on the layout object I pass. Is there a good way to specify which headings (or none) I want to use?
    b
    • 2
    • 15
  • r

    ryan

    03/29/2022, 8:51 PM
    Is there a way to upgrade a package to a major version within the cbox CLI? I even attempted to uninstall and install, but I cannot get the package to uninstall with the use of a
    --system
    flag. Not implying the
    --system
    flag is the culprit.. just explaining what I have attempted, thus far. Particularly, I am viewing that system module cfmigrations is at v2.0.10 and upgradeable to 3.0.6.
    b
    • 2
    • 12
  • d

    Dean

    03/29/2022, 10:05 PM
    cfconfig
    doesn't seem to export the Lucee REST mappings...am I missing something or is this just not available?
    b
    t
    • 3
    • 10
  • k

    Kannan

    03/30/2022, 3:51 PM
    Hi Dev's we have done the content box site by using commandbox in local and staging server. Here whenever the request submitted the URL redirect to 127.0.0.1 : 12345 ( is my port ) instead of mydomain.com . Do you have any suggestion on this issue ? What else I have to correct while set up environments on staging ?
    b
    l
    • 3
    • 12
  • r

    ryan

    03/30/2022, 6:21 PM
    I'm learning cbsecurity and keep coming across the following error.
    Copy code
    invalid component definition, can't find component [cbsecurity.interceptors.Security]
    
    F:\code\web\sites\api\coldbox\system\core\util\Util.cfc: line 413
    411: arguments.md = (
    412: isObject( arguments.component ) ? getMetadata( arguments.component ) : getComponentMetadata(
    413: arguments.component
    414: )
    415: );
    
    called from F:\code\web\sites\api\coldbox\system\ioc\config\Mapping.cfc: line 521
    I have fwreinited coldbox multiple times. I verified that the cbsecurity.interceptors.Security.cfc exists in the cbsecurity module. Is there something I might be missing somewhere?
    w
    p
    • 3
    • 25
  • d

    dick

    03/31/2022, 3:38 PM
    When did Quick drop
    pluck()
    and what can I replace it with?
    s
    e
    • 3
    • 7
  • p

    Peter Amiri

    03/31/2022, 4:37 PM
    @bdw429s I'm trying to distribute a sample app that relies on the H2 driver extension for Lucee to be installed. I have the process all automated and working on a Mac but it is failing on Windows. The process relies on the use of commandbox-env and commandbox-cfconfig. Basically I distribute a .env file with the project that sets an environment variable for the admin password for Lucee and another environment variable to tell Lucee to install the H2 extension on startup. Then the cfconfig module injects that password into the Lucee server at startup. So like I said, the process works find on a Mac. But it fails to inject the password or extension on startup in my Windows box. What I have discovered, however, is that if I launch box.exe by right clicking on it and selecting Run as administrator the whole process works fine and the password gets injected into the Lucee server and the extension gets installed. So my question to you is, have you seen this issue before and what do you think is causing this?
    b
    • 2
    • 13
  • r

    ryan

    03/31/2022, 6:08 PM
    in cmdbox, I added the following to include a .htacces file. I read that it can be included, but not having much success after restarting the server, but does not mean it is a problem with commandbox, tuckey, etc. as it may be code related possibly, too. This is a fresh pull of a website and trying to get it running for the first time. During the restart, cmdbox was able to verify that the .htaccess file exists. Since the broad problem is that the website just does not work with or without .htaccess, is there a way to test that these rewrite rules are working?
    server set web.rewrites.config=htdocs/.htaccess
    b
    • 2
    • 244
  • d

    dick

    04/01/2022, 12:52 PM
    I don't really know what I'm talking about here but can I use
    cbsecurity
    to authenticate against an OAuth service like Microsoft Azure Active Directory?
    b
    • 2
    • 2
  • e

    elpete

    04/01/2022, 5:04 PM
    Also, Quick has a new beta out - v5.0.0-beta.1! There aren’t any shiny new features, but it does have massive performance improvements. Please drop this in your app, follow the upgrade guide, and let me know how it goes. https://quick.ortusbooks.com/v/5.0.0-1/upgrade-guide
    πŸ‘ 1
    πŸ‘πŸ» 1
    πŸ‘πŸΌ 1
    πŸ‘ 1
    j
    • 2
    • 1
  • j

    Jim Priest

    04/04/2022, 2:29 PM
    Anyone know how to get JDBC drivers working with CommandBox "Light" ? The docs mention 'extensions'... but I'm not clear on what that is referring to?
    Copy code
    Task Runners or CLI automations in CommandBox light will also not be able to use things like JDBC drivers unless you install the extensions. 
    Extensions can be installed by placing them in the CLI's server context deploy folder and waiting a minute.
    b
    b
    • 3
    • 14
  • d

    David Rogers

    04/04/2022, 3:57 PM
    heyo I've got a quick relationship like
    Copy code
    function relation(required guid key) {
       return hasMany(...).whereSomeKey(key);
    }
    i'm trying to eager load it, but wondering if I can pass the key argument? like
    Copy code
    instance.with("relation") // can't pass key here
    instance.with({relation: (q) => q.whereSomeKeyAlreadyRanHere_Ithink()}) // ?
    🧐 1
    s
    • 2
    • 1
  • m

    Mark S.

    04/04/2022, 6:52 PM
    What is a good training video course to learn ColdBox?
    d
    j
    l
    • 4
    • 4
  • e

    elpete

    04/05/2022, 5:00 PM
    🚨 Starting now! 🚨 Join @elpete and @bdw429s for the CFML News Podcast. Live with chat on YouTube:

    https://youtu.be/obJEJPSwpWgβ–Ύ

    πŸ‘πŸΌ 1
    r
    • 2
    • 4
  • s

    Slackbot

    04/06/2022, 1:48 PM
    This message was deleted.
    p
    • 2
    • 1
  • m

    Mark S.

    04/06/2022, 2:05 PM
    can I put <cfquery> in view files or query only exist in handler?
    p
    a
    • 3
    • 2
  • r

    ryan

    04/06/2022, 2:15 PM
    Good morning, all! (Depending where you are in our world!) I am receiving the following when spinning up a commandbox Lucee server and attempting to access
    /lucee/admin/server.cfm
    I see the instructions, but it was so nice just typing in the commandbox password. My feeling is that something went awry. To add, I ran a
    box server forget
    on this server to start it from scratch because I noticed there were two instances of the same server with the same server name. I suspect this may have happened after changing the web root directory possibly in the server.json, but not 100% on that. Therefore, I removed both of the servers by having to run
    box server forget
    twice. When running
    box start
    , everything installed, but now I am noticing this password issue.
    Copy code
    No Password set yet!
    For security reasons it is no longer possible to set the inital password here directly.
    You will need to configure a password before you can access the Server Administrator.
    create a file with name password.txt containing your new password under the root Lucee server directory ( /lucee-server/context/password.txt ).
    click "import file", Lucee will then read and configure your new password, afterwards Lucee will automatically delete that file
    t
    b
    • 3
    • 23
  • r

    ryan

    04/06/2022, 4:17 PM
    I have probably maximized my inquries today LOL. HOWEVER! I have yet another question regarding custom jars, I am not a java person, so I apologize. I was reading this: https://commandbox.ortusbooks.com/release-history/5.x-versions/whats-new-in-5.3.1#recursive-jar-scanning-libdirs The reason I pondered on this is after using
    server forget
    to delete some servers, I forgot that there were jars that I needed to put back after creating the new server. Then I thought how it would be nice to be able to delete a server and spin up a new server at whim without having to manually add jar files back into the lib folder within Lucee. I read this and used
    server set app.libDirs=lib
    I verified it is within the server.json. Also, I confirmed the jars are in the new custom lib folder. I restarted the server, but the website errors because it cannot find the jar file. I moved the lib folder around to see what, if any, different errors may occur and it does throw an error in commandbox when it cannot find the lib folder, so I am pretty sure that the lib folder is getting recognized during the spin up. The following is the line that errors:
    <cfset flyway = createObject("java", "org.flywaydb.core.Flyway").init()>
    Maybe I cannot do this or this is not pointed in the cfset correctly now that the flyway jar is in a custom lib?
    t
    b
    • 3
    • 79
  • d

    david.kreimer

    04/06/2022, 5:47 PM
    I'm running into a null pointer exception when trying to start coldbox as a REST API using a lucee instance created by commandbox. The error doesn't offer many clues. I'm using coldbox 6.6.1 and Lucee 5.3.8.206. This startup failure does not occur on our shared dev, stage, qa, or production environments, only locally. I've set up my local development server as closely to our shared dev server as I can, however, the following explicit differences are present: β€’ I'm using windows and shared dev is on linux β€’ I'm using EHCache vs Redis There is one post on stackoverflow with the same issue but no answer. I'm out of ideas.
    b
    • 2
    • 21
  • j

    JTDavis

    04/06/2022, 6:50 PM
    Is there a "magic" name for a recipe that will cause it to be executed when commandbox starts? I want a specific server to be fired up on box startup, and some stats output.
    b
    s
    • 3
    • 12
  • l

    lmajano

    04/07/2022, 4:57 PM
    @Marco Liverani this depends on many many factors
    m
    l
    • 3
    • 3
  • k

    Kevin D. Wright

    04/11/2022, 9:29 PM
    Good afternoon all, I have a basic experience with ColdBox, but I am now setting up my first ContentBox site and wondering if there is any available blog and shop/storefront modules for ContentBox? @bdw429s suggested cbCommerce, but I cannot find a download or any reference to an install command in contentboxCLI. I need to setup a ContentBox site with a blog and shopping storefront in 6 weeks. Any advice/help would greatly be appreciated !! πŸ™‚ Thanks,
    b
    l
    +2
    • 5
    • 10
  • m

    Mark S.

    04/12/2022, 6:10 PM
    where can I get detail API for aws-cfml?https://www.forgebox.io/view/aws-cfml
    d
    • 2
    • 4
  • m

    Mark S.

    04/12/2022, 9:31 PM
    Do you have a contentBox demo site online so people can get idea how it works? Thanks
    b
    l
    • 3
    • 3
  • d

    dick

    04/13/2022, 2:33 PM
    With the
    qb
    schema builder can I capture and dump the
    SQL
    produced by a
    schema.alter()
    so I can replay it on my prod db?
    e
    • 2
    • 4
  • t

    Tyler Clendenin

    04/13/2022, 5:42 PM
    i am upgrading my commandbox docker image and after the update i am getting "access is protected" errors. I can access the server admin but not the web, the only place I am setting a password for the admin is in the cfconfig.json file wiht an
    adminPassword
    key. is there another setting I need to set? (lucee engine btw)
    b
    • 2
    • 89
12345...30Latest