Pessoal,
Na hora de definir um novo servidor no Eclipse, conforme orientado no curso, optei pelo Jboss AS 7.1. Na tela seguinte de configuração, preciso escolher a JRE. O curso sugere a "JRE Java SE7 (1.7.0_17)", porém só aparece para mim as opções: Default JRE for JavaSE-1.6 jre1.80_121 E com nenhuma delas consigo startar. Também tentei optar pelo servidor WildFly 8.0, conbinando com as 2 JREs disponíveis, mas sem sucesso. Alguém tem uma sugestão de como acertar esta situação? Abaixo o erro:
Unable to set property fileName on class org.jboss.logmanager.handlers.FileHandler: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.logmanager.PropertyConfigurator.configureProperties(PropertyConfigurator.java:187)
at org.jboss.logmanager.PropertyConfigurator.configureHandler(PropertyConfigurator.java:312)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:128)
at org.jboss.logmanager.PropertyConfigurator.configure(PropertyConfigurator.java:86)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:246)
at org.jboss.logmanager.LogManager.readConfiguration(LogManager.java:231)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.util.logging.LogManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(Unknown Source)
at java.util.logging.LogManager.access$800(Unknown Source)
at java.util.logging.LogManager$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.ensureLogManagerInitialized(Unknown Source)
at java.util.logging.LogManager.getLogManager(Unknown Source)
at org.jboss.modules.Main.main(Main.java:275)
Caused by: java.io.FileNotFoundException: C:\Program Files\Java\jboss\jboss-as-7.1.1.Final\standalone\log\boot.log (O sistema não pode encontrar o caminho especificado)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:152)
at org.jboss.logmanager.handlers.FileHandler.setFileName(FileHandler.java:183)
... 20 more
java.lang.IllegalStateException: JBAS018704: Could not create server data directory: C:\Program Files\Java\jboss\jboss-as-7.1.1.Final\standalone\data
at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:388)
at org.jboss.as.server.Main.determineEnvironment(Main.java:242)
at org.jboss.as.server.Main.main(Main.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.modules.Module.run(Module.java:260)
at org.jboss.modules.Main.main(Main.java:291)
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
09:21:36,741 INFORMAÇÕES [org.jboss.modules] JBoss Modules version 1.1.1.GA