Skip to content

Instantly share code, notes, and snippets.

View lincolnthree's full-sized avatar

Lincoln Baxter, III lincolnthree

View GitHub Profile
@lincolnthree
lincolnthree / FeedService
Created October 27, 2010 14:34
UserService
/**
* This file is part of SocialPM: Agile Project Management Tools (SocialPM)
*
* Copyright (c)2010 Lincoln Baxter, III <lincoln@ocpsoft.com> (OcpSoft)
*
* If you are developing and distributing open source applications under
* the GPL Licence, then you are free to use SocialPM under the GPL
* License:
package org.jboss.seam.mvc.test;
import javax.enterprise.context.RequestScoped;
import javax.inject.Named;
@Named
@RequestScoped
public class IndexBean
{
private String name;
/*
* JBoss, by Red Hat.
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
/ ___| ___ __ _ _ __ ___ | ___|__ _ __ __ _ ___
\___ \ / _ \/ _` | '_ ` _ \ | |_ / _ \| '__/ _` |/ _ \ \\
___) | __/ (_| | | | | | | | _| (_) | | | (_| | __/ //
|____/ \___|\__,_|_| |_| |_| |_| \___/|_| \__, |\___|
|___/
[no project] Desktop $
[no project] Desktop $
[no project] Desktop $
[no project] Desktop $ new-project --named example
[topLevelPackage=The top level package for your Java source files [e.g: "com.example.project"] (java.lang.String)]: com.example
@lincolnthree
lincolnthree / console
Created August 1, 2011 21:06
Make mistakes frequently? Seam Forge fixes your plugins for you :)
____ _____
/ ___| ___ __ _ _ __ ___ | ___|__ _ __ __ _ ___
\___ \ / _ \/ _` | '_ ` _ \ | |_ / _ \| '__/ _` |/ _ \ \\
___) | __/ (_| | | | | | | | _| (_) | | | (_| | __/ //
|____/ \___|\__,_|_| |_| |_| |_| \___/|_| \__, |\___|
|___/
[forge-modules] modules-build $
[forge-modules] modules-build $ forge install-plugin seam-persistence
Connecting to remote repository [https://raw.github.com/forge/plugin-repository/master/repository.yaml]... connected!
***INFO*** Preparing to install plugin: seam-persistence
@lincolnthree
lincolnthree / gist:1125435
Created August 4, 2011 15:23
AS7 JAXB Bug
11:22:52,669 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/example]] (MSC service thread 1-3) Exception sending context initialized event to listener instance of class com.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener: com.ocpsoft.pretty.PrettyException: Failed to load configuration.
at com.ocpsoft.pretty.faces.config.PrettyConfigurator.configure(PrettyConfigurator.java:91) [prettyfaces-jsf2-3.3.1-SNAPSHOT.jar:]
at com.ocpsoft.rewrite.prettyfaces.PrettyConfigContextListener.contextInitialized(PrettyConfigContextListener.java:40) [prettyfaces-jsf2-3.3.1-SNAPSHOT.jar:]
at com.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener.contextInitialized(RewriteServletContextListener.java:45) [rewrite-impl-servlet-1.0.0-SNAPSHOT.jar:]
at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3821) [jbossweb-7.0.0.CR4.jar:7.0.0.CR1]
-------------------------------------------------------------------------------
Test set: com.ocpsoft.rewrite.servlet.config.parameters.UrlMappingConfigurationTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.185 sec <<< FAILURE!
testUrlMappingConfiguration(com.ocpsoft.rewrite.servlet.config.parameters.UrlMappingConfigurationTest) Time elapsed: 0.076 sec <<< ERROR!
org.jboss.arquillian.test.spi.ArquillianProxyException: junit.framework.ComparisonFailure : null expected:</rewrite-test/p/rewrite> but was:<null> [Proxied because : Could not find suitable constructor]
at junit.framework.Assert.assertEquals(Assert.java:81)
at junit.framework.Assert.assertEquals(Assert.java:87)
at com.ocpsoft.rewrite.servlet.config.parameters.UrlMappingConfigurationTest.testUrlMappingConfiguration(UrlMappingConfigurationTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
/*
* Copyright 2011 <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
/*
* JBoss, Home of Professional Open Source
* Copyright 2011, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.