Wayan Saryada

Ranch Hand
+ Follow
since Feb 05, 2004
Wayan likes ...
Hibernate Spring Java
Bali, ID
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
6
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Wayan Saryada

The `.swp` file is created by the vim editor, one of it uses is to prevent multiple instances of vim to edit the file. So this is not the case that cause you the error.
Have you tried to use the java.awt.Font class to set the font style?
3 years ago
In your checkOut() method you can't call equals() method on an int variable. Another thing, your class main() method must have a static modifier to make it runnable.
3 years ago
The `/manager/text/` is the URL address for the text interface. In the previous version it was just `/manager`.
3 years ago
Here an example output when running the tomcat7:deploy.



One last thing, if you already have the same application deploy on the tomcat server you need to undeploy it first. If you deploy it again it can give your the connection error.
3 years ago

Mike London wrote:

Knute Snortum wrote:I don't think Tomcat 8.5 is backwards compatible with 7.0 or even 8.0.  



I thought I read that people were successfully using the XML as Wayran shows below.

In any case, it's not working for me at all with Tomcat 8.5. I guess I'll just have to manually copy  the file to Tomcat.

(Still get broken pipe errors)

Thanks for the help,

- mike



I have just tried it on my machine, and it works. Have you copied the `settings.xml` into your `.m2` folder?
3 years ago
Try to change the tomcat7-maven-plugin configuration to the following:



And make sure that the maven configuration (settings.xml) is copied into the .m2 directory in your home folder.
3 years ago
Anyway, because you are using spring boot for your project why not just use the embedded tomcat and run the project using `mvn spring-boot:run` instead?
3 years ago
When you click the Maven Project tool window on the sidebar you will see something like:

3 years ago
If you run maven from Terminal the command is:



But if you want to run from the Maven in IntelliJ IDEA, go to the Plugins section and expand the tomcat7 plugin. You will see the deploy command there (tomcat7:deploy).

The deploy that you run right now is the Deploy task of the Maven life cycle which will deploy the artifact / war file into a maven repository.
3 years ago
At what process did you get the error message? Your code looks quite good to me. The declaration and initialization of the Alfred variable is fine.
3 years ago
I am sorry, I missed read that you modified your code

You might want to do the following if you are using Java 8 Date Time API:


3 years ago
You need to use / import java.util.Date instead of java.sql.Date in your code.
3 years ago
Hi Roopesh,

The exception happened because your string date is not valid according to your SimpleDateFormat pattern.
3 years ago
What happen after you add the dom4j dependency in your pom.xml, did you still got the same error message?
6 years ago