• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Javascript broken after deployment

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My site breaks after adding my .war file to the Deployed folder and starting JBoss EAP 6.2.  I initially changed a link tag in the portal's home jsp page.  I can deploy, but the hover menu turns to tab buttons.  So, I changed it back to it's original form, performed a mvn clean install to rebuild the .war, and redeployed.  However, this did not fix the issue.

Here's some background information to the issue.  I could not successfully build the .war using maven 3.0.1.  Then I started receiving org.apache.maven.plugins:maven-surfire-plugin-2.16 errors for the UI.  

So after some research, I changed the pom.xml file to match the org.apache.maven.plugins to the correct version, changed from 3.1 to my 3.5.2.

It looks like the com.lowagie.text caused the issue, when you built it, the maven retrieved the latest version of the package which is not compatible with
the code.

Then, I was able to get past the error in Main downloading an old version of the package, the version before 2014.

I hope someone can help me resolve this issue.  I am a Sr. .NET developer filling in for our Java developer who has left.  I am working to become the new Java guy.  

Could a JavaScript dependency be broken since the last successful deployment, as it was for the lowagi plugin?  If so, how do I resolve this?  Thanks.
 
Jermaine Major
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[EDITED QUESTION] I'm new to maven and have learned that it updates plugins during builds, as was done for the com.lowagie.text plugin. So am I far off the mark for suspecting that maven may have updated a JavaScript plugin when I built the .war? What log or file can I inspect to verify or resolve this?

The project structure follows the Apache Maven Standard Directory Structure.

In the project folder, there are:

-batch
 +src
  +main
-main
 +src
   +java
 +target
   +classes
   +generated-sources
   +maven-archiver
   +maven-status
-persist
 +src
  +main
    +java
    +resources
-ui
 +src
  +main
  +test
    +java
    +resources
    +webapp
The project does not include the src/main/filters, src/test/filters, src/it, src/assembly, and src/site folders.
 
Sheriff
Posts: 67597
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java or JavaScript? You seem to be using them interchangeably. They have nothing at all to do with each other except for unfortunate naming choices.
 
Sheriff
Posts: 22510
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java is to JavaScript what Alf is to Gandalf (source: Devoxx BE 2016 or so).
 
Jermaine Major
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, I am aware of that they are not the same.  However, I am unsure how maven treats JavaScript included in the package during builds.  Is JavaScript referenced in a POM file and updated via an external reference, as is done in the HTML world.  If not, what could be some "Java" related reasons why the hover menu's are reverting to buttons?  Keep in mind, that I did not change any code and only rebuilt the site from files kept in our GIT server repository.
 
Jermaine Major
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any ideas anyone?  The JavaScript is not an issue, since I reverted back to the original .war.  I'm starting from scratch.  What I need to know if JavaScript dependencies can be defined in the pom.  Thanks.
 
Rob Spoor
Sheriff
Posts: 22510
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JavaScript files for web applications should go in src/main/webapp (or a sub folder that's not WEB-INF). Anywhere else and it will not be directly accessible by browsers.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic