diff --git a/cli/hsadmin.properties b/cli/hsadmin.properties new file mode 100644 index 0000000..785c811 --- /dev/null +++ b/cli/hsadmin.properties @@ -0,0 +1,5 @@ +backendURL=https://config.hostsharing.net:443/hsar/backend +;xmlrpcURL=https://config.hostsharing.net:443/hsar/xmlrpc/hsadmin +;loginURL=https://login.hostsharing.net:443/cas/v1/tickets +xmlrpcURL=http://localhost:8080/cust-webapp/xmlrpc/hsadmin +loginURL=TestUmgebung diff --git a/cli/src/main/java/de/hsadmin/jscli/RpcClient.java b/cli/src/main/java/de/hsadmin/jscli/RpcClient.java index 268c70e..833975d 100644 --- a/cli/src/main/java/de/hsadmin/jscli/RpcClient.java +++ b/cli/src/main/java/de/hsadmin/jscli/RpcClient.java @@ -76,7 +76,8 @@ public class RpcClient { return list; } catch (XmlRpcException e) { final String message = e.getLocalizedMessage(); - final int messageStartIndex = message.lastIndexOf("Exception:") + 10; + final int lastIndexOfException = message.lastIndexOf("Exception:"); + final int messageStartIndex = lastIndexOfException > 0 ? lastIndexOfException + 10 : 0; throw new JSCliException(message.substring(messageStartIndex).trim()); } } diff --git a/cust-services/.classpath b/cust-services/.classpath deleted file mode 100644 index f619a53..0000000 --- a/cust-services/.classpath +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cust-services/.gitignore b/cust-services/.gitignore index b83d222..e774414 100644 --- a/cust-services/.gitignore +++ b/cust-services/.gitignore @@ -1 +1,13 @@ -/target/ +*.class + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +/target +/.settings +/.classpath +/.project diff --git a/cust-services/pom.xml b/cust-services/pom.xml index 91bce4f..7b7d422 100644 --- a/cust-services/pom.xml +++ b/cust-services/pom.xml @@ -48,8 +48,14 @@ - xmlrpc-webapp + cust-webapp + + maven-war-plugin + + true + + org.apache.openejb.maven tomee-maven-plugin diff --git a/cust-services/src/main/resources/META-INF/persistence.xml b/cust-services/src/main/resources/META-INF/persistence.xml new file mode 100644 index 0000000..3b7dc51 --- /dev/null +++ b/cust-services/src/main/resources/META-INF/persistence.xml @@ -0,0 +1,30 @@ + + + + HsarDataSource + de.hsadmin.bo.customer.Contact + de.hsadmin.bo.customer.Customer + de.hsadmin.bo.customer.SEPADirectDebit + de.hsadmin.bo.database.Database + de.hsadmin.bo.database.DatabaseUser + de.hsadmin.bo.database.MySqlDatabase + de.hsadmin.bo.database.MySqlUser + de.hsadmin.bo.database.PgSqlDatabase + de.hsadmin.bo.database.PgSqlUser + de.hsadmin.bo.domain.Domain + de.hsadmin.bo.domain.DomainOption + de.hsadmin.bo.domain.EMailAddress + de.hsadmin.bo.pac.BaseComponent + de.hsadmin.bo.pac.BasePac + de.hsadmin.bo.pac.Component + de.hsadmin.bo.pac.EMailAlias + de.hsadmin.bo.pac.Hive + de.hsadmin.bo.pac.INetAddress + de.hsadmin.bo.pac.Pac + de.hsadmin.bo.pac.PacComponent + de.hsadmin.bo.pac.UnixUser + + \ No newline at end of file diff --git a/cust-services/src/main/resources/org/apache/xmlrpc/webserver/XmlRpcServlet.properties b/cust-services/src/main/resources/org/apache/xmlrpc/webserver/XmlRpcServlet.properties new file mode 100644 index 0000000..f5864b8 --- /dev/null +++ b/cust-services/src/main/resources/org/apache/xmlrpc/webserver/XmlRpcServlet.properties @@ -0,0 +1,6 @@ +customer=de.hsadmin.service.customer.CustomerRemote +contact=de.hsadmin.service.customer.ContactRemote +mandat=de.hsadmin.service.customer.SEPADirectDebitRemote +hive=de.hsadmin.service.pac.HiveRemote +pac=de.hsadmin.service.pac.PacRemote +property=de.hsadmin.service.property.PropertyRemote \ No newline at end of file