facebook

Tomcat Web Applications Refuse to load javascript and css

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #501385 Reply

    ksgetting
    Participant

    I am setting up a new laptop, and am using MyEclipse 2016 for the first time (my old laptop runs 2015). My install details for MyEclipse are listed at the bottom. I am setting up a workspace from scratch. I am wondering if I set something wrong with my web project. Here is the issue:

    When I launch any web application published to my local Tomcat server, no javascript is loaded and it appears that most if not all of the css is ignored/not found.

    Looking at the published web application, I can see all of the resource files (jsp, js, css) right where I would expect them to be. Is there something I need to set in the web project that I have overlooked? Perhaps something new with the 2016 version? Other websites render just fine with any of my browsers, so I don’t think it’s any issue with my browsers.

    Here are the variations I have tried to diagnose the issue (none have solved the issue.)
    1) I have tried 2 different browsers.
    2) I have tried Tomcat 7 (builtin) and Tomcat 8.

    *** Date:
    Thursday, October 27, 2016 9:52:46 AM CDT

    *** System properties:
    OS=Windows10
    OS version=10.0.0
    OS arch=amd64
    Profile arch=x86_64
    Window system=win32
    Java version=1.8.0_66
    Workspace=file:/D:/Workspaces/workspace/
    VM Args=-Xmx1024m
    -XX:ReservedCodeCacheSize=64m
    -Dosgi.nls.warnings=ignore
    -Xverify:none
    -jar
    D:\Program Files\MyEclipse 2016\\plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

    *** Subscription information
    Product Id: E3MP (MyEclipse Professional Subscription)
    License version: 3.0
    Full Maintenance Included
    Subscription expiration date (YYYYMMDD): 20170613
    Number of users: 1

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 2016 Stable 1.0
    Build id: 14.0.0-20160624

    com.genuitec.myeclipse.database – 14.0.0.me201607130633
    com.genuitec.myeclipse.db2 – 14.0.0.me201607130633
    com.genuitec.myeclipse.desktop – 14.0.0.me201607130633
    com.genuitec.myeclipse.enterprise.workbench – 14.0.0.me201607130633
    com.genuitec.myeclipse.imageeditor – 14.0.0.me201607130633
    com.genuitec.myeclipse.jsf – 14.0.0.me201607130633
    com.genuitec.myeclipse.maven – 14.0.0.me201607130633
    com.genuitec.myeclipse.ws – 14.0.0.me201607130633
    org.eclipse.datatools.connectivity.feature – 1.12.0.me201607130633
    org.eclipse.datatools.enablement.feature – 1.12.0.me201607130633
    org.eclipse.datatools.modelbase.feature – 1.12.0.v201406061321-7707GCcNBHLDaKTEcRi
    org.eclipse.datatools.sqldevtools.feature – 1.12.0.me201607130633
    org.eclipse.emf – 2.11.1.v20150806-0404
    org.eclipse.gef – 3.10.1.201508170204
    org.eclipse.graphiti.feature – 0.12.1.v20150916-0905
    org.eclipse.jst.common.fproj.enablement.jdt – 3.6.3.me201607130633
    org.eclipse.jst.enterprise_ui.feature – 3.7.0.me201607130633
    org.eclipse.jst.server_adapters.ext.feature – 3.3.500.me201607130633
    org.eclipse.jst.server_adapters.feature – 3.2.400.me201607130633
    org.eclipse.jst.server_ui.feature – 3.4.200.me201607130633
    org.eclipse.jst.ws.axis2tools.feature – 1.1.301.me201607130633
    org.eclipse.m2e.feature – 1.6.0.me201607130633
    org.eclipse.sapphire.platform – 9.0.4.201511201829
    org.eclipse.wst.common.fproj – 3.7.0.me201607130633
    org.eclipse.wst.server_adapters.feature – 3.2.403.me201607130633
    org.eclipse.xsd – 2.11.0.v20150806-0404

    angularjs-eclipse-feature – 1.2.0.me201607130633
    angularjs-eclipse-jsp-feature – 1.2.0.me201607130633
    angularjs-eclipse-php-feature – 1.2.0.me201607130633
    com.collabnet.subversion.merge.feature – 3.0.13
    com.eclipsesource.j2v8.feature – 4.0.0.201606171358
    com.vmware.vfabric.ide.eclipse.tcserver – 3.7.1.me201607130633
    com.vmware.vfabric.ide.eclipse.tcserver.insight – 3.7.1.me201607130633
    io.emmet.eclipse – 14.0.0.me201607130633
    net.jeeeyul.eclipse.themes.feature – 2.3.0.me201607130633
    net.jeeeyul.pdetools.feature – 1.2.6.me201607130633
    net.jeeeyul.swtend.feature – 2.2.5.me201607130633
    org.chromium.debug – 0.3.9.201607122134
    org.chromium.sdk – 0.3.9.201607122134
    org.chromium.sdk.wipbackends – 0.1.11.201607122134
    org.dadacoalition.yedit.feature – 1.0.18.201607122134
    org.eclipse.cvs – 1.4.200.v20150904-0015
    org.eclipse.draw2d – 3.10.1.201508170204
    org.eclipse.e4.rcp – 1.4.0.v20150903-1804
    org.eclipse.ecf.core.feature – 1.1.0.v20150810-1719
    org.eclipse.ecf.core.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.ecf.filetransfer.feature – 3.10.1.v20150810-1719
    org.eclipse.ecf.filetransfer.httpclient4.feature – 3.10.1.v20150810-1719
    org.eclipse.ecf.filetransfer.httpclient4.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.ecf.filetransfer.ssl.feature – 1.0.0.v20150810-1719
    org.eclipse.egit – 4.1.1.201511131810-r
    org.eclipse.epp.mpc – 1.4.1.v20150916-1928
    org.eclipse.equinox.p2.core.feature – 1.3.100.v20150527-1706
    org.eclipse.equinox.p2.discovery.feature – 1.0.300.v20150430-1836
    org.eclipse.equinox.p2.extras.feature – 1.2.100.v20150601-1708
    org.eclipse.equinox.p2.rcp.feature – 1.2.101.v20150826-1318
    org.eclipse.equinox.p2.user.ui – 2.2.101.v20150826-1318
    org.eclipse.help – 2.1.1.v20150904-0015
    org.eclipse.jdt – 3.11.1.v20150904-0015
    org.eclipse.jgit – 4.1.1.201511131810-r
    org.eclipse.jsf.feature – 3.8.0.me201607130633
    org.eclipse.pde – 3.11.1.v20150904-0345
    org.eclipse.platform – 4.5.1.v20150904-0015
    org.eclipse.rcp – 4.5.1.v20150904-0015
    org.sonatype.m2e.egit.feature – 0.14.0.201509090157
    org.sonatype.m2e.mavenarchiver.feature – 0.17.0.201502101659-signed-20150525172209
    org.tigris.subversion.clientadapter.feature – 1.8.6
    org.tigris.subversion.clientadapter.javahl.feature – 1.7.10
    org.tigris.subversion.clientadapter.svnkit.feature – 1.7.9.2
    org.tigris.subversion.subclipse – 1.8.22
    org.tigris.subversion.subclipse.graph.feature – 1.1.1
    org.tigris.subversion.subclipse.mylyn – 3.0.0
    tern-feature – 1.2.0.201607122119
    tern-jsdt-feature – 1.2.0.201607122119
    tern-linters-feature – 1.2.0.201607122119
    tern-server-nodejs-feature – 1.2.0.201607122119
    tern.eclipse.ide.server.nodejs.embed – 1.2.0.201607122119

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86_64
    -showsplash
    -launcher
    D:\Program Files\MyEclipse 2016\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    D:\Program Files\MyEclipse 2016\\plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417\eclipse_1611.dll
    -startup
    D:\Program Files\MyEclipse 2016\\plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
    –launcher.overrideVmargs
    -exitdata
    684_70
    -install
    D:\Program Files\MyEclipse 2016
    -vm
    D:\Program Files\MyEclipse 2016\\binary/com.sun.java.jdk8.win32.x86_64_1.8.0.u66/bin/javaw.exe

    #501389 Reply

    ksgetting
    Participant

    It appears that none of the import statements are being processed:

    Unrecognized at-rule or error parsing at-rule ‘@import’.

    The import above is inside the main css file.

    #501439 Reply

    support-swapna
    Moderator

    ksgetting,

    Thank you for trying MyEclipse 2016.Sorry that you are seeing this issue.

    1. There ought to be nothing before an @import rule, except maybe comments,blank lines, and other @import rules.Can you please recheck the same?

    2. Does the same web application work in MyEclipse 2015? Please name the two browsers you checked with.

    3. Are you using a relative or absolute URL for referencing the css and js files?

    4. Please do a view source and check your css location. Copy it into your browser URL bar. Can you load it?

    5. Can you please inspect the browser developer tools and let us know what exact errors/messages you are seeing in the console for CSS/JS? Please share the full details with us.

    Apologies for inconvenience caused.

    –Swapna
    MyEclipse Support

    #501459 Reply

    ksgetting
    Participant

    1) There is nothing in front of the @import statement. It is on the first line of the css file:
    @import “template.css”; Also keep in mind that none of the import statements seem to be working. in terms of the css, nothing has changed for a long time.

    2) I have not installed.tried 2015. Is my new workspace created by 2016 going to be compatible? The 2 browsers are Firefox and MS Edge.

    3) Relative, and in this case the css file in the import statement is located in the same folder.

    4) Yes I can load it.

    5) Not sure what you are asking for. Is this what you mean? (See attached file)

    FYI, I tried switching to a new Tomcat server with Java 7. Same problem.

    Attachments:
    You must be logged in to view attached files.
    #501721 Reply

    support-swapna
    Moderator

    ksgetting,

    Thank you for the details and the console contents.

    If you can access the files using the URL from the browser and if the content is loading correctly, then the files are deployed correctly by MyEclipse.

    The problem might be specific to the browser while loading the files from the application. It might be due to incompatible browser version. Probably you might be using a newer version of the browser and the application code might not be supporting it, in which case you should modify your code to support the browser version.

    Please also check if the issue persists with Chrome.I suggest you also cross post to development related forums like stackoverflow.com to get better support from the developer community.

    Hope this helps. Please let us know how it works.

    –Swapna
    MyEclipse Support

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Tomcat Web Applications Refuse to load javascript and css

You must be logged in to post in the forum log in