Error When trying the access ajaxswing from the browser

43 views
Skip to first unread message

Rael Gonçalves

unread,
Aug 16, 2020, 9:23:33 PM8/16/20
to AjaxSwing Community Support

AjaxSwing 4.7.0 with - windows server - Tomcat 9.0


I installed Tomcat on the windows server. I put the ajaxswing.war into this folder C:\Program Files\Apache Software Foundation\Tomcat 9.0\webapps

I opened the 8080, 8090 and HTTP doors in the AWS

When I put this address in the browser (http://18.228.226.159:8090/ajaxswing/) and press RUN DEMO, this error comes out.

This address is open. You all can try it.

Why this error comes out?


HTTP Status 500 – Internal Server Error


Type Exception Report

Message Initialization property ajaxswing.home is not specified. Use -Dajaxswing.home=dir switch for java command line or define a servlet parameter for AjaxSwingRouter

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: Initialization property ajaxswing.home is not specified. Use -Dajaxswing.home=dir switch for java command line or define a servlet parameter for AjaxSwingRouter
	com.creamtec.ajaxswing.AjaxSwingRouter.initHome(AjaxSwingRouter.java:77)
	com.creamtec.ajaxswing.AjaxSwingRouter.init(AjaxSwingRouter.java:45)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)




Server OS: <unknown>
AjaxSwing version: <unknown>
JDK version: <unknown>
commons-daemon.2020-08-16.log
service-install.log
tomcat9-stderr.2020-08-16.log
tomcat9-stdout.2020-08-16.log
catalina.2020-08-16.log
catalina.2020-08-17.log
localhost.2020-08-16.log
localhost.2020-08-17.log
localhost_access_log.2020-08-16.txt
localhost_access_log.2020-08-17.txt

Yevhen Badorov

unread,
Aug 17, 2020, 11:31:25 AM8/17/20
to AjaxSwing Community Support
Rael,

According to the message from logs, the port you were trying to use for AjacSwing was already in use.
Then, you've got the message that sais "property ajaxswing.home is not specified". It's more likely that you've changed the configuration of AjaxSwing and accidentally removed the " ajaxswing.home" property.

Rael Gonçalves

unread,
Aug 17, 2020, 4:27:55 PM8/17/20
to AjaxSwing Community Support
A already soved the problem. 

I was benning the service from tomcat I installed in the windows server. The setups of the service from tomcat that I intalled was not setup to ajaxswing.
 
I realized I did not need to install tomcat and use their defaults configurations.

. When I start the service from  ajaxswing, I could access from anywhere. I just needed to chance the localhost to my ip and I opened the 8040 door in AWS.

That was the problem. I was starting the wrong service and the door 8040 was closed, in AWS.

I was so simple. 

Thanks.
Reply all
Reply to author
Forward
0 new messages