Permalink
Browse files

解决部署xxx.bpmn20.xml提示no support file type of xml

  • Loading branch information...
1 parent ef1a7b3 commit a2cebd2cb13731203dddf8d016e0dd5b59a9d358 @henryyan committed Sep 19, 2012
View
@@ -27,15 +27,15 @@
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
- <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
- <attribute name="owner.project.facets" value="java"/>
+ <attribute name="maven.pomderived" value="true"/>
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
@@ -1,2 +1,7 @@
eclipse.preferences.version=1
+encoding//src/main/java=UTF-8
+encoding//src/main/resources=UTF-8
+encoding//src/test/java=UTF-8
+encoding//src/test/resources=UTF-8
+encoding/<project>=UTF-8
encoding/rebel.xml=UTF-8
@@ -168,7 +168,7 @@ public String deploy(@RequestParam(value = "file", required = false) MultipartFi
repositoryService.createDeployment().addZipInputStream(zip).deploy();
} else if (extension.equals("png")) {
repositoryService.createDeployment().addInputStream(fileName, fileInputStream).deploy();
- } else if (extension.indexOf("bpmn20.xml") != -1) {
+ } else if (fileName.indexOf("bpmn20.xml") != -1) {
repositoryService.createDeployment().addInputStream(fileName, fileInputStream).deploy();
} else if (extension.equals("bpmn")) {
/*
@@ -180,7 +180,7 @@ public String deploy(@RequestParam(value = "file", required = false) MultipartFi
throw new ActivitiException("no support file type of " + extension);
}
} catch (Exception e) {
- logger.error("error on deploy process, because of file input stream");
+ logger.error("error on deploy process, because of file input stream", e);
}
return "redirect:/workflow/process-list";

0 comments on commit a2cebd2

Please sign in to comment.