Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
44d756ad
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
44d756ad
编写于
4月 21, 2022
作者:
R
Ray
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正调用 document style的 jaxws 无法编译发送类的bug
上级
694672b1
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
104 deletion
+15
-104
o2server/pom.xml
o2server/pom.xml
+6
-0
o2server/start_linux_min.sh
o2server/start_linux_min.sh
+0
-0
o2server/x_base_core_project/src/main/java/com/x/base/core/project/webservices/JaxWsDynamicClientFactory.java
...e/core/project/webservices/JaxWsDynamicClientFactory.java
+0
-92
o2server/x_base_core_project/src/main/java/com/x/base/core/project/webservices/WebservicesClient.java
...om/x/base/core/project/webservices/WebservicesClient.java
+2
-2
o2server/x_console/src/main/java/com/x/server/console/server/JettySeverTools.java
...ain/java/com/x/server/console/server/JettySeverTools.java
+4
-8
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/ThisApplication.java
...x/processplatform/service/processing/ThisApplication.java
+3
-2
未找到文件。
o2server/pom.xml
浏览文件 @
44d756ad
...
...
@@ -474,6 +474,12 @@
<packagingExcludes>
persistence.xml,WEB-INF/lib/**,META-INF
</packagingExcludes>
<failOnMissingWebXml>
false
</failOnMissingWebXml>
<webResources>
<resource>
<directory>
ext
</directory>
<targetPath>
WEB-INF/ext
</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
...
...
o2server/start_
docker
.sh
→
o2server/start_
linux_min
.sh
浏览文件 @
44d756ad
文件已移动
o2server/x_base_core_project/src/main/java/com/x/base/core/project/webservices/JaxWsDynamicClientFactory.java
已删除
100644 → 0
浏览文件 @
694672b1
///**
// * Licensed to the Apache Software Foundation (ASF) under one
// * or more contributor license agreements. See the NOTICE file
// * distributed with this work for additional information
// * regarding copyright ownership. The ASF licenses this file
// * to you 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 distributed under the License is distributed on an
// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// * KIND, either express or implied. See the License for the
// * specific language governing permissions and limitations
// * under the License.
// */
//
//package com.x.base.core.project.webservices;
//
//import java.io.File;
//import java.nio.charset.StandardCharsets;
//import java.util.List;
//
//import org.apache.cxf.Bus;
//import org.apache.cxf.BusFactory;
//import org.apache.cxf.bus.CXFBusFactory;
//import org.apache.cxf.endpoint.EndpointImplFactory;
//import org.apache.cxf.endpoint.dynamic.DynamicClientFactory;
//import org.apache.cxf.helpers.JavaUtils;
//import org.apache.cxf.jaxws.support.JaxWsEndpointImplFactory;
//
///**
// * This class reads a WSDL and creates a dynamic client from it with JAX-WS
// * functionality. This provides support for attachments and other useful things
// * that come with JAX-WS.
// *
// * Use {@link #newInstance} to obtain an instance, and then
// * {@link #createClient(String)} (or other overloads) to create a client.
// *
// * This factory uses the JAXB data binding.
// **/
//public class JaxWsDynamicClientFactory extends DynamicClientFactory {
//
// protected JaxWsDynamicClientFactory(Bus bus) {
// super(bus);
// }
//
// @Override
// protected EndpointImplFactory getEndpointImplFactory() {
// return JaxWsEndpointImplFactory.getSingleton();
// }
//
// protected boolean allowWrapperOps() {
// return true;
// }
//
// /**
// * Create a new instance using a specific <tt>Bus</tt>.
// *
// * @param b the <tt>Bus</tt> to use in subsequent operations with the instance
// * @return the new instance
// */
// public static JaxWsDynamicClientFactory newInstance(Bus b) {
// return new JaxWsDynamicClientFactory(b);
// }
//
// /**
// * Create a new instance using a default <tt>Bus</tt>.
// *
// * @return the new instance
// * @see CXFBusFactory#getDefaultBus()
// */
// public static JaxWsDynamicClientFactory newInstance() {
// Bus bus = BusFactory.getThreadDefaultBus();
// return new JaxWsDynamicClientFactory(bus);
// }
//
// protected boolean compileJavaSrc(String classPath, List<File> srcList, String dest) {
// org.apache.cxf.common.util.Compiler javaCompiler = new org.apache.cxf.common.util.Compiler();
// javaCompiler.setEncoding(StandardCharsets.UTF_8.name());
// javaCompiler.setClassPath(classPath);
// javaCompiler.setOutputDir(dest);
// if (JavaUtils.isJava9Compatible()) {
// javaCompiler.setTarget("9");
// } else {
// javaCompiler.setTarget("1.8");
// }
// return javaCompiler.compileFiles(srcList);
// }
//}
\ No newline at end of file
o2server/x_base_core_project/src/main/java/com/x/base/core/project/webservices/WebservicesClient.java
浏览文件 @
44d756ad
...
...
@@ -34,10 +34,10 @@ public class WebservicesClient {
return
jaxws
(
wsdl
,
method
,
objects
);
}
public
String
jaxwsXml
(
String
wsdlURL
,
String
soapXML
)
throws
Exception
{
public
String
jaxwsXml
(
String
url
,
String
soapXML
)
throws
Exception
{
List
<
NameValuePair
>
heads
=
new
ArrayList
<>();
heads
.
add
(
new
NameValuePair
(
ConnectionAction
.
CONTENT_TYPE
,
MediaType
.
TEXT_XML
));
return
HttpConnection
.
postAsString
(
wsdlURL
,
heads
,
soapXML
);
return
HttpConnection
.
postAsString
(
url
,
heads
,
soapXML
);
}
public
HttpConnectionResponse
restful
(
String
method
,
String
url
,
Map
<
String
,
String
>
heads
,
String
body
,
...
...
o2server/x_console/src/main/java/com/x/server/console/server/JettySeverTools.java
浏览文件 @
44d756ad
...
...
@@ -90,12 +90,6 @@ public abstract class JettySeverTools {
jars
.
add
(
file
.
getAbsolutePath
());
}
}
// if (module.dynamicJars() != null && module.dynamicJars().length > 0) {
// IOFileFilter filter = new WildcardFileFilter(DynamicEntity.JAR_PREFIX + "*.jar");
// for (File o : FileUtils.listFiles(Config.dir_dynamic_jars(true), filter, null)) {
// jars.add(o.getAbsolutePath());
// }
// }
for
(
Path
path
:
paths
)
{
if
(
Files
.
exists
(
path
)
&&
Files
.
isDirectory
(
path
))
{
try
(
Stream
<
Path
>
stream
=
Files
.
walk
(
path
,
FileVisitOption
.
FOLLOW_LINKS
))
{
...
...
@@ -116,12 +110,14 @@ public abstract class JettySeverTools {
}
filter
=
new
WildcardFileFilter
(
"openjpa-*.jar"
);
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"ehcache-*.jar"
));
/
* 如果不单独导入会导致java.lang.NoClassDefFoundError: org/eclipse/jetty/http/MimeTypes */
/
/ 如果不单独导入会导致java.lang.NoClassDefFoundError: org/eclipse/jetty/http/MimeTypes
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"jetty-all-*.jar"
));
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"jetty-proxy-*.jar"
));
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"quartz-*.jar"
));
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"filters-*.jar"
));
/* jersey从AppClassLoader加载 */
// JaxWsDynamicClientFactory 需要在WebAppClassLoader加载 jakarta.xml.bind-api-*.jar
filter
=
FileFilterUtils
.
or
(
filter
,
new
WildcardFileFilter
(
"jakarta.xml.bind-api-*.jar"
));
// jersey从AppClassLoader加载
for
(
File
o
:
FileUtils
.
listFiles
(
Config
.
dir_commons_ext
().
toFile
(),
filter
,
null
))
{
jars
.
add
(
o
.
getAbsolutePath
());
}
...
...
o2server/x_processplatform_service_processing/src/main/java/com/x/processplatform/service/processing/ThisApplication.java
浏览文件 @
44d756ad
...
...
@@ -15,6 +15,7 @@ import com.x.base.core.project.config.Config;
import
com.x.base.core.project.message.MessageConnector
;
import
com.x.processplatform.service.processing.processor.invoke.SyncJaxrsInvokeQueue
;
import
com.x.processplatform.service.processing.processor.invoke.SyncJaxwsInvokeQueue
;
import
com.x.processplatform.service.processing.schedule.ArchiveHadoop
;
import
com.x.processplatform.service.processing.schedule.DeleteDraft
;
import
com.x.processplatform.service.processing.schedule.Expire
;
import
com.x.processplatform.service.processing.schedule.LogLongDetained
;
...
...
@@ -52,7 +53,7 @@ public class ThisApplication {
public
static
final
SyncJaxwsInvokeQueue
syncJaxwsInvokeQueue
=
new
SyncJaxwsInvokeQueue
();
public
static
final
UpdateTableQueue
updateTableQueue
=
new
UpdateTableQueue
();
public
static
final
ArchiveHadoopQueue
archiveHadoopQueue
=
new
ArchiveHadoopQueue
();
private
static
ProcessingToProcessingSignalStack
processingToProcessingSignalStack
=
new
ProcessingToProcessingSignalStack
();
...
...
@@ -102,7 +103,7 @@ public class ThisApplication {
context
.
schedule
(
UpdateTable
.
class
,
Config
.
processPlatform
().
getUpdateTable
().
getCron
());
}
if
(
BooleanUtils
.
isTrue
(
Config
.
processPlatform
().
getArchiveHadoop
().
getEnable
()))
{
context
.
schedule
(
UpdateTable
.
class
,
Config
.
processPlatform
().
getArchiveHadoop
().
getCron
());
context
.
schedule
(
ArchiveHadoop
.
class
,
Config
.
processPlatform
().
getArchiveHadoop
().
getCron
());
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录