1. #1
    Sencha User prabhat2486's Avatar
    Join Date
    Apr 2010
    Location
    Sydney, Australia
    Posts
    39
    Vote Rating
    0
    prabhat2486 is on a distinguished road

      0  

    Default JSBuilder: Working on Tomcat but not on WEBSphere

    JSBuilder: Working on Tomcat but not on WEBSphere


    Dear All,

    I am just facing a weird issue. I build java script files on development system where tomcat is deployed, it worked fine while compressing. But when i deployed my application on WebSphere server, it is giving me 165 errors while compressing the file. Actually, i am building java script file from a servlet which gets invoked on server start up. -debug file gets generated well of same size i.e. on development and live, but while compressing, it leads to error. Both system i.e. development and live has same version of java.

    Thanks,
    Prabhat Kumar.

    Few error line:



    [ERROR] 4925:21yntax error
    [12/03/12 17:24:25:100 EST] 0000000a SystemErr R
    [ERROR] 4926:21yntax error
    [12/03/12 17:24:25:100 EST] 0000000a SystemErr R
    [ERROR] 4928:16:invalid property id
    [12/03/12 17:24:25:100 EST] 0000000a SystemErr R
    [ERROR] 4929:9yntax error
    [12/03/12 17:24:25:100 EST] 0000000a SystemErr R
    [ERROR] 4931:15:invalid return
    [12/03/12 17:24:25:100 EST] 0000000a SystemErr R
    [ERROR] 4932:5yntax error
    [12/03/12 17:24:25:163 EST] 0000000a SystemErr R
    [ERROR] 8560:29yntax error
    [12/03/12 17:24:25:163 EST] 0000000a SystemErr R
    [ERROR] 8564:25:invalid property id

    org.mozilla.javascript.EvaluatorException: Compilation produced 165 syntax errors.
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at com.extjs.JSBuilder2$2.runtimeError(JSBuilder2.java:325)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at org.mozilla.javascript.Parser.parse(Parser.java:415)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at org.mozilla.javascript.Parser.parse(Parser.java:359)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:312)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at com.extjs.JSBuilder2.compressOutputFiles(JSBuilder2.java:302)
    [12/03/12 17:24:27:054 EST] 0000000a SystemErr R at com.extjs.JSBuilder2.main(JSBuilder2.java:45)
    Prabhat Kumar

  2. #2
    Sencha User prabhat2486's Avatar
    Join Date
    Apr 2010
    Location
    Sydney, Australia
    Posts
    39
    Vote Rating
    0
    prabhat2486 is on a distinguished road

      0  

    Default


    Is this possible on character encoding or locale issue? I saw few article something about utf-8 and ANSI
    Prabhat Kumar

  3. #3
    Sencha User prabhat2486's Avatar
    Join Date
    Apr 2010
    Location
    Sydney, Australia
    Posts
    39
    Vote Rating
    0
    prabhat2486 is on a distinguished road

      0  

    Default


    I explored more about that. It works with command prompt using same java.exe but not from inside websphere server.
    Prabhat Kumar