fix cust-services
This commit is contained in:
parent
9039f2025d
commit
81f117823b
5
cli/hsadmin.properties
Normal file
5
cli/hsadmin.properties
Normal file
@ -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
|
@ -76,7 +76,8 @@ public class RpcClient {
|
|||||||
return list;
|
return list;
|
||||||
} catch (XmlRpcException e) {
|
} catch (XmlRpcException e) {
|
||||||
final String message = e.getLocalizedMessage();
|
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());
|
throw new JSCliException(message.substring(messageStartIndex).trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<classpath>
|
|
||||||
<classpathentry kind="src" output="target/classes" path="src/main/java">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="optional" value="true"/>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="output" path="target/classes"/>
|
|
||||||
</classpath>
|
|
14
cust-services/.gitignore
vendored
14
cust-services/.gitignore
vendored
@ -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
|
||||||
|
@ -48,8 +48,14 @@
|
|||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<finalName>xmlrpc-webapp</finalName>
|
<finalName>cust-webapp</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-war-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archiveClasses>true</archiveClasses>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.openejb.maven</groupId>
|
<groupId>org.apache.openejb.maven</groupId>
|
||||||
<artifactId>tomee-maven-plugin</artifactId>
|
<artifactId>tomee-maven-plugin</artifactId>
|
||||||
|
30
cust-services/src/main/resources/META-INF/persistence.xml
Normal file
30
cust-services/src/main/resources/META-INF/persistence.xml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<persistence version="2.0"
|
||||||
|
xmlns="http://java.sun.com/xml/ns/persistence"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
|
||||||
|
<persistence-unit name="hsar">
|
||||||
|
<jta-data-source>HsarDataSource</jta-data-source>
|
||||||
|
<class>de.hsadmin.bo.customer.Contact</class>
|
||||||
|
<class>de.hsadmin.bo.customer.Customer</class>
|
||||||
|
<class>de.hsadmin.bo.customer.SEPADirectDebit</class>
|
||||||
|
<class>de.hsadmin.bo.database.Database</class>
|
||||||
|
<class>de.hsadmin.bo.database.DatabaseUser</class>
|
||||||
|
<class>de.hsadmin.bo.database.MySqlDatabase</class>
|
||||||
|
<class>de.hsadmin.bo.database.MySqlUser</class>
|
||||||
|
<class>de.hsadmin.bo.database.PgSqlDatabase</class>
|
||||||
|
<class>de.hsadmin.bo.database.PgSqlUser</class>
|
||||||
|
<class>de.hsadmin.bo.domain.Domain</class>
|
||||||
|
<class>de.hsadmin.bo.domain.DomainOption</class>
|
||||||
|
<class>de.hsadmin.bo.domain.EMailAddress</class>
|
||||||
|
<class>de.hsadmin.bo.pac.BaseComponent</class>
|
||||||
|
<class>de.hsadmin.bo.pac.BasePac</class>
|
||||||
|
<class>de.hsadmin.bo.pac.Component</class>
|
||||||
|
<class>de.hsadmin.bo.pac.EMailAlias</class>
|
||||||
|
<class>de.hsadmin.bo.pac.Hive</class>
|
||||||
|
<class>de.hsadmin.bo.pac.INetAddress</class>
|
||||||
|
<class>de.hsadmin.bo.pac.Pac</class>
|
||||||
|
<class>de.hsadmin.bo.pac.PacComponent</class>
|
||||||
|
<class>de.hsadmin.bo.pac.UnixUser</class>
|
||||||
|
</persistence-unit>
|
||||||
|
</persistence>
|
@ -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
|
Loading…
Reference in New Issue
Block a user