aspose file tools
The moose likes JBoss and the fly likes help please Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "help please" Watch "help please" New topic
Author

help please

sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Hello:

This is the first line of HTML file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >

Why it get me the error message for that line:
The system identifier must begin with either a single or double quote character

???


Thanks for help!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
I have a feeling you are talking about a JavaScript error. In that case it just points to the first line in the code.

If you post that code I could probably spot the error.

If you are talking about validating the code, you may want to look at this:
http://www.htmlhelp.com/reference/html40/html/doctype.html

Eric
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Thanks, Eric. Here's the code:

<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<title>
FOO Application
</title>
</head>
<body>
<h1>FOO Form</h1>
<form action="Compute" method="POST">
<table cellspacing="2" cellpadding="2" border="0">
<tr>
<td>
Limit :
</td>
<td>
<input type="text" name="limit" value="50">
</td>
</tr>
<tr>
<td>
<input type="submit" name="Compute" value="Compute">
</td>
<td>
<input type="Reset">
</td>
</tr>
</table>
</form>
</body>
</html>
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Hi Eric, have chance to take a look?
stan ioffe
Greenhorn

Joined: Jun 30, 2005
Posts: 16
It runs fine in IE6.0 ... What exactly is the problem?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
only thing that is missing for a valid markup is

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
.....
.....
</html>

other than that there should be no problems.

Eric
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Hi,

I use Eclipse.

After I add in
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >

I still get same error 'The system identifier must begin with either a single or double quote character'.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Could you verify the file name on the file system. I also use Eclipse (3.1 actually Lomboz) to edit my JSPs and I also have this declaration in my files. I don't get the error.

- m


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
The file name is index.html, anything wrong?

Thanks a lot!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
No, I wanted to make sure that it was not saved as some XML file.
I don't understand Eclipse very well, but when i first tried to create my JSP file (.jsp extension), it prompted with options like XML style, or something like that. so, i just wanted to make sure.

I will try to open a HTML file tomorrow morning and check this thread incase I find anything new. I have so far onlyworked with JSP file and did not see this problem.

Untill tomorrow....

- m
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
I pasted the code into an html file and opened it from the filesystem with IE 6.0 with no problems. From a quick google search, that error seems to be an XML error, so maybe the meta tag is being ignored. Are you opening the html file from the filesystem or through a web server? If the latter, have you tried seeing if you get the same error when opening from the filesystem?

Another thing to try is the following addition to the doctype:

<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

-Yuriy
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Hi Yuriy,

I open it through file system in Eclipse. Actually, I try the create a html file, when I save it, I got the error.

If I add "http://www.w3.org/TR/html4/loose.dtd",

<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >

I got different error:
The declaration for the entity "HTML.Version" must end with '>'.
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Wait, you get the error when you save it? But do you get any error when you open it? If you don't, then ignore the error upon saving - Eclipse is just thinking of it as an xml file.

A co-worker of mine uses the MyEclipse extension to write JSPs, and it always gives an error when a JSP uses a variable that was declared in a previously included (with a directive) JSP. These types of things can be ignored - it's not like when a .java file fails to compile.

-Yuriy
[ July 08, 2005: Message edited by: Yuriy Zilbergleyt ]
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
I did not get any errors either opening it in Lomboz(Eclipse 3.1) or using FireFox. I do see the FOO Form. Sorry. As was mentioned its probably an issue in the Eclipse version you are using.

- m
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Thanks everyone,

I just have a chance to take a look again. But still has problem.

I use Eclipse 3.0.1, the html file is in ear file. After I open the project, html file still shows the error. Besides, when I tried to
deployed ear filel into Jboss, nothing happen and without giveing me any massage.

Any suggestion?

Thanks again!
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
Besides, when I tried to deployed ear filel into Jboss, nothing happen and without giveing me any massage.

I'm not sure I understand. Did the ear file fail to be created (by an ant script?), was it created but Jboss failed to deploy it, or did Jboss deploy it but you couldn't access the .html page though the web-app?

If it's the latter, try opening up the deployed ear file using winzip or a similar program, and check to see if the .html file is in there. Or just check Jboss' working folder for the expanded application.


Another thing to try to get rid of the error in Eclipse is to open the file with the built-in text editor instead of whichever editor you are using.

-Yuriy
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Hi,

I got it deployed, but get the following errors which I don't understand:

09:19:44,179 ERROR [MainDeployer] Could not initialise deployment: file:/C:/JBoss/jboss-4.0.3RC1/server/default/deploy/FiboApp.ear
org.jboss.deployment.DeploymentException: expected one display-name tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:98)
at org.jboss.deployment.J2eeApplicationMetaData.importApplicationXml(J2eeApplicationMetaData.java:135)
at org.jboss.deployment.J2eeApplicationMetaData.importXml(J2eeApplicationMetaData.java:121)
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:128)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:827)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:764)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:267)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:217)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:950)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:436)
at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:973)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:721)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:534)
09:19:44,189 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
org.jboss.deployment.DeploymentException: expected one display-name tag

Seems like one of your XML files is missing a <display-name> element. Are you sure the problem is the HTML file? Have you tried deploying without it?

-Yuriy
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56233
    
  13

As this has become more about JBoss configuration than HTML, moved thusly.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


org.jboss.deployment.DeploymentException: expected one display-name tag

Check META-INF/application.xml. It needs to be have all the elements defined in its DTD.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
sarah Marsh
Ranch Hand

Joined: Mar 06, 2001
Posts: 282
Thanks a lot, everyone.

Now I get to a point which throw running time exception:

Code is like this:

...
public void init(ServletConfig config) throws ServletException {

props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");

props.put(Context.PROVIDER_URL,"localhost");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming rg.jnp.interfaces" );
Context context = new InitialContext(props);
Object ref = context.lookup("ejb/Fibo");
home = (FiboHome) PortableRemoteObject.narrow(ref, FiboHome.class);
...
}

protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
...
Fibo bean = home.create(); // error happeneds here!!!

error massages:
javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract tutorial.interfaces.Fibo tutorial.interfaces.FiboHome.create() throws javax.ejb.CreateException,java.rmi.RemoteException
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:161)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:212)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:81)
at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:90)
at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:41)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:109)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:146)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:116)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:121)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
at org.jboss.ejb.Container.invoke(Container.java:894)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
at $Proxy55.create(Unknown Source)
at tutorial.web.ComputeServlet.doPost(ComputeServlet.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
Jeremy Flowers
Greenhorn

Joined: Aug 04, 2005
Posts: 11
Originally posted by sarah Marsh:
Hi Yuriy,

I open it through file system in Eclipse. Actually, I try the create a html file, when I save it, I got the error.

If I add "http://www.w3.org/TR/html4/loose.dtd",

<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >

I got different error:
The declaration for the entity "HTML.Version" must end with '>'.

Check out my post over here with monikor JGF.http://dev.mobi/forum/validation-error-the-declaration-entity-htmlversion-must-end-with
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: help please
 
Similar Threads
Book on XML
JLabel multiline text
How to create a on-line user's guide for FBN
Surprising Problem in simple code
default encoding problems