Skip to content

Instantly share code, notes, and snippets.

View vietj's full-sized avatar
🤖
Coding the Future

Julien Viet vietj

🤖
Coding the Future
View GitHub Profile
random = new Random() { public int nextInt(int i) { return 0; } };
static final String PATTERN =
"(?:" +
"(?![/_@])([^\\+]+)\\+" +
")?" +
"(?:(?:" +
"([_@])(.+)" +
diff --git a/component/portal/pom.xml b/component/portal/pom.xml
index 8b0efdf..5e40761 100644
--- a/component/portal/pom.xml
+++ b/component/portal/pom.xml
@@ -113,6 +113,12 @@
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.jibx</groupId>
/*
* Copyright (C) 2010 eXo Platform SAS.
*
* 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.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
public PortletApplication20MetaData build(InputStream is) throws Exception
{
PortletApplication20MetaData md = new PortletApplication20MetaData();
XMLInputFactory factory = XMLInputFactory.newInstance();
XMLStreamReader stream = factory.createXMLStreamReader(is);
StaxNavigator<Element> nav = new StaxNavigatorImpl<Element>(new Naming.Enumerated<Element>(Element.class), stream);
nav.setTrimContent(true);
17:50:39,047 ERROR [RootContainer] Cannot create the portal container 'portal' . ServletContext: org.apache.catalina.core.ApplicationContextFacade@3b5fb13e
org.picocontainer.PicoIntrospectionException: Failed when calling start on org.gatein.integration.wsrp.WSRPServiceIntegration@3b710d08
at org.exoplatform.container.LifecycleVisitor.traverse(LifecycleVisitor.java:136)
at org.exoplatform.container.LifecycleVisitor.start(LifecycleVisitor.java:170)
at org.exoplatform.container.ConcurrentPicoContainer.start(ConcurrentPicoContainer.java:554)
at org.exoplatform.container.ExoContainer.start(ExoContainer.java:225)
at org.exoplatform.container.PortalContainer.start(PortalContainer.java:667)
at org.exoplatform.container.ExoContainer.start(ExoContainer.java:213)
at org.exoplatform.container.RootContainer.createPortalContainer(RootContainer.java:399)
at org.exoplatform.container.RootContainer.createPortalContainers(RootContainer.java:287)
/*
* Copyright (C) 2010 eXo Platform SAS.
*
* 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.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>GateIn - Dependencies Versions</name>
<description>GateIn dependencies configuration</description>
<url>www.jboss.org/gatein</url>
<groupId>org.gatein</groupId>
<artifactId>gatein-dep</artifactId>
22095c22228
< diff --git a/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java b/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
---
> diff --git webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
22097,22098c22230,22231
< --- a/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
< +++ b/webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
---
> --- webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
> +++ webui/portal/src/main/java/org/exoplatform/portal/webui/portal/UIPortalForm.java
@Usage("logging commands")
public class log extends CRaSHCommand implements Completer {
@Usage("send a message to a logger")
@Man("""\
The send command log one or several loggers with a specified message. For instance the following impersonates
the javax.management.mbeanserver class and send a message on its own logger.
#% log send -m hello javax.management.mbeanserver