Done: http://dev.vaadin.com/ticket/11552
Thomas
Done: http://dev.vaadin.com/ticket/11552
Thomas
Hi. I am also getting the same issue Failed to load the bootstrap javascript. Application was worked fine with single servlet after creating new servlet file i have got " communication problem" and after some time got " Failed to load the javascript vaadinBootstrap.js" . Could anyone please tell me the resolution.I have attached below my web.xml file.
13020.xml (2.5 KB)
I have the same error. The tomcat 6 logs read as such:
java.io.FileNotFoundException: /usr/share/tomcat6/work/Catalina/localhost/adminportal-0.0.1-SNAPSHOT/loader/VAADIN/vaadinBootstrap.js (No such file or directory)
Please help someone!
I got the same problem (…vaadinBootstrap.js not found…) deploying to LIFERAY and I resolve installing the following addon https://vaadin.com/directory#addon/liferay-control-panel-plugin-for-vaadin:vaadin and then Upgrade to vaadin 7.2.4
I am using Liferay CE 6.2 GA2
the problem is related to the vaadin jar files you have in the …WEB-INF/lib in the case of liferay the indicate addon upgrades them. you can do also by hand as says here : https://vaadin.com/book/-/page/portal.liferay.html
I know it’s an old thread, but I just wanted to chime in here …
I’ve experienced exactly the same problem today when deploying the .war. I found that the point of failure was not corrupt .war but rather some corruption in Tomcat itself, because the same error was thrown when I tried deploying the original .war for which I know it works fine.
Putting fresh Tomcat in place resovled the issue for me. I didn’t have time to dig into the root cause of the issue. But this solution worked.
UPDATE: I’ve exprienced this once again. This time around I found the root cause of the issue, which was a Tomcat port conflict (8009). Check out your catalina* log file and if you see exceptions complaining about the port conflict – this is likely your issue.
If an old Tomcat instance does not work but a new one does, try cleaning the working directories of Tomcat and the deployment directory for the WAR. On issue can be Tomcat not cleaning up old JARs so you might end up with multiple versions of the same JAR on the servlet classpath.
We had a similar issue and it was Tomcat to blame (well, we were still to blame but the probably hapenned because we were using Tomcat).
The application was running fine under embedded Jetty on local machines. It had been deployed to Tomcat on AWS and was running fine.
We built a new war and uploaded it to AWS and the application was deployed and appeared to start up correctly - there were no errors in the logs. We’d inserted a Spring DispatcherServlet in front of Vaadin to use Spring Security and the spring form was behaving correctly but when the user was redirected to the Vaadin app it would behave strangley:
The first GET to / would return the HTML page that kicks of the bootstrap javascript.
Bootrap then does a POST to / which would normally return JSON but instead was returning the same HMTL that the previous GET request returned. This was causing a javascript error when bootstrap tries to JSON.parse() the response and finds < as the first character.
We weren’t able to diagnose exactly why this was happening at the server level, but we deployed the war to a new Tomcat EC2 instance and didn’t observe this behavour - the application behaved correctly.
We then cleared the temp/ and work/ folders on the old Tomcat instance (following the advice of this thread), restarted Tomcat and hey presto: the application behaved correctly again.
So thanks all for the advice and hope this info might be of help to someone else.
I am getting a similar problem when moving to Vaadin 7.5.5 with Spring boot and spring security.
My application
styles.css
is not being loaded.
When running locally, generated HTML is:
When running on (remote)Cloud platform:
Why is this link generating a [b] relative path [/b] ? It doesn't load. All other links are absolute & they work. E.G OK href="http://my-app-tst.cfapps.io/VAADIN/widgetsets/..."This issue is masked when running Tomcat locally.
I have the same error with not being able to find the bootstrap.js file. Using Spring Boot. Not sure how to set a path with the web.xml when I don’t have a web.xml.
Hello, Yesterday my project execute and work correctly but now when I execute my app I have failed to load bootsratp.js/vaadin please help me
What did you try so far? Check your webserver logs and make sure no errors are thrown. In the past I have experienced this when one of the Tomcat ports was conflicting with another application. Remove your app directory and re-deploy.
We had similar
“Failed to load the bootstrap javascript”
problem and the solution was to add rewrite rules to our Apache HTTP Server config.
RewriteEngine on
RewriteRule ^/application$ /application/ [R]
ProxyRequests Off
ProxyPreserveHost On
AllowEncodedSlashes On
ProxyPass /application/ http://10.10.128.11:8080/application/
ProxyPassReverse /application/ http://10.10.128.11:8080/application/
Hope it helps.
I am experiencing the same problem here…
When the Vaadin version in the Ivy.xml is ‘7.4.8’ all work smoothy. However if I change the Vaadin version say to the latest ‘7.6.6’. Somehow all portlets are displaying the same annoying error message.
I also don’t have a web.xml file. I am using MAMP 4.1, Tomcat version is 7.0.4.
Any help would be appriciated…
OMG I can’t realy believe this is the issue. I am just gonna refer this here cause you might want to check this one first before deeping into tomcat/logs etc.
Although late to the party I will concur that cleaning out the tomcat work and temp directories helped with this issue. What lead me to that conclusion was the error message was indicating the previous version of Vaadin and not the current version, meaning it hadn’t been updated correctly. So look at the v=x.x.x number in the parameters to confirm it’s the correct version. If they don’t match then most likely you have a tomcat caching error.
I spoke too soon, it can also be a user browser caching issue. That being said I have no idea how to fix this other than to ask the user to refresh their browser, which is not a scalable solution…
Hi there,
I’m experiencing the same issue.
I have a spring boot application using Vaadin 8.2.1 and everything went well until I started using proxy_pass in ngInx.
For somehow my proxy_pass(reverse proxy server) configuration is responsible for this behavior.
Fortunately a found the root cause.
It was an error/typo in my reverse proxy configuration and now everything is OK.
It seems that just reading all the previous posts and sharing my idea was good enough :).
Thank you.
I have got the following error after adding this add-on to my project.
<dependency>
<groupId>org.vaadin</groupId>
<artifactId>countdownclock</artifactId>
<version>2.0.3</version>
</dependency>
import java.util.Calendar;
import java.util.Date;
import javax.servlet.annotation.WebServlet;
import org.vaadin.kim.countdownclock.CountdownClock;
import org.vaadin.kim.countdownclock.CountdownClock.EndEventListener;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.Label;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
public class DemoUI extends UI {
private static final long serialVersionUID = -2474563921376269949L;
@WebServlet(value = "demoui", asyncSupported = true)
@VaadinServletConfiguration(productionMode = false, ui = DemoUI.class)
public static class Servlet extends VaadinServlet {}
@Override
protected void init(VaadinRequest request) {
final VerticalLayout layout = new VerticalLayout();
setContent(layout);
Label label = new Label(
"Just specify the format of the count down and "
+ "the date to which to count and you're set to go! "
+ "Here is an example:");
layout.addComponent(label);
layout.addComponent(new Label("One example:"));
CountdownClock clock2 = new CountdownClock();
Calendar cal = Calendar.getInstance();
cal.add(Calendar.SECOND, 10);
cal.add(Calendar.DAY_OF_MONTH, 2);
clock2.setDate(cal.getTime());
clock2.setNeglectHigherUnits(true);
clock2.setFormat("%s");
layout.addComponent(clock2);
layout.addComponent(new Label("...or two.. :"));
CountdownClock clock1 = new CountdownClock();
Calendar c = Calendar.getInstance();
c.set(c.get(Calendar.YEAR) + 1, 0, 1, 0, 0, 0);
clock1.setDate(c.getTime());
clock1.setFormat("<span style='font: bold 13px Arial; margin: 10px'>"
+ "Time until new year: %d days, %h hours, %m minutes and %s seconds</span>");
clock1.setHeight("40px");
layout.addComponent(clock1);
final CountdownClock clock = new CountdownClock();
Button button = new Button("Don't click on me", new ClickListener() {
private static final long serialVersionUID = -3301865196296699922L;
public void buttonClick(ClickEvent event) {
event.getButton().setEnabled(false);
Calendar c = Calendar.getInstance();
c.add(Calendar.SECOND, 10);
clock.setDate(c.getTime());
clock.setFormat("<span style='font: bold 25px Arial; margin: 10px'>"
+ "This page will self-destruct in %s.%ts seconds.</span>");
clock.addEndEventListener(new EndEventListener() {
public void countDownEnded(CountdownClock clock) {
Notification
.show("Ok, implementing the page destruction was"
+ " kinda hard, so could you please just imagine"
+ " it happening?", Notification.Type.ERROR_MESSAGE);
}
});
layout.addComponent(clock);
}
});
layout.addComponent(button);
}
}
i use Vaadin 14.
Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js?v=8.9.4
ali akbar shahriari garaei:
I have got the following error after adding this add-on to my project.<dependency> <groupId>org.vaadin</groupId> <artifactId>countdownclock</artifactId> <version>2.0.3</version> </dependency>import java.util.Calendar; import java.util.Date; import javax.servlet.annotation.WebServlet; import org.vaadin.kim.countdownclock.CountdownClock; import org.vaadin.kim.countdownclock.CountdownClock.EndEventListener; import com.vaadin.annotations.VaadinServletConfiguration; import com.vaadin.server.VaadinRequest; import com.vaadin.server.VaadinServlet; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; import com.vaadin.ui.Button.ClickListener; import com.vaadin.ui.Label; import com.vaadin.ui.Notification; import com.vaadin.ui.UI; import com.vaadin.ui.VerticalLayout; public class DemoUI extends UI { private static final long serialVersionUID = -2474563921376269949L; @WebServlet(value = "demoui", asyncSupported = true) @VaadinServletConfiguration(productionMode = false, ui = DemoUI.class) public static class Servlet extends VaadinServlet {} @Override protected void init(VaadinRequest request) { final VerticalLayout layout = new VerticalLayout(); setContent(layout); Label label = new Label( "Just specify the format of the count down and " + "the date to which to count and you're set to go! " + "Here is an example:"); layout.addComponent(label); layout.addComponent(new Label("One example:")); CountdownClock clock2 = new CountdownClock(); Calendar cal = Calendar.getInstance(); cal.add(Calendar.SECOND, 10); cal.add(Calendar.DAY_OF_MONTH, 2); clock2.setDate(cal.getTime()); clock2.setNeglectHigherUnits(true); clock2.setFormat("%s"); layout.addComponent(clock2); layout.addComponent(new Label("...or two.. :")); CountdownClock clock1 = new CountdownClock(); Calendar c = Calendar.getInstance(); c.set(c.get(Calendar.YEAR) + 1, 0, 1, 0, 0, 0); clock1.setDate(c.getTime()); clock1.setFormat("<span style='font: bold 13px Arial; margin: 10px'>" + "Time until new year: %d days, %h hours, %m minutes and %s seconds</span>"); clock1.setHeight("40px"); layout.addComponent(clock1); final CountdownClock clock = new CountdownClock(); Button button = new Button("Don't click on me", new ClickListener() { private static final long serialVersionUID = -3301865196296699922L; public void buttonClick(ClickEvent event) { event.getButton().setEnabled(false); Calendar c = Calendar.getInstance(); c.add(Calendar.SECOND, 10); clock.setDate(c.getTime()); clock.setFormat("<span style='font: bold 25px Arial; margin: 10px'>" + "This page will self-destruct in %s.%ts seconds.</span>"); clock.addEndEventListener(new EndEventListener() { public void countDownEnded(CountdownClock clock) { Notification .show("Ok, implementing the page destruction was" + " kinda hard, so could you please just imagine" + " it happening?", Notification.Type.ERROR_MESSAGE); } }); layout.addComponent(clock); } }); layout.addComponent(button); } }i use Vaadin 14.
Failed to load the bootstrap javascript: ./VAADIN/vaadinBootstrap.js?v=8.9.4
If you use Vaadin 14, you can’t use the CountdownClock add-on, it’s only supported for Vaadin 8.