Skip to content

Instantly share code, notes, and snippets.

@astralbodies
astralbodies / spring.xml
Created March 26, 2012 18:46
Spring WS Maven
<dependencies>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
@astralbodies
astralbodies / maven.xml
Created March 15, 2012 20:12
Maven shade for uber jar
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<phase>package</phase>
<goals>
@astralbodies
astralbodies / mavensnippet.xml
Created March 15, 2012 18:48
Maven JAR Plugin - include main class
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
...
<configuration>
<archive>
<manifest>
<mainClass>com.whatever...</mainClass>
</manifest>
</archive>
echoDataSource=EchoDataSource
pavDataSource=pavDataSource
advertDataSource=AdvertOdsDataSource
sortedOdsDataSource=SortedOdsDataSource
@astralbodies
astralbodies / server.log
Created February 17, 2012 20:22
WebLogic Error
####<Feb 17, 2012 11:42:53 AM EST> <Warning> <HTTP> <server> <spaServer01> <[ACTIVE] ExecuteThread: '62' for queue: 'weblogic.kernel.
Default (self-tuning)'> <<WLS Kernel>> <> <> <1329496973873> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed
: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'pavDataSource' defined in null: Cannot convert value [we
blogic.jdbc.common.internal.RmiDataSource@320a123] from source type [RmiDataSource] to target type [String].
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'pavDataSource' defined in null: Cannot convert value [webl
ogic.jdbc.common.internal.RmiDataSource@320a123] from source type [RmiDataSource] to target type [String]
at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
at org.springframework.context.support.PropertySource
@astralbodies
astralbodies / application-jndi-context.xml
Created February 17, 2012 20:07
Spring 3.1 JNDI configuration
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd">
<jee:jndi-lookup id="echoDataSource" jndi-name="${echoDataSource}" />
<jee:jndi-lookup id="pavDataSource" jndi-name="${pavDataSource}" />
<jee:jndi-lookup id="advertOdsDataSource" jndi-name="${advertOdsDataSource}" />
<jee:jndi-lookup id="sortedOdsDataSource" jndi-name="${sortedOdsDataSource}" />
@astralbodies
astralbodies / application-context.xml
Created February 17, 2012 20:05
Spring 3.0 property configurer
<?xml version="1.0" encoding="UTF-8"?>
<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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:annotation-config/>
<context:component-scan base-package="com.company.app" />
<context:property-placeholder location="classpath:META-INF/dev.runtime.properties" />
@astralbodies
astralbodies / spring-context.xml
Created February 17, 2012 20:04
Spring 3.1 property configurer changes
<?xml version="1.0" encoding="UTF-8"?>
<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"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">
<context:annotation-config/>
<context:component-scan base-package="com.company.app" />
<context:property-placeholder system-properties-mode="FALLBACK"
location="classpath:META-INF/dev.runtime.properties" />