Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » IllegalValueException in web.xml with variable
IllegalValueException in web.xml with variable [message #1806704] Tue, 14 May 2019 08:12 Go to next message
David Rogers is currently offline David RogersFriend
Messages: 2
Registered: May 2019
Junior Member
I hope I'm asking this in the right place.

Eclipse gives me an error from time to time due to the use of a variable in my web.xml file. Everything works just as it should, its just that I get this error which is very annoying. It seems to happen whenever there is a build on that particular war file. It also happens when I do a maven update.

The error I get is :
An internal error occurred during: "Loading descriptor for test_war.".
org.eclipse.emf.ecore.xmi.IllegalValueException: Value '${web.cookies.ssl:true}' is not legal. 


The relevant part in my web.xml:
	<session-config>
		<session-timeout>30</session-timeout>
		<cookie-config>
		<http-only>true</http-only>
		<secure>${web.cookies.ssl:true}</secure>
		</cookie-config>
		<tracking-mode>COOKIE</tracking-mode>
	</session-config>

I'm running JBoss EAP 6.4 and it does what is should and replaces the value.


I do not have access to the internet form the environment where i run Eclipse.
I have disabled xml validation for the whole workspace.

Anyone have any idea how I can get rid of this error.
Re: IllegalValueException in web.xml with variable [message #1806757 is a reply to message #1806704] Tue, 14 May 2019 18:45 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Your opinion of the 'relevant' part does not comply with mine, so it is difficult to work out what the fragment means.

However ${web.cookies.ssl:true} could be legal, so my guess is that your metamodel requires <secure>...</secure> to have a true/false value. Therefore your writer failed to resolve ${web.cookies.ssl:true} before saving, or your metamodel fails to allow strings that can resolved later.

Regards

Ed Willink
Previous Topic:Serializing attribute defined ad EDataType
Next Topic:limitation of child extender ?
Goto Forum:
  


Current Time: Thu Apr 25 19:38:34 GMT 2024

Powered by FUDForum. Page generated in 0.02689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top