Skip to content

Instantly share code, notes, and snippets.

View kitplummer's full-sized avatar
🏠
Working from home

Kit Plummer kitplummer

🏠
Working from home
View GitHub Profile
This from OC4J:
2008-10-28 13:36:46.110 NOTIFICATION Started application : mdd-services
2008-10-28 13:36:46.115 NOTIFICATION Binding web application(s) to site secure-web-site begins...
2008-10-28 13:36:46.115 NOTIFICATION Binding mdd-services web-module for application mdd-services to site secure-web-site under context root mdd-services
Oct 28, 2008 1:36:46 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Oct 28, 2008 1:36:46 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@ed4893: display name [Root WebApplicationContext]; startup date [Tue Oct 28 13:36:46 MST 2008]; root of context hierarchy
Oct 28, 2008 1:36:46 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
WARNING: Unable to initialize MDD Service Simulator: File: response_all.xml could not be loaded
Oct 28, 2008 2:08:05 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://metadata.dod.mil/mdr/ns/MDE/1.0/ws/MetadataDiscoveryService}MetadataDiscoveryService from WSDL: WEB-INF/wsdl/MetadataDiscoveryService.wsdl
[ERROR] - Context initialization failed (ContextLoader.java:initWebApplicationContext:204)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mdd-service': Invocation of init method failed; nested exception is java.lang.IncompatibleClassChangeError
Caused by:
java.lang.IncompatibleClassChangeError
at org.apache.cxf.wsdl11.WSDLServiceBuilder.copyExtensionAttributes(WSDLServiceBuilder.java:120)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:228)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:153)
@kitplummer
kitplummer / gist:25000
Created November 14, 2008 17:18
color
class ProductController {
def index = { redirect(action:list,params:params) }
// the delete, save and update actions only accept POST requests
def allowedMethods = [delete:'POST', save:'POST', update:'POST']
def list = {
if(!params.max) params.max = 10
[ productList: Product.list( params ) ]
public enum Color { red, yellow, green }
class TrafficLight {
def color = Color.red
}
def light = new TrafficLight()
println "The traffic light is ${light.color}"
package com.accenture.netcds.notification.event;
/**
* Created by IntelliJ IDEA.
* User: kplummer
* Date: Mar 25, 2009
* Time: 1:12:18 PM
* To change this template use File | Settings | File Templates.
*/
private List<NotificationFilter> processFiltersJson(String filters) {
List<NotificationFilter> fl = new ArrayList();
fl = Collections.EMPTY_LIST;
JSONArray ja = new JSONArray().fromObject(filters);
for (Iterator i = ja.iterator(); i.hasNext();) {
JSONObject jf = (JSONObject)i.next();
NotificationFilter nf = new NotificationFilter();
nf.setEmail(jf.getString("email"));
nf.setFilterTypeCode(jf.getString("filterTypeCode"));
nf.setFilterText(jf.getString("filterText"));
import groovy.xml.MarkupBuilder
import org.jivesoftware.smack.packet.PacketExtension
import org.jivesoftware.smack.Chat
import org.jivesoftware.smack.ConnectionConfiguration
import org.jivesoftware.smack.PacketListener
import org.jivesoftware.smack.XMPPConnection
import org.jivesoftware.smack.XMPPException
import org.jivesoftware.smack.filter.PacketFilter
import org.jivesoftware.smack.filter.PacketTypeFilter
# $ tweet Hi mom!
#
# Put this in ~/.bashrc or wherever.
# If it doesn't work, make sure your ~/.netrc is right
#
# (Thanks to @anildigital and @grundprinzip for curl-fu)
function tweet {
curl -n -d status="$*" https://twitter.com/statuses/update.xml --insecure &> /dev/null
echo "tweet'd"
@kitplummer
kitplummer / PacketExtensionTest.groovy
Created October 26, 2009 15:38
Example showing Smack PacketExtension
import groovy.xml.MarkupBuilder
import org.jivesoftware.smack.packet.PacketExtension
import org.jivesoftware.smack.Chat
import org.jivesoftware.smack.ConnectionConfiguration
import org.jivesoftware.smack.PacketListener
import org.jivesoftware.smack.XMPPConnection
import org.jivesoftware.smack.XMPPException
import org.jivesoftware.smack.filter.PacketFilter
import org.jivesoftware.smack.filter.PacketTypeFilter
<plugin>
<groupId>org.grails</groupId>
<artifactId>grails-maven-plugin</artifactId>
<version>1.1</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>org.grails</groupId>
<artifactId>grails-bootstrap</artifactId>
<version>1.1.1</version>