The Weierstrass theorem says that any continuous function over compact set attains it extreme value within the set. Since compact means closed and bounded only for finite dimensional spaces, my guess is that the theorem does not necessarily hold for infinite dimensional spaces. For example the unit sphere in an infinite dimensional space is not compact even though it is closed and bounded (from converse of Reisz's Lemma, which I do not profess to fully understand - last paragraph of question).
So to show the theorem wrong, I am trying to construct an explicit example of a continuous functional $J: A \subseteq V \to \mathbb{R}$ where $V$ is a function space and $A$ is a closed and bounded subset of $V$ such that the global minimum of $J$ over $A$ does not exist.
To this end, are there any limitations on the norm or metric I choose to imbue the problem with? As in are there norms, which if I choose, the example I am trying to construct will always fail? Also does anyone know of an example which matches what I am trying to do?
I don't have a strong background in analysis and I am trying to learn what I can for an optimization course that I am taking. So I am not sure where to start off either. If someone could give some pointers, sketches, or references it would be really great.