struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erling Molde (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-3704) Could not create JarEntryRevision
Date Tue, 01 May 2012 16:01:50 GMT

     [ https://issues.apache.org/jira/browse/WW-3704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Erling Molde updated WW-3704:
-----------------------------

    Comment: was deleted

(was: Same problem with Tomcat 7, using version numbered applications: adresse##4.4.28.war;

11:17:43,111 [Thread-70] WARN  com.opensymphony.xwork2.util.FileManager [temp\9-adresse##4.4.28]:
	Could not create JarEntryRevision!
java.io.FileNotFoundException: C:\Tomcat\Tomcat 7.0\temp\9-adresse%23%234.4.28\WEB-INF\lib\struts2-core-2.1.8.1.jar
(The system cannot find the path specified)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(Unknown Source)
	at java.util.jar.JarFile.<init>(Unknown Source)
	at java.util.jar.JarFile.<init>(Unknown Source)
	at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:297)
	at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:133)
	at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:93)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:887)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:265)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
	at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)♠
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

(Example from xwork-2.1.6:)
Replacing

	new File(url.getPath().replaceAll("%20", " "))

in com.opensymphony.xwork2.util.FileManager.JarEntryRevision.build(URL) with something like:

	new File(replaceHex(url.getPath())

where replaceHex(...) is

	private static final Pattern	HEX_PATTERN	= Pattern.compile("%(\\w\\w)");

	private String replaceHex(final String s)
	{
		if (s == null)
			return s;
		final Matcher m = HEX_PATTERN.matcher(s);
		final StringBuffer sb = new StringBuffer(s.length());
		while (m.find()) {
			final String digits = m.group(1);
			final String replacement =
				String.valueOf(
				(char) (Character.digit(digits.charAt(0), 16) << 4
					| Character.digit(digits.charAt(1), 16)));
			m.appendReplacement(sb, replacement);
		}
		if (sb.length() == 0)
			return s;
		m.appendTail(sb);
		return sb.toString();
	}

would solve this (part of the) problem.)
    
> Could not create JarEntryRevision 
> ----------------------------------
>
>                 Key: WW-3704
>                 URL: https://issues.apache.org/jira/browse/WW-3704
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 2.2.3.1
>         Environment: jboss-as-7.1.0.Alpha2-SNAPSHOT 
>            Reporter: Sreekanth S Nair
>             Fix For: 2.5
>
>
> 13:07:06,528 WARN  [com.opensymphony.xwork2.util.FileManager] (MSC service thread 1-1)
Could not create JarEntryRevision for [vfs:/C:/Server/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/deployments/egov.ear/lib/struts2-core-2.2.3.1]!:
java.io.FileNotFoundException: vfs:\C:\Server\jboss-as-7.1.0.Alpha2-SNAPSHOT\standalone\deployments\egov.ear\lib\struts2-core-2.2.3.1
(The filename, directory name, or volume label syntax is incorrect)
> 	at java.util.zip.ZipFile.open(Native Method) [:1.6.0]
> 	at java.util.zip.ZipFile.<init>(ZipFile.java:114) [:1.6.0]
> 	at java.util.jar.JarFile.<init>(JarFile.java:133) [:1.6.0]
> 	at java.util.jar.JarFile.<init>(JarFile.java:97) [:1.6.0]
> 	at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:307)
[xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145) [xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105) [xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:898)
[xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
[xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
[xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
[xwork-core-2.2.3.1.jar:]
> 	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
[xwork-core-2.2.3.1.jar:]
> 	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
[struts2-core-2.2.3.1.jar:]
> 	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) [struts2-core-2.2.3.1.jar:]
> 	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
[struts2-core-2.2.3.1.jar:]
> 	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
[struts2-core-2.2.3.1.jar:]
> 	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447)
[jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:3860) [jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:81)
[jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
[:1.6.0]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0]
> 	at java.lang.Thread.run(Thread.java:619) [:1.6.0]
> Even its warning, seems like need to be fixed. 
> Struts2-Convenstional-Plugin not working due to this ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message