This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/tomcat7/bin/catalina.sh run | |
[Opened /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.Object from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.io.Serializable from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.Comparable from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.CharSequence from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.String from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.reflect.GenericDeclaration from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] | |
[Loaded java.lang.reflect.Type from /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre/lib/rt.jar] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fruit<T extends Fruit.Contents> { | |
@Setter @Getter | |
protected int id; | |
@Setter @Getter | |
protected Map<String, T> contents; | |
@Setter @Getter | |
protected String defaultKey; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd"> | |
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> | |
<property name="templateLoaderPath" value="classpath:templates"/> | |
<property name="freemarkerSettings"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="freemarkerConfig" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> | |
<property name="templateLoaderPath" value="classpath:templates"/> | |
<property name="freemarkerSettings"> | |
<props> | |
<prop key="localized_lookup">false</prop> | |
<prop key="datetime_format">MM/dd/yyyy</prop> | |
<prop key="number_format">#</prop> | |
<prop key="whitespace_stripping">true</prop> | |
<prop key="template_update_delay">0</prop> | |
<prop key="output_encoding">UTF-8</prop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document | |
.getElementById("dropzone") | |
.addEventListener("drop", function(event) { | |
// get dropped files | |
var files = event.dataTransfer.files; | |
// iterate over dropped files | |
for (var i = 0; i < files.length; i++) { | |
console.log(files[i]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence | |
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> | |
<persistence-unit name="persistenceUnit" transaction-type="RESOURCE_LOCAL"> | |
<provider>org.hibernate.ejb.HibernatePersistence</provider> | |
<class>org.goout.model.Event</class> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:tx="http://www.springframework.org/schema/tx" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd | |
http://www.springframework.org/schema/context | |
http://www.springframework.org/schema/context/spring-context-3.1.xsd | |
http://www.springframework.org/schema/tx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aused by: java.lang.UnsupportedOperationException: The application must supply JDBC connections | |
at org.hibernate.service.jdbc.connections.internal.UserSuppliedConnectionProviderImpl.getConnection(UserSuppliedConnectionProviderImpl.java:62) | |
at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:276) | |
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:297) | |
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:169) | |
at org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.extractPhysicalConnection(ConnectionProxyHandler.java:82) | |
at org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.continueInvocation(ConnectionProxyHandler.java:138) | |
at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) | |
at $Proxy44.prepareStatement(Unknown Source) | |
at org.hibernate.engine.jdbc.internal.Stat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: No operations allowed after connection closed. | |
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1360) | |
at org.hibernate.ejb.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1288) | |
at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:313) | |
at org.maite.persistence.Clause.fetchSingle(Clause.java:62) | |
at org.goout.repositories.ThingRepository.findBySlug(ThingRepository.java:49) | |
at org.goout.controller.ItemAndListController.processRequest(ItemAndListController.java:56) | |
at org.goout.controller.ItemController.processRequest(ItemController.java:46) | |
at org.goout.controller.ItemPerformerController.processRequest(ItemPerformerController.java:45) | |
at org.maite.mvc.controller.router.SingleRoute.handle(SingleRoute.java:92) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. varianta | |
var holder = $("<div>").attr("id", this.MENU_HOLDER) | |
.appendTo(this.MENU_TARGET); | |
var listHolder = $("<ul>").attr("class", "nav first_level cf") | |
.appendTo(holder); | |
// 2. varianta | |
var listHolder = $("<ul>", {"class": "nav first_level cf"}) |