Coldfusion 9.0.1 and Java 7 on 64 bit machine

I have found that I am unable to get Coldfusion 9.0.1 to work with Java 7 (1.7.0_x) on 64 bit windows 2008.  I tried both Java 1.7.0_0 and 1.7.0_2.  When I point Coldfusion to it and try to start the only thing that is logged is it can't load the jvm.dll.  It is pointing to the correct location with the JDK installed.  Any one have any ideas?
Thanks,
Jim

Well, getting a current version of CF to support a new major release of Java is quite a bit of work! I suspect that CF 10 will support Java 7. In any case, I don't think there's anything especially exciting about Java 7 unless you're actually doing Java programming, in which case you can put the Java 7 JDK on your machine alongside all the other Java JDKs.
Oh, and also, things are a lot better than they used to be. For many years, CF required a very old version of Java (1.4) that was no longer even really supported by Sun! CF has gotten a lot better with regard to Java version support in the last few years.
Dave Watts, CTO, Fig Leaf Software
Message was edited by: Dave Watts

Similar Messages

  • SetDiagnosticDirectory(Diagnostics.java:54) [32-bit java on 64-bit machine]

    On 64-bit LucidLynx Linux, If I run Oracle SQL Developer using 64 bit java, all is fine.
    If I use 32-bit java, it doesn't start up and I get this fatal error:
    java.lang.IllegalArgumentException: Cannot create <pwd>/?/.sqldeveloper/system1.5.5.59.69/o.ide/diagnostics
         at oracle.javatools.logging.Diagnostics.setDiagnosticDirectory(Diagnostics.java:54)
         at oracle.ide.IdeCore.startupImpl(IdeCore.java:1293)
    <pwd> represents the current directory that I am in. That question mark appears as is.
    If I run this as `sudo`, it works, cause it gets past the "permissions" problem. (but that's a red herring).
    It should be trying to create the ".sqldeveloper/..." directory under my home directory, not in the present
    working directory, and certainly not with a question mark as another directory name.
    It appears that when using the 32 bit java (on a 64 bit machine), that whatever function
    Oracle is using/spawning to determine the user and its
    home directory, is failing, and the code just says, plop the diagnostics directory right here.
    How does one debug this?
    (I tried running `jdb` but setting break points doesn't seem to have an effect)
    ( Aside: on a 32-bit LucidLynx Linux machine, using 32-bit java, SQL Developer works fine.
    I have all the necessary 32-bit libs, as we use 32-bit Java on 64 bit machines for other apps as well.)

    I'm pretty new to java and this is the first
    first time i'm making a post here. I want to know, if
    i write a java program in a 32 bit environment will
    the same code work in a 64 bit Environment too. Does
    java abstract the architecture too?Only if there's a JVM available for the target environment.
    Note for example that Sun supports 64 bit AMD processors but not Intel. But when they do your Java code will work without changes.

  • Linux and Java are 64 bit. The native library is 32 bit. Any workaround?

    Folks,
    I am trying to run some java cipher/decipher programs that rely on native code (code which connects through the network to an HSM box).
    The issue is that theboth Linux kernel and JVM are 64 bit. But the native library seems to be 32 bit. I get the following message when trying to run the sample:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: jcryptoki (/opt/Eracom/lib/libjcryptoki.so: wrong ELF class: ELFCLASS32)
    at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:981)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:950)
    at java.lang.System.loadLibrary(System.java:453)
    at jprov.cryptoki.Cryptoki.<clinit>(Cryptoki.java:38)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:194)
    at au.com.eracom.crypto.provider.ERACOMProvider.<clinit>(ERACOMProvider.java:329)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:194)
    at SHA512Generator.main(SHA512Generator.java:10)Is there any workaround or should I contact my HSM vendor and ask for a 64 bit version of this native library?

    Is there any workaround or should I contact my HSM vendor and ask for a 64 bit version of this native library?That would certainly be the best step so it should certainly be the first one.

  • Clustering Standalone Java on  AMD64 bit machine

    Folks,
    I am installing a standalone Java in an MSCS environment. Acc to the document from SAP, it specifies to use sapinst product_ha.catalog from either I386 (32 bit) or IA64 (64 bit) installation CD. It does not mention anything for an AMD64 bit machine. The file product_ha.catalog is not available in the installation CD for AMD64. The process I was going to follow was to cluster only the SCS instance and install CI as non clustered. Has anyone clustered their Java instance on an AMD64 bit machine? Please help.
    Thanks,
    Fahad

    Hi,
    I ran into same problem. No product_ha.catalog file in SAPINST\NT\AMD64 directory.
    I would be very thankful if someone found an answer to this
    Regards,
    Samuli Kaisanlahti
    [email protected]

  • Designjet 70 maintenance tool won't install and Windows 7 64 bit machine

    Downloaded maintenance software from HP and it seems to have installed.
    Sorry for the previous message. 

    Hello @RicoBall,
    Welcome to the HP Forums!
    To get your issue more exposure I would suggest posting it in the commercial forums since the HP Designjet 70 is a commercial product. You can do this at HP Enterprise Business Community.
    The support page for your product may be helpful in the meantime:
    HP Support Center.
    I hope this helps! 
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Windows 7 64 Bit machine with Instant Client and 32Bit application

    Hello everybody,
    the last days a tried to get a 32Bit application to run on a Windows 7 SP1 64 Bit machine ... unfortunately with no success. The application runs on XP Pro and Vista Pro 32 Bit machines against a 11g RDBMS for years. As a refenence we use SQLTools from sqltools.net. It has nearly the same behaviour like the application, because it is a 32 bit application too.
    First thing was to install a 64 bit environement to verify if the connection is allright.
    - Downloaded instantclient-basic-windows.x64-11.2.0.2.0.zip an instantclient-sqlplus-windows.x64-11.2.0.2.0.zip
    - Unpacked both packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Made a directory C:\oracle\tnsnames with tnsnames.ora in it, because the app uses it
    - Set the environement variables TNS_ADMIN to point to C:\oracle\tnsnames and added C:\oracle\instantclient_11_2 in front of the path variable
    - Restarted the machine
    - Opened a commnd shell and startet sqlplus user/password@sid
    Everything was allright, I was able to connect to the database as expected
    Second thing was to start SQLTools, but as I feard it quitted with an error message when trying to access oci.dll of the instant client.
    So i decided to switch to a 32 bit environement as a third thing.
    - Downloaded instantclient-basiclite-nt-11.2.0.2.0.zip and instantclient-sqlplus-nt-11.2.0.2.0.zip
    - Deleted the old C:\oracle\instantclient_11_2
    - Unpacked both 32 bit packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Didn't change anything in the environement, because nothing changed from the view of the system
    - Opened a commnd shell and startet sqlplus user/password@sid
    But now I wasn't able to connect and got the following error
    ORA-28547: connection to server failed, probable Oracle Net admin error
    SQLPlus was able to start now, but when trying to connect to the database I got the same error like when connecting with sqlplus.
    Does anybopdy have an idea how to manage to get a 32 bit application to run on a Windows 7 64 Bit machine?
    Thanks in advance
    My packages:
    Windows 7 64 bit SP1
    Oracle Instant Client basic lite 11.2.0.2.0
    SQLPlus 1.5 22D

    Have you tried WOW64 ? I have not used this emulator for sqlplus but it works for other 32 bit applications.
    http://msdn.microsoft.com/en-us/library/aa384249%28v=VS.85%29.aspx
    Thanks

  • Adobe Reader X 10.1 Install Failing on XP SP3 and Windows 7 (64 bit)

    After using the Customization Wizard 10 to create an .mst and executing the install via SCCM 2007 which I have done many times before, I am getting the following error on both the XP SP3 and Windows 7 (64 bit) machines in the Application Event Log:
    Product: Adobe Reader X (10.1.0) -- Error 2229.Database: . Could not load table 'ServiceInstall' in SQL query: SELECT `Name`,`DisplayName`,`ServiceType`,`StartType`,`ErrorControl`,`LoadOrderGroup`,`Dependenc ies`,`StartName`,`Password`,`ComponentId`,`Directory_`,`FileName`,`Arguments`,`Description ` FROM `ServiceInstall`, `Component`, `File` WHERE `ServiceInstall`.`Component_` = `Component`.`Component` AND (`Component`.`KeyPath` = `File`.`File`) AND (`Action` = 1 OR `Action` = 2).
    I used the following .msi to create the.mst:
    AdbeRdr1010_en_US.msi
    Does anyone know where to go from here?
    Thanks, Sandy

    I have found another possible bug affecting network printing with 10.1.2 in Protected Mode on XP SP3 machines that has not been previously documented:
    A number of users in one office were not able to print with 10.1.2 in Protected Mode (even with the printing hotfix/patch previously released) to their default printer; however they were able to print fine with 10.0.1 in Protected Mode OR by disabling Protected Mode in 10.1.2.  They could print to Microsoft XPS Document Writer, however.
    The cause was determined to be an issue with capitilization of the printer name in the registry!  10.1.2 in Protected Mode seems to be sensitive to this for some strange reason, though other apps don't care.
    Check the following keys and ensure the capitalization of any references to name of your printer (or UNC path of the printer share) is consistent:
    HKCU\Printers\Connections
    HKCU\Printers\Settings
    HKCU\software\microsoft\windows nt\currentversion\windows\Device
    In our case, the reference to the name of the default printer was in lowercase, while the printer path recorded under settings was in UPPERCASE.   Changing this to match immediately fixed the problem.

  • Coldfusion 11 Running on IIS Server and Java CreateObject Error

    I am getting the error below when trying to create an object in CF 11 using cfscript. In the CF Admin Java VM settings are the default setting. I have placed xmlsec-1.5.8.jar file under \cfusion\lib and cfusion\wwwroot\WEB-INF\lib I have also restarted the CF service.
    java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.signature.XMLSignature
    sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:4 3) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:142) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:1082) at java.lang.reflect.Field.getFieldAccessor(Field.java:1063) at java.lang.reflect.Field.get(Field.java:387) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at coldfusion.runtime.StructBean.invoke(StructBean.java:508) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2553) at cfdump2ecfm2106091068$funcDUMPOBJECT.runFunction(/WEB-INF/cftags/dump.cfm:1797) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:533) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2805) at cfdump2ecfm2106091068$funcRENDEROUTPUT.runFunction(/WEB-INF/cftags/dump.cfm:681) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:487) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:383) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:95) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:334) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:231) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2840) at cfdump2ecfm2106091068._factor17(/WEB-INF/cftags/dump.cfm:565) at cfdump2ecfm2106091068._factor25(/WEB-INF/cftags/dump.cfm:564) at cfdump2ecfm2106091068._factor3(/WEB-INF/cftags/dump.cfm) at cfdump2ecfm2106091068._factor54(/WEB-INF/cftags/dump.cfm:493) at cfdump2ecfm2106091068.runPage(/WEB-INF/cftags/dump.cfm:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56) at coldfusion.tagext.lang.ModuleTag.doStartTag(ModuleTag.java:332) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2986) at cfjavatest2ecfm1994854383.runPage(J:\PPNPF_WEB\SAMLTEST\javatest.cfm:8) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:736) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:572) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:45) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:487) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:142) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:199) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)

    Does the coldfusion administrator show that the jar file is loaded? If you go to the Settings Summary and look for the CF Server Java Class Path part, it will list all the loaded files.

  • Building a best practice web application using ColdFusion and Jave EE

    I've been tasked with rewriting a software using ColdFusion.  I cannot seem to find a lot of information on best practice development in ColdFusion.  I am an experience Java developer who has never used ColdFusion before.  I want to build this application using a synergy of ColdFusion and Java EE technologies.  Can someone recommend me a book that outlines how to developer in ColdFusion?  Ideally this book assumes the reader is an experienced developer with no exposure to ColdFusion.  Ideally the methods outlined in the book are still "best practice" methods.

    jaisheela wrote:
    Hello Friends,
    I am also in the same situation.
    I am a building a new web application using JSF and AJAX.
    Requirement is I need to use IBM version of DOJO and JSF but I need to develop the whole application using Eclipse 3.3,2 and Tomcat 5.5.
    With IBM version of DOJO and JSF, will Eclipse and Tomcat help to speed up the development or do you suggest me to go for Rational Application Developer and WebSphere Application Server.
    If I need to go with RAD and WAS, then I am new to RAD and WAS, is it easy to use RAD and WAS for this kind of application and implement web applicaiton fast.
    Any feedback will be great help.Those don't sound like requirements of the system to me. They sound more like someone wants to improve their CV/resume
    From what I've read recently, if it's just fast you want, look at Ruby on Rails

  • How not to use Cold Fusion and Java

    Overview
    This write up is intended to give java developers that are
    developing ColdFusion applications some beneficial information:
    things that are not documented.
    Scenario
    The company builds enterprise class web application software
    for fortune 500 companies. It had purchased a CF 7 based product,
    had and existing proprietary J2EE based product, and needed to
    integrate the two while meeting a host of new requirements. These
    requirements were based on delivering a better user experience,
    faster / cheaper integration, increased flexibility /
    configuration, useablily, decreasing maintenance costs, the ability
    to deploy in either install or ASP models. An initiative was
    started to create a new framework that integrated the best of each
    technologies. Tactically, this meant that we were to build a hybrid
    CF and java application: one that used building blocks (decoupled /
    cohesive components) that would allow applications to be rapidly
    assembled, configured and deployed. This made sense on several
    levels, the team was composed of Java and CF developers, the CF
    rapid application development was very productive, there is great
    functionality delivered in the CF platform and initial performance
    tests showed no cause for alarm
    The agreed upon design, based on requirements, and analysis
    by both the CF and Java staff has us using CF in the presentation
    layer, using a CF based MVC, use of CF based web services. The MVC
    was deployed using CFC inheritance for model objects and views made
    use of CF custom tags. The internals of the application, used a
    rules engine, some proprietary java, ORM, and other J2EE
    technology. The initial performance of the system was reasonable.
    We pushed on with product implementation.
    Then it was time to load test the application, and tune it.
    Under load the response times were orders of magnitude slower,
    sometimes the pages even timed out.
    Armed with our profiler, oracle execution plans and we
    charged ahead addressing issue after issue. Note that we took
    meticulous care in tweaking the active thread pool and ensuring
    that our CF setup was tuned for our application. None of the
    observations here are a condemnation of the language; rather they
    are aspects that, when considered together, not conducive for
    building integrated java and CF frameworks that use a structured /
    OO programming practices. Further detail can be provided on
    request.
    CFC inheritance should be avoided - resolution of variable
    scope is expensive even if properly declared.
    Since CF creates a class per method under the covers call
    stacks become very large, especially if used in a loop. This is
    nominally exacerbated by CF calls necessary to set up for the
    method call (String.toUpper()).
    Nesting of loops and if statements should be kept to a
    minimum - the conditional for each lookup of logical operator like
    LT, GT are synchronized. Under load this results in thread waits.
    Jrun has as single thread pool - both http and web service
    requests use the same pool. Under load this leads to thread
    deadlock. There are work arounds, but they are painful.
    Recursion should be avoided - we had a few recursive routines
    and these had to be rewritten.
    Custom Tags - should be used sparingly - each custom tag
    makes a synchronized call to the license server - (This may be
    fixed in CF 8)
    Summary
    In the end we got the performance to reasonable numbers, but
    we ended up moving some code to java (Custom Tags) and getting rid
    of 'good programming' practices (Inheritance, loops, etc), mandated
    proper variable scoping for those things left over. We prototyped a
    sans cold fusion implementation and had an order of magnitude
    improvement in performance and number of requests served per
    second.
    The lesson? Use Coldfusion in its sweet spot: make a query,
    iterate over the results and format for display. Extensive use of
    structure programming techniques or OO CFCs should be avoided: they
    will work but under load - but are better as a prototype. Building
    frameworks in CF? Think twice, no three times, and, if you must, be
    minimalist.
    Text

    interesting aslbert123,
    Not that I doubt you, but could you answer some questions
    about your implementation that was so slow:
    1.) Did you put your CFCs in the application or server scope?
    2.) Were you initializing your CFCs, via CreateObject or
    <cfinvoke>, on every request?
    3.) Are you sure that you were properly Var'ing every
    variable in your methods? (people typically forget about query
    names and loop iterator variables)
    4.) Could you give examples of how your inheritence was set
    up?
    5.) For CustomTags, did you call them the old <cf_tag>
    way or the newer, better-performing <cfimport> way?
    6.) How did you connect CF to Java exactly?
    Thanks,
    Aaron

  • Problem with return a ColdFusion query object from a Java class

    Hi!
    I need to return a ColdFusion query object from a Java class
    using a JDBC result set ( java.sql.ResultSet);
    I have tried to pass my JDBC result set in to the constructor
    of the coldfusion.sql.QueryTable class with this code:
    ColdFusion code
    <cfset pra = createObject("java","QueryUtil").init()>
    <cfset newQuery = CreateObject("java",
    "coldfusion.sql.QueryTable")>
    <cfset newQuery.init( pra.getColdFusionQuery () ) >
    My java class execute a query to db and return QueryTable
    Java code (QueryUtil.java)
    import coldfusion.sql.QueryTable; // (CFusion.jar for class
    QueryTable)
    import com.allaire.cfx //(cfx.jar for class Query used from
    QueryTable)
    public class QueryUtil
    public static coldfusion.sql.QueryTable
    getColdFusionQuery(java.sql.ResultSet rs)
    return new coldfusion.sql.QueryTable(rs);
    but when i run cfm page and coldfusion server tries to
    execute : "<cfset pra =
    createObject("java","QueryUtil").init()>" this error appears:
    Object Instantiation Exception.
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    If i try to execute QueryUtil.java with Eclipse all it works.
    Also I have tried to return java.sql.ResultSet directly to
    coldfusion.sql.QueryTable.init () with failure.
    Do you know some other solution?

    ok
    i print all my code
    pratica.java execute a query to db and return a querytable
    java class
    import java.util.*;
    import java.sql.*;
    import coldfusion.sql.*;
    public class Pratica {
    private HashMap my;
    private String URI,LOGIN,PWD,DRIVER;
    private Connection conn=null;
    //funzione init
    //riceve due strutture converite in hashmap
    // globals
    // dbprop
    public Pratica(HashMap globals,HashMap dbprop) {
    my = new HashMap();
    my.put("GLOBALS",globals);
    my.put("DBPROP",dbprop);
    URI = "jdbc:sqlserver://it-bra-s0016;databaseName=nmobl";
    LOGIN = "usr_dev";
    PWD = "developer";
    DRIVER = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    try{
    // Carico il driver JDBC per la connessione con il database
    MySQL
    Class.forName(DRIVER);
    /* Connessione alla base di dati */
    conn=DriverManager.getConnection(URI,LOGIN,PWD);
    if(conn!=null) System.out.println("Connection Successful!");
    } catch (ClassNotFoundException e) {
    // Could not find the database driver
    System.out.print("\ndriver non trovato "+e.getMessage());
    System.out.flush();
    catch (SQLException e) {
    // Could not connect to the database
    System.out.print("\nConnessione fallita "+e.getMessage());
    System.out.flush();
    //funzione search
    //riceve un hash map con i filtri di ricerca
    public QueryTable search(/*HashMap arg*/) {
    ResultSet rs=null;
    Statement stmt=null;
    QueryTable ret=null;
    String query="SELECT * FROM TAN100pratiche";
    try{
    stmt = conn.createStatement();// Creo lo Statement per
    l'esecuzione della query
    rs=stmt.executeQuery(query);
    // while (rs.next()) {
    // System.out.println(rs.getString("descrizione"));
    catch (Exception e) {
    e.printStackTrace();
    try {
    ret = Pratica.RsToQueryTable(rs);
    } catch (SQLException e) {
    e.printStackTrace();
    this.close();
    return(ret);
    // ret=this.RsToQuery(rs);
    // this.close(); //chiude le connessioni,recordset e
    statament
    //retstruct CF vede HashMap come struct
    //METODO DI TEST
    public HashMap retstruct(){
    return(my);
    //conversione resultset to querytable
    private static QueryTable RsToQueryTable(ResultSet rs)
    throws SQLException{
    return new QueryTable(rs);
    //chiura resultset statament e connessione
    private void close(){
    try{
    conn.close();
    conn=null;
    catch (Exception e) {
    e.printStackTrace();
    coldfusion code
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN">
    <html>
    <head>
    <title>Test JDBC CFML Using CFScript</title>
    </head>
    <body>
    <cftry>
    <cfset glb_map =
    createObject("java","java.util.HashMap")>
    <cfset dbprop_map =
    createObject("java","java.util.HashMap")>
    <cfset glb_map.init(glb)> <!---are passed from
    another page--->
    <cfset dbprop_map.init(glb["DBPROP"])>
    <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    <cfset ourQuery
    =createObject("java","coldfusion.sql.QueryTable").init(pra.search())>
    <cfcatch>
    <h2>Error - info below</h2>
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    </cftry>
    <h2>Success - statement dumped below</h2>
    <cfdump var="#ourQuery#">
    </body>
    </html>
    error at line <cfset pra =
    createObject("java","Pratica").init(glb_map,dbprop_map)>
    An exception occurred when instantiating a java object. The
    cause of this exception was that: coldfusion/sql/QueryTable.
    -----------------------------------------------------------------------

  • Coldfusion 9 doesn't see java servlets annotated by WebServlet annotation.

    Hi.
    I'm trying to run java servlet application on coldfusion 9 running on top of iis 7 server.
    Also i'm using java 1.7.
    Coldfusion seems doesn't see servlets annotated by WebServlet annotation. I get 404 server response.
    If i add servlets mapping in web.xml everything works fine, except one thing, my application uses WebSockets, which doesn't has xml configuration,
    only annotation @ServerEndpoint.
    So i can't figure out, why my annotations don't work.
    According to coldfusion 9 and java ee, annotations should work and it depends on java version which i use with coldfusion.
    Could you help me please, may be there is a some attribute which i need to set to use annotations like @WebServlet or something like this.
    Thanks.

    ColdFusion 9 "does see" Java Servlets annotated by the WebServlet annotation. A 404 response means in all likelihood that there is a path issue. Verify that your annotation's url-patterns attribute includes the path to the ColdFusion page calling the Servlet.

  • Coldfusion 11 Web Services and SSL Issue

    Our company has two web services that we host that a vendor uses to grab information from on a periodic basis. These services ran fine on a CF8 SSL site, but once we switched to 11, the services can no longer be created. However, I can create them on our unsecured test site (which also is running CF 11) and access them externally without issue. When I try to create the webservice in the url, I just get a blank page back instead of the XML I should be getting. Is there something special I am missing that has to be done to create web services in a secure environment? The raw error message I get when trying to invoke the secure web service is below:
    coldfusion.xml.rpc.XmlRpcServiceImpl$BadWsdlXMLException: Unable to parse WSDL as an XML document. at coldfusion.xml.rpc.XmlRpcServiceImpl.retrieveWSDL(XmlRpcServiceImpl.java:976) at coldfusion.xml.rpc.XmlRpcServiceImpl.access$000(XmlRpcServiceImpl.java:96) at coldfusion.xml.rpc.XmlRpcServiceImpl$1.run(XmlRpcServiceImpl.java:309) at java.security.AccessController.doPrivileged(Native Method) at coldfusion.xml.rpc.XmlRpcServiceImpl.registerWebService(XmlRpcServiceImpl.java:302) at coldfusion.xml.rpc.XmlRpcServiceImpl.getWebServiceProxy(XmlRpcServiceImpl.java:692) at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTag.java:469) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2987) at cfcallmattersearch2ecfm1244659485.runPage(D:\Web\sims\st\callmattersearch.cfm:9) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:246) at coldfusion.tagext.lang.IncludeTag.handlePageInvoke(IncludeTag.java:734) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:570) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:45) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:487) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:42) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:141) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:78) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:198) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    I've got this working on our dev and test servers.  Now I'm trying to deploy it to production.  We have an external prod server in a DMZ that calls the web service on our internal prod server.  We only have port 443 open in the firewall between these two servers (not port 80).  I am able to do a <cfhttp> call to the WSDL over 443 and get back the xml.  However, if I make the web service call using <cfinvoke> I get the following error:
    Cannot perform web service invocation getNthDayOfMonth.
    The fault returned when invoking the web service operation is:
    org.apache.axis2.AxisFault: Connection refused
            at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
            at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:197)
            at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(Common sHTTPTransportSender.java:402)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSen der.java:231)
            at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
            at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
            at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java :229)
            at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
            at standard.StandardDate_functionCfcStub.getNthDayOfMonth(StandardDate_functionCfcStub.java: 192)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorI... ''
    I am able to successfully call the same web service (on the internal prod server) using the same code from my internal dev server.  However, when I look at my httpd logs on the internal prod server, I don't see the request in the ssl logs.  It shows up in the access_log file as:
    150.231.26.130 - - [03/Feb/2015:13:48:57 -0500] "POST /standard/date_function.cfc HTTP/1.1" 200 397 "-" "Axis2"
    Any thoughts why this appears to still be coming through port 80?

  • CF10 or CF11 and Java 8??

    Hello, everyone,
    Since Java 7 EOL is fast approaching (April, as I understand it), I have been tasked with doing research to determine the viability of CF10 or CF11 and Java 1.8.
    I've been seeing a LOT of complaints about Java 8, update 31, in forums.
    Regardless of update version, has anyone experienced any issues with Java 8 as it relates to ColdFusion Server versions 10 or 11?
    We are looking at having to upgrade before April, and need to know of any pitfalls that others have experienced, or if there is anything specific that needs to be done in order to make it a smooth transition.
    All valid input greatly appreciated.
    V/r,
    ^_^

    Guys, it’s update 14 that adds support of Java 8 (aka 1.8) to CF10 (and update 3 for CF11). For details, see:
    http://blogs.coldfusion.com/post.cfm/which-jdk-is-supported-with-coldfusion-9-10-and-11
    Also, as for CF running with Java 8, besides those who may have changed the setup for CF to use it after those updates above, note that CF11 as downloaded now and the past month or so has come with Java 8 preinstalled and preconfigured. I work with many (many) people who are running CF11 in production configured that way and I’ve not run into any problems that were shown to be due to Java 8 itself.
    (That said, do beware if you may see people complaining of it, to make sure that they are running one of the supported updates of CF 10 or 11.)
    Finally, as for your saying you “cannot access Solr under our DEV CF10's if Sandbox is on”, is this different from the problem you had with Solr that we solved when the sandbox was setup correctly (https://forums.adobe.com/thread/1673581)?
    /charlie

  • Whats is difference between Java JRE  and  Java SDK

    Hi,
    what is the difference between Java JRE and Java SDK...
    i think both of them have the same set of files to be installed...
    I am not able to understand where they differ

    The JRE (Java runtime Environment) contains just the stuff necessary to run Java and the SDK (System Development Kit) contains the extra stuff necessary (and also helpful) to develop in Java.

Maybe you are looking for

  • Rman errors on restore archivelog

    Hi all, I am running scripts to back up database every day , but after while 7 days it start to give me errors like: RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =====

  • Spot color infomation not shown in Document info objects

    Hi, In the eps file, I have checked the Document info-->Objects menu in that spot color mentioned as "NONE"(refer img1.jpg). But in the same eps file Document info-->"Spot color Objects" menu its shows E(CMYK)(refer img2.jpg) that is spot color name.

  • Changed provider and now fake table no longer works

    Dear all, I have moved to a new provider and uploaded all my exsisting files. Now I see that mail() and fakeRecordset no longer works. I am thinking that this maid be php version related I run at this stage 4.4.9 kindly advice on how to resolve this

  • Two Different R/3 Source System IS AFS and IS Retail

    Hi Gurus, I am on one implementation project. System landscape is such that there are two ECC systems. One is IS AFS and other is IS Retail. BIW reporting is requried from both the business. My query is whether we should go for two different BIW inst

  • 720p Feature to DVD

    Hi Guys, As some of you may or may not know we're in the process of making a independant film. We're filming the film on an HVX200 Camera and recording in 720p24. We're then taking the feature to various locations in London and showing the film for a