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
@RunWith(Arquillian.class) | |
public class HelloServletClientTest { | |
@Deployment(testable=false) | |
public static WebArchive createTestArchive() { | |
WebArchive wa = ShrinkWrap.create(WebArchive.class,"test.war") | |
.addClass(HelloServlet.class) | |
.addAsWebInfResource("web.xml"); | |
return wa; | |
} | |
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
---------------------------- | |
ID: 1 | |
Address: http://SSI11021:8082/ee-api-activity/ActivityImporterExporterWebService | |
Encoding: UTF-8 | |
Http-Method: POST | |
Content-Type: text/xml;charset=UTF-8 | |
Headers: {accept-encoding=[gzip,deflate], connection=[Keep-Alive], Content-Length=[1230], content-type=[text/xml;charset=UTF-8], host=[SSI11021:8082], SOAPAction=[""], user-ag | |
ent=[Apache-HttpClient/4.1.1 (java 1.5)]} | |
Payload: <soapenv:Envelope xmlns:apis="http://apis.activity.ee.mycompany.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> | |
<soapenv:Header><wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://d |
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
package com.mycompany.services.jaas; | |
import javax.ejb.Stateless; | |
import javax.jws.WebService; | |
import org.apache.cxf.interceptor.InInterceptors; | |
import org.jboss.ejb3.annotation.SecurityDomain; | |
import org.jboss.ws.api.annotation.EndpointConfig; | |
/** |
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
@Produces | |
@TWSClientOptions | |
public TWSClientConfiguration findAppropriate(final InjectionPoint ip) { | |
final Set<Annotation> qualifiers = ip.getQualifiers(); | |
TWSClientOptions tco = null; | |
for (final Annotation a : qualifiers) { | |
if (a.annotationType() == TWSClientOptions.class) { | |
tco = (TWSClientOptions) a; | |
break; | |
} |
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
@Deployment(name = "war2", testable = false) | |
public static WebArchive createDep2() { | |
return ShrinkWrap | |
.create(WebArchive.class, "application2.war") | |
.addClasses(CountryBean.class, CountryBeanLocal.class, | |
CountryEAO.class, CountryEAOLocal.class, Country.class, | |
SystemPropertyBeanLocal.class, | |
SystemPropertyBean.class, SearchUtilLocal.class, | |
SearchUtil.class, DozerBeanMapperServiceLocal.class, | |
DozerBeanMapperService.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
java.lang.NullPointerException | |
at org.mvel2.DataConversion.convert(DataConversion.java:129) | |
at org.mvel2.conversion.ArrayHandler.handleLooseTypeConversion(ArrayHandler.java:80) | |
at org.mvel2.conversion.ArrayHandler.convertFrom(ArrayHandler.java:39) | |
at org.mvel2.DataConversion.convert(DataConversion.java:129) | |
at org.jboss.forge.shell.command.Execution.perform(Execution.java:95) | |
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109) | |
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47) | |
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818) | |
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841) |
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
[no project] john.ament $ forge update | |
forge update | |
***INFO*** This Forge installation will be updated to 1.2.1.Final | |
? Is that ok ? [Y/n] | |
Update in progress. Please wait... \ | |
***SUCCESS*** Forge?will now restart?to complete the update... | |
_____ | |
| ___|__ _ __ __ _ ___ | |
| |_ / _ \| `__/ _` |/ _ \ \\ |
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
picketlink 2.0.3 dependencies | |
<dependencies> | |
<module name="javax.api"/> | |
<module name="javax.security.auth.message.api"/> | |
<module name="javax.security.jacc.api"/> | |
<module name="javax.transaction.api"/> | |
<module name="javax.xml.bind.api"/> | |
<module name="javax.xml.stream.api"/> | |
<module name="javax.servlet.api"/> |
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
Maven.resolver().offline().loadPomFromFile("pom.xml").resolve("com.mycompany:foo-app").withTransitivity().asSingle(WebArchive.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
public static void updatePersistence(final PersistenceDescriptor pd) { | |
for (final PersistenceUnit<PersistenceDescriptor> pu : pd.getAllPersistenceUnit()) { | |
Property<Properties<PersistenceUnit<PersistenceDescriptor>>> hbm2ddl = null; | |
for (final Property<Properties<PersistenceUnit<PersistenceDescriptor>>> prop : pu.getOrCreateProperties() | |
.getAllProperty()) { | |
if (prop.getName().equals("hibernate.hbm2ddl.auto")) { | |
hbm2ddl = prop; | |
break; | |
} | |
} |